summaryrefslogtreecommitdiff
path: root/drivers/crypto/cavium/nitrox/nitrox_isr.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2020-11-06 17:53:52 +1100
committerHerbert Xu <herbert@gondor.apana.org.au>2020-11-13 20:38:45 +1100
commitcd078cb6a0f2e360b073b34f78a53b9410fa3e7a (patch)
tree9070937bb3e44c6f6f4b7d4f59349f7b328e13b9 /drivers/crypto/cavium/nitrox/nitrox_isr.h
parent802c6c3ef3bc3eeca95d3ad55642fb7a973d185a (diff)
crypto: cavium/nitrox - Fix sparse warnings
This patch fixes all the sparse warnings in cavium/nitrox: - Fix endianness warnings by adding the correct markers to unions. - Add missing header inclusions for prototypes. - Move nitrox_sriov_configure prototype into the isr header file. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/cavium/nitrox/nitrox_isr.h')
-rw-r--r--drivers/crypto/cavium/nitrox/nitrox_isr.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/crypto/cavium/nitrox/nitrox_isr.h b/drivers/crypto/cavium/nitrox/nitrox_isr.h
index 1062c9336c1f..2bb123cd2f1c 100644
--- a/drivers/crypto/cavium/nitrox/nitrox_isr.h
+++ b/drivers/crypto/cavium/nitrox/nitrox_isr.h
@@ -9,4 +9,13 @@ void nitrox_unregister_interrupts(struct nitrox_device *ndev);
int nitrox_sriov_register_interupts(struct nitrox_device *ndev);
void nitrox_sriov_unregister_interrupts(struct nitrox_device *ndev);
+#ifdef CONFIG_PCI_IOV
+int nitrox_sriov_configure(struct pci_dev *pdev, int num_vfs);
+#else
+static inline int nitrox_sriov_configure(struct pci_dev *pdev, int num_vfs)
+{
+ return 0;
+}
+#endif
+
#endif /* __NITROX_ISR_H */