diff --git a/patches/0109-resv_start_op.cocci b/patches/0109-resv_start_op.cocci new file mode 100644 index 00000000..dfca6064 --- /dev/null +++ b/patches/0109-resv_start_op.cocci @@ -0,0 +1,10 @@ +@r@ +identifier s,expr; +@@ + +struct genl_family s = { ++#if LINUX_VERSION_IS_GEQ(6,1,0) + .resv_start_op = expr + 1, ++#endif + ... +};
The resv_start_op option was added to struct genl_family. It allows the kernel code to do extra validations. Ignore this attribute on older kernel versions. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> --- patches/0109-resv_start_op.cocci | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 patches/0109-resv_start_op.cocci