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

From
Geert Uytterhoeven <geert@linux-m68k.org>
Date
2021-11-23 14:48:54
Also in
linux-sh, lkml
Reply to
Arnd Bergmann, 2021-11-23
Hi Arnd,

On Tue, Nov 23, 2021 at 2:50 PM Arnd Bergmann [off-list ref] wrote:
On Tue, Nov 23, 2021 at 12:38 PM Naresh Kamboju
[off-list ref] wrote:
quoted
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@intel.com/ (local)

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

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
Thread (24 messages) 24 messages, 11 authors, last reply 2021-11-26
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help