OpenCloudOS-Kernel/include/uapi
Stephen Hemminger 924b290655 xfrm: convert alg_key to flexible array member
Iproute2 build generates a warning when built with gcc-12.
This is because the alg_key in xfrm.h API has zero size
array element instead of flexible array.

    CC       xfrm_state.o
In function ‘xfrm_algo_parse’,
    inlined from ‘xfrm_state_modify.constprop’ at xfrm_state.c:573:5:
xfrm_state.c:162:32: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
  162 |                         buf[j] = val;
      |                         ~~~~~~~^~~~~

This patch convert the alg_key into flexible array member.
There are other zero size arrays here that should be converted as
well.

This patch is RFC only since it is only compile tested and
passes trivial iproute2 tests.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
2022-06-10 12:34:09 +02:00
..
asm-generic TTY / Serial driver changes for 5.19-rc1 2022-06-03 11:08:40 -07:00
drm drm/amdgpu: add AMDGPU_VM_NOALLOC v2 2022-05-26 14:56:34 -04:00
linux xfrm: convert alg_key to flexible array member 2022-06-10 12:34:09 +02:00
misc habanalabs: add support for notification via eventfd 2022-05-22 21:01:20 +02:00
mtd
rdma RDMA: Split kernel-only global device caps from uverbs device caps 2022-04-06 15:02:13 -03:00
scsi scsi: mpi3mr: Add support for NVMe passthrough 2022-05-02 17:02:42 -04:00
sound ASoC: SOF: ipc: introduce cont_update_posn in sof_ipc_stream_params struct 2022-05-10 14:01:54 +01:00
video
xen Improve docs for IOCTL_GNTDEV_MAP_GRANT_REF 2022-02-03 08:23:32 +01:00
Kbuild