diff options
Diffstat (limited to 'patches/0001-group-attr/0003-class_groups.cocci')
-rw-r--r-- | patches/0001-group-attr/0003-class_groups.cocci | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/0001-group-attr/0003-class_groups.cocci b/patches/0001-group-attr/0003-class_groups.cocci index a4694dd7..781f6c2b 100644 --- a/patches/0001-group-attr/0003-class_groups.cocci +++ b/patches/0001-group-attr/0003-class_groups.cocci @@ -20,7 +20,7 @@ fresh identifier group_dev_attr = attribute_group.group ## "_dev_attrs"; @@ struct class group_class = { -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0) ++#if LINUX_VERSION_IS_GEQ(4,10,0) .class_groups = groups, +#else + .class_attrs = group_dev_attr, @@ -32,7 +32,7 @@ declarer name ATTRIBUTE_GROUPS_BACKPORT; identifier attribute_group.group; @@ -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0) ++#if LINUX_VERSION_IS_GEQ(4,10,0) ATTRIBUTE_GROUPS(group); +#else +#define BP_ATTR_GRP_STRUCT class_attribute |