diff options
author | Kees Cook <kees@kernel.org> | 2025-02-05 23:32:49 +0300 |
---|---|---|
committer | Kees Cook <kees@kernel.org> | 2025-02-07 05:48:00 +0300 |
commit | cb7380de9e4cbc9a24216b722ec50e092ae83036 (patch) | |
tree | c121d6bd240ee53c10ed79b9d7d8caaefdbdcc8d /lib/overflow_kunit.c | |
parent | 78bba6097b9318f4aa645afeade14024af86af4e (diff) | |
download | linux-cb7380de9e4cbc9a24216b722ec50e092ae83036.tar.xz |
compiler.h: Move C string helpers into C-only kernel section
The C kernel helpers for evaluating C Strings were positioned where they
were visible to assembly inclusion, which was not intended. Move them
into the kernel and C-only area of the header so future changes won't
confuse the assembler.
Fixes: d7a516c6eeae ("compiler.h: Fix undefined BUILD_BUG_ON_ZERO()")
Fixes: 559048d156ff ("string: Check for "nonstring" attribute on strscpy() arguments")
Reviewed-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to 'lib/overflow_kunit.c')
0 files changed, 0 insertions, 0 deletions