Commit 4600c4bc authored by Randy Dunlap's avatar Randy Dunlap Committed by Andrew Morton

rapidio/tsi721: fix kernel-doc warnings

Correct kernel-doc comments in tsi721.c and tsi721_dma.c to prevent
warnings from scripts/kernel-doc.

tsi721_dma.c:293: warning: expecting prototype for tsi721_omsg_msix(). Prototype was for tsi721_bdma_msix() instead

tsi721.c:215: warning: Function parameter or member 'data' not described in 'tsi721_cread_dma'
tsi721.c:215: warning: Excess function parameter 'val' description in 'tsi721_cread_dma'
tsi721.c:238: warning: Function parameter or member 'data' not described in 'tsi721_cwrite_dma'
tsi721.c:238: warning: Excess function parameter 'val' description in 'tsi721_cwrite_dma'
tsi721.c:2548: warning: Function parameter or member 'attr' not described in 'tsi721_query_mport'
tsi721.c:2548: warning: Excess function parameter 'mbox' description in 'tsi721_query_mport'
and 27 warnings like this one:
tsi721.c:59: warning: No description found for return value of 'tsi721_lcread'

Link: https://lkml.kernel.org/r/20231206175528.16386-1-rdunlap@infradead.orgSigned-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Cc: Matt Porter <mporter@kernel.crashing.org>
Cc: Alexandre Bounine <alex.bou9@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 0df52582
...@@ -51,8 +51,9 @@ static void tsi721_imsg_handler(struct tsi721_device *priv, int ch); ...@@ -51,8 +51,9 @@ static void tsi721_imsg_handler(struct tsi721_device *priv, int ch);
* @len: Length (in bytes) of the maintenance transaction * @len: Length (in bytes) of the maintenance transaction
* @data: Value to be read into * @data: Value to be read into
* *
* Generates a local SREP space read. Returns %0 on * Generates a local SREP space read.
* success or %-EINVAL on failure. *
* Returns: %0 on success or %-EINVAL on failure.
*/ */
static int tsi721_lcread(struct rio_mport *mport, int index, u32 offset, static int tsi721_lcread(struct rio_mport *mport, int index, u32 offset,
int len, u32 *data) int len, u32 *data)
...@@ -75,8 +76,9 @@ static int tsi721_lcread(struct rio_mport *mport, int index, u32 offset, ...@@ -75,8 +76,9 @@ static int tsi721_lcread(struct rio_mport *mport, int index, u32 offset,
* @len: Length (in bytes) of the maintenance transaction * @len: Length (in bytes) of the maintenance transaction
* @data: Value to be written * @data: Value to be written
* *
* Generates a local write into SREP configuration space. Returns %0 on * Generates a local write into SREP configuration space.
* success or %-EINVAL on failure. *
* Returns: %0 on success or %-EINVAL on failure.
*/ */
static int tsi721_lcwrite(struct rio_mport *mport, int index, u32 offset, static int tsi721_lcwrite(struct rio_mport *mport, int index, u32 offset,
int len, u32 data) int len, u32 data)
...@@ -104,7 +106,7 @@ static int tsi721_lcwrite(struct rio_mport *mport, int index, u32 offset, ...@@ -104,7 +106,7 @@ static int tsi721_lcwrite(struct rio_mport *mport, int index, u32 offset,
* @do_wr: Operation flag (1 == MAINT_WR) * @do_wr: Operation flag (1 == MAINT_WR)
* *
* Generates a RapidIO maintenance transaction (Read or Write). * Generates a RapidIO maintenance transaction (Read or Write).
* Returns %0 on success and %-EINVAL or %-EFAULT on failure. * Returns: %0 on success and %-EINVAL or %-EFAULT on failure.
*/ */
static int tsi721_maint_dma(struct tsi721_device *priv, u32 sys_size, static int tsi721_maint_dma(struct tsi721_device *priv, u32 sys_size,
u16 destid, u8 hopcount, u32 offset, int len, u16 destid, u8 hopcount, u32 offset, int len,
...@@ -205,10 +207,10 @@ static int tsi721_maint_dma(struct tsi721_device *priv, u32 sys_size, ...@@ -205,10 +207,10 @@ static int tsi721_maint_dma(struct tsi721_device *priv, u32 sys_size,
* @hopcount: Number of hops to target device * @hopcount: Number of hops to target device
* @offset: Offset into configuration space * @offset: Offset into configuration space
* @len: Length (in bytes) of the maintenance transaction * @len: Length (in bytes) of the maintenance transaction
* @val: Location to be read into * @data: Location to be read into
* *
* Generates a RapidIO maintenance read transaction. * Generates a RapidIO maintenance read transaction.
* Returns %0 on success and %-EINVAL or %-EFAULT on failure. * Returns: %0 on success and %-EINVAL or %-EFAULT on failure.
*/ */
static int tsi721_cread_dma(struct rio_mport *mport, int index, u16 destid, static int tsi721_cread_dma(struct rio_mport *mport, int index, u16 destid,
u8 hopcount, u32 offset, int len, u32 *data) u8 hopcount, u32 offset, int len, u32 *data)
...@@ -228,10 +230,10 @@ static int tsi721_cread_dma(struct rio_mport *mport, int index, u16 destid, ...@@ -228,10 +230,10 @@ static int tsi721_cread_dma(struct rio_mport *mport, int index, u16 destid,
* @hopcount: Number of hops to target device * @hopcount: Number of hops to target device
* @offset: Offset into configuration space * @offset: Offset into configuration space
* @len: Length (in bytes) of the maintenance transaction * @len: Length (in bytes) of the maintenance transaction
* @val: Value to be written * @data: Value to be written
* *
* Generates a RapidIO maintenance write transaction. * Generates a RapidIO maintenance write transaction.
* Returns %0 on success and %-EINVAL or %-EFAULT on failure. * Returns: %0 on success and %-EINVAL or %-EFAULT on failure.
*/ */
static int tsi721_cwrite_dma(struct rio_mport *mport, int index, u16 destid, static int tsi721_cwrite_dma(struct rio_mport *mport, int index, u16 destid,
u8 hopcount, u32 offset, int len, u32 data) u8 hopcount, u32 offset, int len, u32 data)
...@@ -250,6 +252,8 @@ static int tsi721_cwrite_dma(struct rio_mport *mport, int index, u16 destid, ...@@ -250,6 +252,8 @@ static int tsi721_cwrite_dma(struct rio_mport *mport, int index, u16 destid,
* Handles inbound port-write interrupts. Copies PW message from an internal * Handles inbound port-write interrupts. Copies PW message from an internal
* buffer into PW message FIFO and schedules deferred routine to process * buffer into PW message FIFO and schedules deferred routine to process
* queued messages. * queued messages.
*
* Returns: %0
*/ */
static int static int
tsi721_pw_handler(struct tsi721_device *priv) tsi721_pw_handler(struct tsi721_device *priv)
...@@ -307,6 +311,8 @@ static void tsi721_pw_dpc(struct work_struct *work) ...@@ -307,6 +311,8 @@ static void tsi721_pw_dpc(struct work_struct *work)
* tsi721_pw_enable - enable/disable port-write interface init * tsi721_pw_enable - enable/disable port-write interface init
* @mport: Master port implementing the port write unit * @mport: Master port implementing the port write unit
* @enable: 1=enable; 0=disable port-write message handling * @enable: 1=enable; 0=disable port-write message handling
*
* Returns: %0
*/ */
static int tsi721_pw_enable(struct rio_mport *mport, int enable) static int tsi721_pw_enable(struct rio_mport *mport, int enable)
{ {
...@@ -336,7 +342,9 @@ static int tsi721_pw_enable(struct rio_mport *mport, int enable) ...@@ -336,7 +342,9 @@ static int tsi721_pw_enable(struct rio_mport *mport, int enable)
* @destid: Destination ID of target device * @destid: Destination ID of target device
* @data: 16-bit info field of RapidIO doorbell * @data: 16-bit info field of RapidIO doorbell
* *
* Sends a RapidIO doorbell message. Always returns %0. * Sends a RapidIO doorbell message.
*
* Returns: %0
*/ */
static int tsi721_dsend(struct rio_mport *mport, int index, static int tsi721_dsend(struct rio_mport *mport, int index,
u16 destid, u16 data) u16 destid, u16 data)
...@@ -361,6 +369,8 @@ static int tsi721_dsend(struct rio_mport *mport, int index, ...@@ -361,6 +369,8 @@ static int tsi721_dsend(struct rio_mport *mport, int index,
* Handles inbound doorbell interrupts. Copies doorbell entry from an internal * Handles inbound doorbell interrupts. Copies doorbell entry from an internal
* buffer into DB message FIFO and schedules deferred routine to process * buffer into DB message FIFO and schedules deferred routine to process
* queued DBs. * queued DBs.
*
* Returns: %0
*/ */
static int static int
tsi721_dbell_handler(struct tsi721_device *priv) tsi721_dbell_handler(struct tsi721_device *priv)
...@@ -453,6 +463,8 @@ static void tsi721_db_dpc(struct work_struct *work) ...@@ -453,6 +463,8 @@ static void tsi721_db_dpc(struct work_struct *work)
* *
* Handles Tsi721 interrupts signaled using MSI and INTA. Checks reported * Handles Tsi721 interrupts signaled using MSI and INTA. Checks reported
* interrupt events and calls an event-specific handler(s). * interrupt events and calls an event-specific handler(s).
*
* Returns: %IRQ_HANDLED or %IRQ_NONE
*/ */
static irqreturn_t tsi721_irqhandler(int irq, void *ptr) static irqreturn_t tsi721_irqhandler(int irq, void *ptr)
{ {
...@@ -607,6 +619,8 @@ static void tsi721_interrupts_init(struct tsi721_device *priv) ...@@ -607,6 +619,8 @@ static void tsi721_interrupts_init(struct tsi721_device *priv)
* @ptr: Pointer to interrupt-specific data (tsi721_device structure) * @ptr: Pointer to interrupt-specific data (tsi721_device structure)
* *
* Handles outbound messaging interrupts signaled using MSI-X. * Handles outbound messaging interrupts signaled using MSI-X.
*
* Returns: %IRQ_HANDLED
*/ */
static irqreturn_t tsi721_omsg_msix(int irq, void *ptr) static irqreturn_t tsi721_omsg_msix(int irq, void *ptr)
{ {
...@@ -624,6 +638,8 @@ static irqreturn_t tsi721_omsg_msix(int irq, void *ptr) ...@@ -624,6 +638,8 @@ static irqreturn_t tsi721_omsg_msix(int irq, void *ptr)
* @ptr: Pointer to interrupt-specific data (tsi721_device structure) * @ptr: Pointer to interrupt-specific data (tsi721_device structure)
* *
* Handles inbound messaging interrupts signaled using MSI-X. * Handles inbound messaging interrupts signaled using MSI-X.
*
* Returns: %IRQ_HANDLED
*/ */
static irqreturn_t tsi721_imsg_msix(int irq, void *ptr) static irqreturn_t tsi721_imsg_msix(int irq, void *ptr)
{ {
...@@ -641,6 +657,8 @@ static irqreturn_t tsi721_imsg_msix(int irq, void *ptr) ...@@ -641,6 +657,8 @@ static irqreturn_t tsi721_imsg_msix(int irq, void *ptr)
* @ptr: Pointer to interrupt-specific data (tsi721_device structure) * @ptr: Pointer to interrupt-specific data (tsi721_device structure)
* *
* Handles Tsi721 interrupts from SRIO MAC. * Handles Tsi721 interrupts from SRIO MAC.
*
* Returns: %IRQ_HANDLED
*/ */
static irqreturn_t tsi721_srio_msix(int irq, void *ptr) static irqreturn_t tsi721_srio_msix(int irq, void *ptr)
{ {
...@@ -663,6 +681,8 @@ static irqreturn_t tsi721_srio_msix(int irq, void *ptr) ...@@ -663,6 +681,8 @@ static irqreturn_t tsi721_srio_msix(int irq, void *ptr)
* Handles Tsi721 interrupts from SR2PC Channel. * Handles Tsi721 interrupts from SR2PC Channel.
* NOTE: At this moment services only one SR2PC channel associated with inbound * NOTE: At this moment services only one SR2PC channel associated with inbound
* doorbells. * doorbells.
*
* Returns: %IRQ_HANDLED
*/ */
static irqreturn_t tsi721_sr2pc_ch_msix(int irq, void *ptr) static irqreturn_t tsi721_sr2pc_ch_msix(int irq, void *ptr)
{ {
...@@ -689,6 +709,8 @@ static irqreturn_t tsi721_sr2pc_ch_msix(int irq, void *ptr) ...@@ -689,6 +709,8 @@ static irqreturn_t tsi721_sr2pc_ch_msix(int irq, void *ptr)
* Registers MSI-X interrupt service routines for interrupts that are active * Registers MSI-X interrupt service routines for interrupts that are active
* immediately after mport initialization. Messaging interrupt service routines * immediately after mport initialization. Messaging interrupt service routines
* should be registered during corresponding open requests. * should be registered during corresponding open requests.
*
* Returns: %0 on success or -errno value on failure.
*/ */
static int tsi721_request_msix(struct tsi721_device *priv) static int tsi721_request_msix(struct tsi721_device *priv)
{ {
...@@ -717,6 +739,8 @@ static int tsi721_request_msix(struct tsi721_device *priv) ...@@ -717,6 +739,8 @@ static int tsi721_request_msix(struct tsi721_device *priv)
* *
* Configures MSI-X support for Tsi721. Supports only an exact number * Configures MSI-X support for Tsi721. Supports only an exact number
* of requested vectors. * of requested vectors.
*
* Returns: %0 on success or -errno value on failure.
*/ */
static int tsi721_enable_msix(struct tsi721_device *priv) static int tsi721_enable_msix(struct tsi721_device *priv)
{ {
...@@ -1334,7 +1358,7 @@ static void tsi721_close_sr2pc_mapping(struct tsi721_device *priv) ...@@ -1334,7 +1358,7 @@ static void tsi721_close_sr2pc_mapping(struct tsi721_device *priv)
* @priv: pointer to tsi721 private data * @priv: pointer to tsi721 private data
* *
* Initializes inbound port write handler. * Initializes inbound port write handler.
* Returns %0 on success or %-ENOMEM on failure. * Returns: %0 on success or %-ENOMEM on failure.
*/ */
static int tsi721_port_write_init(struct tsi721_device *priv) static int tsi721_port_write_init(struct tsi721_device *priv)
{ {
...@@ -1412,7 +1436,8 @@ static void tsi721_doorbell_free(struct tsi721_device *priv) ...@@ -1412,7 +1436,8 @@ static void tsi721_doorbell_free(struct tsi721_device *priv)
* *
* Initialize BDMA channel allocated for RapidIO maintenance read/write * Initialize BDMA channel allocated for RapidIO maintenance read/write
* request generation * request generation
* Returns %0 on success or %-ENOMEM on failure. *
* Returns: %0 on success or %-ENOMEM on failure.
*/ */
static int tsi721_bdma_maint_init(struct tsi721_device *priv) static int tsi721_bdma_maint_init(struct tsi721_device *priv)
{ {
...@@ -1662,6 +1687,8 @@ tsi721_omsg_interrupt_disable(struct tsi721_device *priv, int ch, ...@@ -1662,6 +1687,8 @@ tsi721_omsg_interrupt_disable(struct tsi721_device *priv, int ch,
* @mbox: Outbound mailbox * @mbox: Outbound mailbox
* @buffer: Message to add to outbound queue * @buffer: Message to add to outbound queue
* @len: Length of message * @len: Length of message
*
* Returns: %0 on success or -errno value on failure.
*/ */
static int static int
tsi721_add_outb_message(struct rio_mport *mport, struct rio_dev *rdev, int mbox, tsi721_add_outb_message(struct rio_mport *mport, struct rio_dev *rdev, int mbox,
...@@ -1869,6 +1896,8 @@ static void tsi721_omsg_handler(struct tsi721_device *priv, int ch) ...@@ -1869,6 +1896,8 @@ static void tsi721_omsg_handler(struct tsi721_device *priv, int ch)
* @dev_id: Device specific pointer to pass on event * @dev_id: Device specific pointer to pass on event
* @mbox: Mailbox to open * @mbox: Mailbox to open
* @entries: Number of entries in the outbound mailbox ring * @entries: Number of entries in the outbound mailbox ring
*
* Returns: %0 on success or -errno value on failure.
*/ */
static int tsi721_open_outb_mbox(struct rio_mport *mport, void *dev_id, static int tsi721_open_outb_mbox(struct rio_mport *mport, void *dev_id,
int mbox, int entries) int mbox, int entries)
...@@ -2156,6 +2185,8 @@ static void tsi721_imsg_handler(struct tsi721_device *priv, int ch) ...@@ -2156,6 +2185,8 @@ static void tsi721_imsg_handler(struct tsi721_device *priv, int ch)
* @dev_id: Device specific pointer to pass on event * @dev_id: Device specific pointer to pass on event
* @mbox: Mailbox to open * @mbox: Mailbox to open
* @entries: Number of entries in the inbound mailbox ring * @entries: Number of entries in the inbound mailbox ring
*
* Returns: %0 on success or -errno value on failure.
*/ */
static int tsi721_open_inb_mbox(struct rio_mport *mport, void *dev_id, static int tsi721_open_inb_mbox(struct rio_mport *mport, void *dev_id,
int mbox, int entries) int mbox, int entries)
...@@ -2409,6 +2440,8 @@ static void tsi721_close_inb_mbox(struct rio_mport *mport, int mbox) ...@@ -2409,6 +2440,8 @@ static void tsi721_close_inb_mbox(struct rio_mport *mport, int mbox)
* @mport: Master port implementing the Inbound Messaging Engine * @mport: Master port implementing the Inbound Messaging Engine
* @mbox: Inbound mailbox number * @mbox: Inbound mailbox number
* @buf: Buffer to add to inbound queue * @buf: Buffer to add to inbound queue
*
* Returns: %0 on success or -errno value on failure.
*/ */
static int tsi721_add_inb_buffer(struct rio_mport *mport, int mbox, void *buf) static int tsi721_add_inb_buffer(struct rio_mport *mport, int mbox, void *buf)
{ {
...@@ -2439,7 +2472,7 @@ static int tsi721_add_inb_buffer(struct rio_mport *mport, int mbox, void *buf) ...@@ -2439,7 +2472,7 @@ static int tsi721_add_inb_buffer(struct rio_mport *mport, int mbox, void *buf)
* @mport: Master port implementing the Inbound Messaging Engine * @mport: Master port implementing the Inbound Messaging Engine
* @mbox: Inbound mailbox number * @mbox: Inbound mailbox number
* *
* Returns pointer to the message on success or NULL on failure. * Returns: pointer to the message on success or %NULL on failure.
*/ */
static void *tsi721_get_inb_message(struct rio_mport *mport, int mbox) static void *tsi721_get_inb_message(struct rio_mport *mport, int mbox)
{ {
...@@ -2507,6 +2540,8 @@ static void *tsi721_get_inb_message(struct rio_mport *mport, int mbox) ...@@ -2507,6 +2540,8 @@ static void *tsi721_get_inb_message(struct rio_mport *mport, int mbox)
* @priv: pointer to tsi721 private data * @priv: pointer to tsi721 private data
* *
* Configures Tsi721 messaging engine. * Configures Tsi721 messaging engine.
*
* Returns: %0
*/ */
static int tsi721_messages_init(struct tsi721_device *priv) static int tsi721_messages_init(struct tsi721_device *priv)
{ {
...@@ -2539,9 +2574,9 @@ static int tsi721_messages_init(struct tsi721_device *priv) ...@@ -2539,9 +2574,9 @@ static int tsi721_messages_init(struct tsi721_device *priv)
/** /**
* tsi721_query_mport - Fetch inbound message from the Tsi721 MSG Queue * tsi721_query_mport - Fetch inbound message from the Tsi721 MSG Queue
* @mport: Master port implementing the Inbound Messaging Engine * @mport: Master port implementing the Inbound Messaging Engine
* @mbox: Inbound mailbox number * @attr: mport device attributes
* *
* Returns pointer to the message on success or NULL on failure. * Returns: pointer to the message on success or %NULL on failure.
*/ */
static int tsi721_query_mport(struct rio_mport *mport, static int tsi721_query_mport(struct rio_mport *mport,
struct rio_mport_attr *attr) struct rio_mport_attr *attr)
...@@ -2653,6 +2688,8 @@ static void tsi721_mport_release(struct device *dev) ...@@ -2653,6 +2688,8 @@ static void tsi721_mport_release(struct device *dev)
* @priv: pointer to tsi721 private data * @priv: pointer to tsi721 private data
* *
* Configures Tsi721 as RapidIO master port. * Configures Tsi721 as RapidIO master port.
*
* Returns: %0 on success or -errno value on failure.
*/ */
static int tsi721_setup_mport(struct tsi721_device *priv) static int tsi721_setup_mport(struct tsi721_device *priv)
{ {
......
...@@ -283,11 +283,13 @@ void tsi721_bdma_handler(struct tsi721_bdma_chan *bdma_chan) ...@@ -283,11 +283,13 @@ void tsi721_bdma_handler(struct tsi721_bdma_chan *bdma_chan)
#ifdef CONFIG_PCI_MSI #ifdef CONFIG_PCI_MSI
/** /**
* tsi721_omsg_msix - MSI-X interrupt handler for BDMA channels * tsi721_bdma_msix - MSI-X interrupt handler for BDMA channels
* @irq: Linux interrupt number * @irq: Linux interrupt number
* @ptr: Pointer to interrupt-specific data (BDMA channel structure) * @ptr: Pointer to interrupt-specific data (BDMA channel structure)
* *
* Handles BDMA channel interrupts signaled using MSI-X. * Handles BDMA channel interrupts signaled using MSI-X.
*
* Returns: %IRQ_HANDLED
*/ */
static irqreturn_t tsi721_bdma_msix(int irq, void *ptr) static irqreturn_t tsi721_bdma_msix(int irq, void *ptr)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment