summaryrefslogtreecommitdiff
path: root/patches/0034-ndo_set_vf_spoofchk/set_vf_spoofchk.cocci
diff options
context:
space:
mode:
Diffstat (limited to 'patches/0034-ndo_set_vf_spoofchk/set_vf_spoofchk.cocci')
-rw-r--r--patches/0034-ndo_set_vf_spoofchk/set_vf_spoofchk.cocci12
1 files changed, 6 insertions, 6 deletions
diff --git a/patches/0034-ndo_set_vf_spoofchk/set_vf_spoofchk.cocci b/patches/0034-ndo_set_vf_spoofchk/set_vf_spoofchk.cocci
index 7be32c0b..de3e6e7d 100644
--- a/patches/0034-ndo_set_vf_spoofchk/set_vf_spoofchk.cocci
+++ b/patches/0034-ndo_set_vf_spoofchk/set_vf_spoofchk.cocci
@@ -3,9 +3,9 @@ identifier s, func;
@@
struct net_device_ops s = {
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0)
++#if LINUX_VERSION_IS_GEQ(3,2,0)
.ndo_set_vf_spoofchk = func,
-+#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0) */
++#endif /* LINUX_VERSION_IS_GEQ(3,2,0) */
};
@r2@
@@ -22,9 +22,9 @@ struct net_device_ops s = {
identifier r1.func;
@@
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0)
++#if LINUX_VERSION_IS_GEQ(3,2,0)
func(...) { ... }
-+#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0) */
++#endif /* LINUX_VERSION_IS_GEQ(3,2,0) */
@@
identifier r2.func2, ivi;
@@ -34,8 +34,8 @@ expression assign;
func2(... ,struct ifla_vf_info *ivi)
{
<...
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0)
++#if LINUX_VERSION_IS_GEQ(3,2,0)
ivi->spoofchk = assign;
-+#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0) */
++#endif /* LINUX_VERSION_IS_GEQ(3,2,0) */
...>
}