[PATCH 51/75] patches: Remove genl_family.resv_start_op
Hauke Mehrtens <[email protected]> Fri, 28 Jun 2024 01:47:37 +0200
| Newsgroups | org.kernel.vger.backports |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> --- 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