Commit 462584ca authored by Marco Chiappero's avatar Marco Chiappero Committed by Herbert Xu

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: default avatarMarco Chiappero <marco.chiappero@intel.com>
Co-developed-by: default avatarGiovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: default avatarGiovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: default avatarFiona Trahe <fiona.trahe@intel.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 462354d9
...@@ -205,10 +205,7 @@ void adf_exit_pf_wq(void); ...@@ -205,10 +205,7 @@ void adf_exit_pf_wq(void);
int adf_init_vf_wq(void); int adf_init_vf_wq(void);
void adf_exit_vf_wq(void); void adf_exit_vf_wq(void);
#else #else
static inline int adf_sriov_configure(struct pci_dev *pdev, int numvfs) #define adf_sriov_configure NULL
{
return 0;
}
static inline void adf_disable_sriov(struct adf_accel_dev *accel_dev) static inline void adf_disable_sriov(struct adf_accel_dev *accel_dev)
{ {
......
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