aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/git-resolve.sh
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2025-04-07 17:29:35 +0000
committerGreg Kroah-Hartman <[email protected]>2025-04-17 08:56:11 +0000
commitdd09eb0e2cc4ba91cd64dba2b733d3f8e1248fd8 (patch)
tree2c17c7ecff0104e74c5786910398783399a0bcc7 /scripts/git-resolve.sh
parentchar: xillybus: Use to_delayed_work() (diff)
downloadkernel-dd09eb0e2cc4ba91cd64dba2b733d3f8e1248fd8.tar.gz
kernel-dd09eb0e2cc4ba91cd64dba2b733d3f8e1248fd8.zip
EISA: Increase length of device names
GCC 15's -Wunterminated-string-initialization warned about truncated name strings. Instead of marking them with the "nonstring" attribute[1], increase their length to correctly include enough space for the terminating NUL character, as they are used with %s format specifiers when showing resource allocations in /proc/ioports: seq_printf(m, "%*s%0*llx-%0*llx : %s\n", ..., r->name); The strings in eisa.ids have a max length of 73, and the 50 limit was an arbitrary limit that was removed back in 2008 with commit ca52a49846f1 ("driver core: remove DEVICE_NAME_SIZE define"). Change the limit to 74 so nothing is truncated any more. Additionally fix the Makefile to use "if_changed" instead of "cmd" to detect changes to the command line used to generate the target, otherwise devlist.h won't be rebuilt. Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117178 [1] Signed-off-by: Kees Cook <[email protected]> Acked-by: Alejandro Colomar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/git-resolve.sh')
0 files changed, 0 insertions, 0 deletions