aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/randomize_layout_plugin.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <[email protected]>2025-04-22 21:05:18 +0000
committerKees Cook <[email protected]>2025-05-08 16:42:05 +0000
commit190faecf64c54bb5f9d8f0ea2a6628078d0f2c83 (patch)
tree335a946e7b7120a9689cebcb0f2fa8cad3cd3b88 /scripts/gcc-plugins/randomize_layout_plugin.c
parentinput/joystick: magellan: Mark __nonstring look-up table const (diff)
downloadkernel-190faecf64c54bb5f9d8f0ea2a6628078d0f2c83.tar.gz
kernel-190faecf64c54bb5f9d8f0ea2a6628078d0f2c83.zip
overflow: Add STACK_FLEX_ARRAY_SIZE() helper
Add new STACK_FLEX_ARRAY_SIZE() helper to get the size of a flexible-array member defined using DEFINE_FLEX()/DEFINE_RAW_FLEX() at compile time. This is essentially the same as ARRAY_SIZE() but for on-stack flexible-array members. Signed-off-by: Gustavo A. R. Silva <[email protected]> Link: https://lore.kernel.org/r/83d53744e11c80eb3f03765238cbe648855f4168.1745355442.git.gustavoars@kernel.org Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions