diff options
| author | Kees Cook <keescook@chromium.org> | 2023-08-17 23:06:03 +0300 |
|---|---|---|
| committer | Kees Cook <keescook@chromium.org> | 2023-08-18 02:46:35 +0300 |
| commit | c8248faf3ca276ebdf60f003b3e04bf764daba91 (patch) | |
| tree | 7b5e722f0566ee64463add2593a226de47ca392b /include/uapi/linux/stddef.h | |
| parent | be8dffa04de3894bad0bf31d1531a2f06353b70e (diff) | |
| download | linux-c8248faf3ca276ebdf60f003b3e04bf764daba91.tar.xz | |
Compiler Attributes: counted_by: Adjust name and identifier expansion
GCC and Clang's current RFCs name this attribute "counted_by", and have
moved away from using a string for the member name. Update the kernel's
macros to match. Additionally provide a UAPI no-op macro for UAPI structs
that will gain annotations.
Cc: Miguel Ojeda <ojeda@kernel.org>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Fixes: dd06e72e68bc ("Compiler Attributes: Add __counted_by macro")
Acked-by: Miguel Ojeda <ojeda@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/20230817200558.never.077-kees@kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'include/uapi/linux/stddef.h')
| -rw-r--r-- | include/uapi/linux/stddef.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/linux/stddef.h b/include/uapi/linux/stddef.h index 7837ba4fe728..7c3fc3980881 100644 --- a/include/uapi/linux/stddef.h +++ b/include/uapi/linux/stddef.h @@ -45,3 +45,7 @@ TYPE NAME[]; \ } #endif + +#ifndef __counted_by +#define __counted_by(m) +#endif |
