diff options
author | Johannes Berg <johannes.berg@intel.com> | 2017-02-07 23:04:11 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2017-02-09 14:52:26 +0100 |
commit | e13e44d9a81da4bf77d9869db5b4764fc0811d9f (patch) | |
tree | c610ae2b0f634df75fe88f65a047e5c741c9b0af /patches/0032-sriov_configure | |
parent | 46939c43903da6b202c95a0fcb24acce55fd63c0 (diff) |
backports: always use new version compare macros
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'patches/0032-sriov_configure')
-rw-r--r-- | patches/0032-sriov_configure/igb_sriov_configure.patch | 4 | ||||
-rw-r--r-- | patches/0032-sriov_configure/sriov_configure.cocci | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/patches/0032-sriov_configure/igb_sriov_configure.patch b/patches/0032-sriov_configure/igb_sriov_configure.patch index 2167b7c2..77e5eac9 100644 --- a/patches/0032-sriov_configure/igb_sriov_configure.patch +++ b/patches/0032-sriov_configure/igb_sriov_configure.patch @@ -4,7 +4,7 @@ return 0; } -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0) ++#if LINUX_VERSION_IS_GEQ(3,8,0) static int igb_pci_disable_sriov(struct pci_dev *dev) { int err = igb_disable_sriov(dev); @@ -12,7 +12,7 @@ return err; } -+#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0) */ ++#endif /* LINUX_VERSION_IS_GEQ(3,8,0) */ static int igb_pci_enable_sriov(struct pci_dev *dev, int num_vfs) { diff --git a/patches/0032-sriov_configure/sriov_configure.cocci b/patches/0032-sriov_configure/sriov_configure.cocci index 52920b84..9f9f1794 100644 --- a/patches/0032-sriov_configure/sriov_configure.cocci +++ b/patches/0032-sriov_configure/sriov_configure.cocci @@ -3,9 +3,9 @@ identifier s, func; @@ struct pci_driver s = { -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0) ++#if LINUX_VERSION_IS_GEQ(3,8,0) .sriov_configure = func, -+#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0) */ ++#endif /* LINUX_VERSION_IS_GEQ(3,8,0) */ }; // ---------------------------------------------------------------------- @@ -14,6 +14,6 @@ struct pci_driver s = { identifier r1.func; @@ -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0) ++#if LINUX_VERSION_IS_GEQ(3,8,0) func(...) { ... } -+#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0) */ ++#endif /* LINUX_VERSION_IS_GEQ(3,8,0) */ |