# 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 
- List: linux-next
- Page: https://ratatoskr.run/linux-next/2021/11/1582870
- Thread: https://ratatoskr.run/linux-next/2021/11/1582620/t.md

```text
Hi Arnd,

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

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
```
