]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared/linux: fix fake flexible array in struct autofs_dev_ioctl
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 5 Feb 2023 19:22:08 +0000 (20:22 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 6 Feb 2023 09:19:52 +0000 (10:19 +0100)
The kernel still hasn't fixed this in kernel-headers-6.2.0-0.rc6.git0.1.fc38.x86_64.

src/shared/linux/README
src/shared/linux/auto_dev-ioctl.h

index 71295faf826dd813b2a768fba027243dbfd4d9a7..34fc09ba0836c97c39aa913875b62051d97579b3 100644 (file)
@@ -1,6 +1,7 @@
 The files in this directory are copied from kernel-6.2, and the following modifications are applied:
 - auto_dev-ioctl.h: set AUTOFS_DEV_IOCTL_VERSION_MINOR to 0
 - auto_dev-ioctl.h: define AUTOFS_IOCTL if not defined
+- auto_dev-ioctl.h: use of fake flexible array is fixed
 - bpf_insn.h: This is imported from samples/bpf/bpf_insn.h
 - bpf_insn.h: BPF_JMP_A() macro is also imported from include/linux/filter.h
 - dm-ioctl.h: set DM_VERSION_MINOR to 27
index f2e48b51cc5b147c23580588a730d3a77297be8d..c6b7e11087053a08d1a8bc8c36a07754386fd7b6 100644 (file)
@@ -109,7 +109,7 @@ struct autofs_dev_ioctl {
                struct args_ismountpoint        ismountpoint;
        };
 
-       char path[0];
+       char path[];
 };
 
 static __inline__ void init_autofs_dev_ioctl(struct autofs_dev_ioctl *in)