aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/randomize_layout_plugin.c
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2025-04-15 22:52:49 +0000
committerKees Cook <[email protected]>2025-04-28 17:32:43 +0000
commit8e28276a569addb8a2324439ae473848ee52b056 (patch)
treecd4cc2b03e978e4c7d03bd1ea593130b7f31cc9f /scripts/gcc-plugins/randomize_layout_plugin.c
parentmod_devicetable: Enlarge the maximum platform_device_id name length (diff)
downloadkernel-8e28276a569addb8a2324439ae473848ee52b056.tar.gz
kernel-8e28276a569addb8a2324439ae473848ee52b056.zip
watchdog: exar: Shorten identity name to fit correctly
The static initializer for struct watchdog_info::identity is too long and gets initialized without a trailing NUL byte. Since the length of "identity" is part of UAPI and tied to ioctls, just shorten the name of the device. Avoids the warning seen with GCC 15's -Wunterminated-string-initialization option: drivers/watchdog/exar_wdt.c:224:27: warning: initializer-string for array of 'unsigned char' truncates NUL terminator but destination lacks 'nonstring' attribute (33 chars into 32 available) [-Wunterminated-string-initialization] 224 | .identity = "Exar/MaxLinear XR28V38x Watchdog", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Fixes: 81126222bd3a ("watchdog: Exar/MaxLinear XR28V38x driver") Reviewed-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions