Skip to content

Commit 83e6a19

Browse files
gcabidduherbertx
authored andcommitted
crypto: qat - fix function parameters descriptions
Fix description of function parameters. This is to fix the following warnings when compiling the driver with W=1: drivers/crypto/qat/qat_common/adf_sriov.c:133: warning: Function parameter or member 'numvfs' not described in 'adf_sriov_configure' drivers/crypto/qat/qat_common/adf_dev_mgr.c:296: warning: Function parameter or member 'pci_dev' not described in 'adf_devmgr_pci_to_accel_dev' drivers/crypto/qat/qat_common/adf_dev_mgr.c:296: warning: Excess function parameter 'accel_dev' description in 'adf_devmgr_pci_to_accel_dev' Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Reviewed-by: Fiona Trahe <fiona.trahe@intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent ed4424f commit 83e6a19

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

drivers/crypto/qat/qat_common/adf_dev_mgr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ struct adf_accel_dev *adf_devmgr_get_first(void)
285285

286286
/**
287287
* adf_devmgr_pci_to_accel_dev() - Get accel_dev associated with the pci_dev.
288-
* @accel_dev: Pointer to pci device.
288+
* @pci_dev: Pointer to pci device.
289289
*
290290
* Function returns acceleration device associated with the given pci device.
291291
* To be used by QAT device specific drivers.

drivers/crypto/qat/qat_common/adf_sriov.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,14 @@ EXPORT_SYMBOL_GPL(adf_disable_sriov);
173173
/**
174174
* adf_sriov_configure() - Enable SRIOV for the device
175175
* @pdev: Pointer to pci device.
176+
* @numvfs: Number of virtual functions (VFs) to enable.
177+
*
178+
* Note that the @numvfs parameter is ignored and all VFs supported by the
179+
* device are enabled due to the design of the hardware.
176180
*
177181
* Function enables SRIOV for the pci device.
178182
*
179-
* Return: 0 on success, error code otherwise.
183+
* Return: number of VFs enabled on success, error code otherwise.
180184
*/
181185
int adf_sriov_configure(struct pci_dev *pdev, int numvfs)
182186
{

0 commit comments

Comments
 (0)