Skip to content

Commit 5240118

Browse files
Edwin Peerkuba-moo
authored andcommitted
bnxt_en: fix kernel doc warnings in bnxt_hwrm.c
Parameter names in the comments did not match the function arguments. Fixes: 2138081 ("bnxt_en: add support for HWRM request slices") Signed-off-by: Edwin Peer <[email protected]> Reported-by: Jakub Kicinski <[email protected]> Reviewed-by: Michael Chan <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 36e784a commit 5240118

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

drivers/net/ethernet/broadcom/bnxt/bnxt_hwrm.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,11 @@ void hwrm_req_timeout(struct bnxt *bp, void *req, unsigned int timeout)
145145
* @bp: The driver context.
146146
* @req: The request for which calls to hwrm_req_dma_slice() will have altered
147147
* allocation flags.
148-
* @flags: A bitmask of GFP flags. These flags are passed to
149-
* dma_alloc_coherent() whenever it is used to allocate backing memory
150-
* for slices. Note that calls to hwrm_req_dma_slice() will not always
151-
* result in new allocations, however, memory suballocated from the
152-
* request buffer is already __GFP_ZERO.
148+
* @gfp: A bitmask of GFP flags. These flags are passed to dma_alloc_coherent()
149+
* whenever it is used to allocate backing memory for slices. Note that
150+
* calls to hwrm_req_dma_slice() will not always result in new allocations,
151+
* however, memory suballocated from the request buffer is already
152+
* __GFP_ZERO.
153153
*
154154
* Sets the GFP allocation flags associated with the request for subsequent
155155
* calls to hwrm_req_dma_slice(). This can be useful for specifying __GFP_ZERO
@@ -698,8 +698,8 @@ int hwrm_req_send_silent(struct bnxt *bp, void *req)
698698
* @bp: The driver context.
699699
* @req: The request for which indirect data will be associated.
700700
* @size: The size of the allocation.
701-
* @dma: The bus address associated with the allocation. The HWRM API has no
702-
* knowledge about the type of the request and so cannot infer how the
701+
* @dma_handle: The bus address associated with the allocation. The HWRM API has
702+
* no knowledge about the type of the request and so cannot infer how the
703703
* caller intends to use the indirect data. Thus, the caller is
704704
* responsible for configuring the request object appropriately to
705705
* point to the associated indirect memory. Note, DMA handle has the

0 commit comments

Comments
 (0)