diff options
| author | Kees Cook <[email protected]> | 2025-03-10 22:25:31 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2025-03-11 12:06:39 +0000 |
| commit | 986a6f5eacb900ea0f6036ef724b26e76be40f65 (patch) | |
| tree | bf28c15ab87e71bab453ea527f5bc829b48d3bf3 /drivers/net/ethernet/intel/ice/ice_lib.c | |
| parent | Merge afs RCU pathwalk fix (diff) | |
| download | kernel-986a6f5eacb900ea0f6036ef724b26e76be40f65.tar.gz kernel-986a6f5eacb900ea0f6036ef724b26e76be40f65.zip | |
vboxsf: 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.
This effectively reverts the change in 4e7487245abc ("vboxsf: fix building
with GCC 15"), to add the annotation that has other uses (i.e. warning
if the string is ever used with C string APIs).
Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117178 [1]
Cc: Hans de Goede <[email protected]>
Cc: Brahmajit Das <[email protected]>
Cc: Christian Brauner <[email protected]>
Cc: [email protected]
Signed-off-by: Kees Cook <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_lib.c')
0 files changed, 0 insertions, 0 deletions
