original_kernel/fs/smb/server
Gustavo A. R. Silva 9f9bef9bc5 smb: smb2pdu.h: Avoid -Wflex-array-member-not-at-end warnings
-Wflex-array-member-not-at-end is coming in GCC-14, and we are getting
ready to enable it globally.

So, in order to avoid ending up with a flexible-array member in the
middle of multiple other structs, we use the `__struct_group()` helper
to separate the flexible array from the rest of the members in the
flexible structure, and use the tagged `struct create_context_hdr`
instead of `struct create_context`.

So, with these changes, fix 51 of the following warnings[1]:

fs/smb/client/../common/smb2pdu.h:1225:31: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end]

Link: https://gist.github.com/GustavoARSilva/772526a39be3dd4db39e71497f0a9893 [1]
Link: https://github.com/KSPP/linux/issues/202
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
2024-05-13 16:46:56 -05:00
..
mgmt
Kconfig
Makefile
asn1.c
asn1.h
auth.c
auth.h
connection.c
connection.h
crypto_ctx.c
crypto_ctx.h
glob.h
ksmbd_netlink.h ksmbd: add continuous availability share parameter 2024-04-19 20:48:47 -05:00
ksmbd_spnego_negtokeninit.asn1
ksmbd_spnego_negtokentarg.asn1
ksmbd_work.c
ksmbd_work.h
misc.c
misc.h
ndr.c
ndr.h
nterr.h
ntlmssp.h
oplock.c ksmbd: do not grant v2 lease if parent lease key and epoch are not set 2024-05-04 23:53:36 -05:00
oplock.h
server.c
server.h
smb2misc.c
smb2ops.c
smb2pdu.c ksmbd: use rwsem instead of rwlock for lease break 2024-05-04 23:53:36 -05:00
smb2pdu.h smb: smb2pdu.h: Avoid -Wflex-array-member-not-at-end warnings 2024-05-13 16:46:56 -05:00
smb_common.c ksmbd: use rwsem instead of rwlock for lease break 2024-05-04 23:53:36 -05:00
smb_common.h
smbacl.c
smbacl.h
smbfsctl.h
smbstatus.h
transport_ipc.c
transport_ipc.h
transport_rdma.c
transport_rdma.h
transport_tcp.c ksmbd: off ipv6only for both ipv4/ipv6 binding 2024-05-04 23:53:35 -05:00
transport_tcp.h
unicode.c
unicode.h
vfs.c ksmbd: clear RENAME_NOREPLACE before calling vfs_rename 2024-04-19 20:48:47 -05:00
vfs.h
vfs_cache.c ksmbd: use rwsem instead of rwlock for lease break 2024-05-04 23:53:36 -05:00
vfs_cache.h ksmbd: use rwsem instead of rwlock for lease break 2024-05-04 23:53:36 -05:00
xattr.h