diff options
| author | Kees Cook <[email protected]> | 2025-03-10 22:23:32 +0000 |
|---|---|---|
| committer | Johannes Berg <[email protected]> | 2025-03-12 08:48:14 +0000 |
| commit | c04d96913c88fdc11400ca6dd7f436bb6ecc764c (patch) | |
| tree | 47c1d8019d8b59210ced3b8e8ae6c6a8155d29e5 /net/core/dev_api.c | |
| parent | wifi: iwlwifi: mld: avoid selecting bad links (diff) | |
| download | kernel-c04d96913c88fdc11400ca6dd7f436bb6ecc764c.tar.gz kernel-c04d96913c88fdc11400ca6dd7f436bb6ecc764c.zip | |
wifi: mwifiex: 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]
Cc: Brian Norris <[email protected]>
Cc: Francesco Dolcini <[email protected]>
Cc: Johannes Berg <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Allison Randal <[email protected]>
Cc: [email protected]
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
