On Tue, 28 May 2024 14:11:48 +0200, Arnd Bergmann wrote: > 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); > | ^~~~~~~~~~~~~~ > > [...]
Applied, thanks! [1/1] kdb: address -Wformat-security warnings commit: 70867efacf4370b6c7cdfc7a5b11300e9ef7de64 Best regards, -- Daniel Thompson <daniel.thomp...@linaro.org> _______________________________________________ Kgdb-bugreport mailing list Kgdb-bugreport@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport