[PATCH 51/75] patches: Remove genl_family.resv_start_op

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 patches/0109-resv_start_op.cocci | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 patches/0109-resv_start_op.cocci

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
+  ...
+};
-- 
2.45.2





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux