diff mbox series

[51/75] patches: Remove genl_family.resv_start_op

Message ID 20240627234808.1253337-52-hauke@hauke-m.de (mailing list archive)
State New, archived
Headers show
Series backports: Update to kernel 6.1.95 | expand

Commit Message

Hauke Mehrtens June 27, 2024, 11:47 p.m. UTC
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
diff mbox series

Patch

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