Re: [PATCH 1/1] printk: Make it compile with !CONFIG_PRINTK
From: Joe Perches
Date: Mon May 14 2012 - 12:46:27 EST
On Mon, 2012-05-14 at 18:20 +0200, Kay Sievers wrote:
> On Mon, May 14, 2012 at 6:18 PM, Hiroshi DOYU <hdoyu@xxxxxxxxxx> wrote:
> > Add missing prepend_timestamp() dummy.
> That was fixed already last week:
Yup, but in my opinion, this particular fix shouldn't be
necessary because the CONFIG_PRINTK bits should have better
None of the code that calls prepend_timestamp should
actually be compiled in when !CONFIG_PRINTK.
The same is true for unnecessary uses like the existing
static DEFINE_PER_CPU(int, printk_pending);
static DEFINE_PER_CPU(char [PRINTK_BUF_SIZE], printk_sched_buf);
After this patchset is accepted into mainline, I'll revive
the modularization and move of kernel/printk.c and associated
files into -> kernel/printk/* patch I did awhile ago.
I'll follow-on to this message with the original patches
just as an fyi/rfc.
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/