Re: spinlock.c:306:9: error: implicit declaration of function '__raw_write_lock_nested'

From: Geert Uytterhoeven
Date: Tue Nov 23 2021 - 09:48:56 EST


Hi Arnd,

On Tue, Nov 23, 2021 at 2:50 PM Arnd Bergmann <arnd@xxxxxxxx> wrote:
> On Tue, Nov 23, 2021 at 12:38 PM Naresh Kamboju
> <naresh.kamboju@xxxxxxxxxx> wrote:
> >
> > While building Linux next 20211123 tag for sh with gcc-11
> > following warnings / errors noticed.
>
> Nothing in here looks like a recent regression from either the kernel
> or gcc-11.

Except for:

kernel/locking/spinlock.c:306:9: error: implicit declaration of
function '__raw_write_lock_nested'; did you mean
'_raw_write_lock_nested'? [-Werror=implicit-function-declaration]
306 | __raw_write_lock_nested(lock, subclass);
| ^~~~~~~~~~~~~~~~~~~~~~~
| _raw_write_lock_nested

Which was also reported for other architectures:
https://lore.kernel.org/all/202111201111.c2ApGeHR-lkp@xxxxxxxxx/

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds