aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/tests/fpga-bridge-test.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2024-05-28 12:11:48 +0000
committerDaniel Thompson <[email protected]>2024-06-21 13:33:17 +0000
commit70867efacf4370b6c7cdfc7a5b11300e9ef7de64 (patch)
tree98005190ec170863b1086ae990f81c940e88dc52 /drivers/fpga/tests/fpga-bridge-test.c
parentLinux 6.10-rc4 (diff)
downloadkernel-70867efacf4370b6c7cdfc7a5b11300e9ef7de64.tar.gz
kernel-70867efacf4370b6c7cdfc7a5b11300e9ef7de64.zip
kdb: address -Wformat-security warnings
When -Wformat-security is not disabled, using a string pointer as a format causes a warning: kernel/debug/kdb/kdb_io.c: In function 'kdb_read': kernel/debug/kdb/kdb_io.c:365:36: error: format not a string literal and no format arguments [-Werror=format-security] 365 | kdb_printf(kdb_prompt_str); | ^~~~~~~~~~~~~~ kernel/debug/kdb/kdb_io.c: In function 'kdb_getstr': kernel/debug/kdb/kdb_io.c:456:20: error: format not a string literal and no format arguments [-Werror=format-security] 456 | kdb_printf(kdb_prompt_str); | ^~~~~~~~~~~~~~ Use an explcit "%s" format instead. Signed-off-by: Arnd Bergmann <[email protected]> Fixes: 5d5314d6795f ("kdb: core for kgdb back end (1 of 2)") Reviewed-by: Douglas Anderson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Thompson <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-bridge-test.c')
0 files changed, 0 insertions, 0 deletions