aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev_api.c
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2025-03-11 22:55:20 +0000
committerJohannes Berg <[email protected]>2025-03-12 08:48:22 +0000
commit8300f2504afeceac234027d433a2f71d4a39c7fe (patch)
tree04e91b16b001ed349611fba7a351fc1776f6c924 /net/core/dev_api.c
parentwifi: mwifiex: Add __nonstring annotations for unterminated strings (diff)
downloadkernel-8300f2504afeceac234027d433a2f71d4a39c7fe.tar.gz
kernel-8300f2504afeceac234027d433a2f71d4a39c7fe.zip
wifi: zd1211rw: Add __nonstring annotations for unterminated strings
When a character array without a terminating NUL character has a static initializer, GCC 15's -Wunterminated-string-initialization will only warn if the array lacks the "nonstring" attribute[1]. Mark the arrays with __nonstring to and correctly identify the char array as "not a C string" and thereby eliminate the warning. Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117178 [1] Signed-off-by: Kees Cook <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'net/core/dev_api.c')
0 files changed, 0 insertions, 0 deletions