Re: next-20221122: tinyconfig: ppc n s390: kernel/printk/printk.c:95:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int]
From: Paul E. McKenney
Date: Tue Nov 22 2022 - 09:48:51 EST
On Tue, Nov 22, 2022 at 03:33:16PM +0106, John Ogness wrote:
> Hi Petr,
>
> On 2022-11-22, Naresh Kamboju <naresh.kamboju@xxxxxxxxxx> wrote:
> > Today's Linux next 20221122 tag clang-15 tinyconfig builds fails on
> > powerpc and s390 architectures.
>
> The problem is that CONFIG_SRCU is not selected. This must be selected
> by any modules that requires SRCU. However, printk.c is _always_ built
> into the kernel (even if !CONFIG_PRINTK). The registration of consoles
> and the console list (which uses SRCU) is _always_ built into the
> kernel.
>
> So should CONFIG_SRCU now always be active?
>
> @paulmck: Do you have a problem with permanently activating CONFIG_SRCU?
The people wanting it separate back in the day were those wanting very
tiny kernels. I have not heard from them in a long time, so maybe it
is now OK to just make SRCU unconditional.
Thanx, Paul