summaryrefslogtreecommitdiffstats
path: root/arch/h8300/include/asm/processor.h
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2024-08-08 16:04:04 -0600
committerSteve French <stfrench@microsoft.com>2024-08-15 16:06:55 -0500
commit5b4f3af39b6588e8de4444d8e1ccf759b40f9414 (patch)
tree929020f58be85d03768ec1867ca1dc4d6ce48200 /arch/h8300/include/asm/processor.h
parent836bb3268db405cf9021496ac4dbc26d3e4758fe (diff)
downloadlinux-5b4f3af39b6588e8de4444d8e1ccf759b40f9414.tar.gz
linux-5b4f3af39b6588e8de4444d8e1ccf759b40f9414.tar.bz2
linux-5b4f3af39b6588e8de4444d8e1ccf759b40f9414.zip
smb: smb2pdu.h: Use static_assert() to check struct sizes
Commit 9f9bef9bc5c6 ("smb: smb2pdu.h: Avoid -Wflex-array-member-not-at-end warnings") introduced tagged `struct create_context_hdr`. We want to ensure that when new members need to be added to the flexible structure, they are always included within this tagged struct. So, we use `static_assert()` to ensure that the memory layout for both the flexible structure and the tagged struct is the same after any changes. Acked-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'arch/h8300/include/asm/processor.h')
0 files changed, 0 insertions, 0 deletions