From c8b960af14f94a490ba569e7d193c73373375a58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sun, 5 Feb 2023 20:22:08 +0100 Subject: [PATCH] shared/linux: fix fake flexible array in struct autofs_dev_ioctl The kernel still hasn't fixed this in kernel-headers-6.2.0-0.rc6.git0.1.fc38.x86_64. --- src/shared/linux/README | 1 + src/shared/linux/auto_dev-ioctl.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shared/linux/README b/src/shared/linux/README index 71295faf82..34fc09ba08 100644 --- a/src/shared/linux/README +++ b/src/shared/linux/README @@ -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 diff --git a/src/shared/linux/auto_dev-ioctl.h b/src/shared/linux/auto_dev-ioctl.h index f2e48b51cc..c6b7e11087 100644 --- a/src/shared/linux/auto_dev-ioctl.h +++ b/src/shared/linux/auto_dev-ioctl.h @@ -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)