Re: [PATCH]: Cleanup: Remove gcc format string warnings whencompiling with -Wformat-security (was: Re: [PATCH] Kbuild: Disablethe -Wformat-security gcc flag)

From: Ingo Molnar
Date: Thu Feb 05 2009 - 09:53:02 EST



* Floris Kraak <randakar@xxxxxxxxx> wrote:

> --- a/arch/x86/kernel/dumpstack.c
> +++ b/arch/x86/kernel/dumpstack.c
> @@ -112,7 +112,7 @@ print_context_stack(struct thread_info *tinfo,
> static void
> print_trace_warning_symbol(void *data, char *msg, unsigned long symbol)
> {
> - printk(data);
> + printk("%s", data);
> print_symbol(msg, symbol);
> printk("\n");

Arjan, the code above seems to be dead and never called. These methods:

static const struct stacktrace_ops print_trace_ops = {
.warning = print_trace_warning,
.warning_symbol = print_trace_warning_symbol,

are not used anywhere that i can see. Could you have a look at this please?

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/