]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: qat - remove empty sriov_configure()
authorMarco Chiappero <marco.chiappero@intel.com>
Thu, 12 Aug 2021 20:21:11 +0000 (21:21 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 21 Aug 2021 07:44:54 +0000 (15:44 +0800)
commit4e9523bdb2c4c46902440a9f5746c5490351a1bc
tree518c6a2ba3a6b54c6ce7b9d727e53435e2efe12a
parentc131ddb6619521c4e969cd93543f93590a4c0bed
crypto: qat - remove empty sriov_configure()

Remove the empty implementation of sriov_configure() and set the
sriov_configure member of the pci_driver structure to NULL.
This way, if a user tries to enable VFs on a device, when kernel and
driver are built with CONFIG_PCI_IOV=n, the kernel reports an error
message saying that the driver does not support SRIOV configuration via
sysfs.

Signed-off-by: Marco Chiappero <marco.chiappero@intel.com>
Co-developed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Fiona Trahe <fiona.trahe@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/adf_common_drv.h