diff options
| author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2025-04-23 00:05:18 +0300 | 
|---|---|---|
| committer | Kees Cook <kees@kernel.org> | 2025-05-08 19:42:05 +0300 | 
| commit | 190faecf64c54bb5f9d8f0ea2a6628078d0f2c83 (patch) | |
| tree | 335a946e7b7120a9689cebcb0f2fa8cad3cd3b88 /rust/helpers/mutex.c | |
| parent | ccf1d2b4a1d9ef4287ff51e634c626fd4683b10c (diff) | |
| download | linux-190faecf64c54bb5f9d8f0ea2a6628078d0f2c83.tar.xz | |
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 <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/83d53744e11c80eb3f03765238cbe648855f4168.1745355442.git.gustavoars@kernel.org
Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions
