Re: linux-next: build failure after merge of the char-misc tree

From: Greg KH
Date: Mon Jun 26 2023 - 05:09:32 EST


On Mon, Jun 26, 2023 at 02:25:37PM +1000, Stephen Rothwell wrote:
> Hi all,
>
> After merging the char-misc tree, today's linux-next build (powerpc
> ppc64_defconfig) failed like this:
>
> drivers/char/bsr.c: In function 'bsr_init':
> drivers/char/bsr.c:301:13: error: 'err' undeclared (first use in this function)
> 301 | if (err)
> | ^~~
> drivers/char/bsr.c:301:13: note: each undeclared identifier is reported only once for each function it appears in
>
> Caused by commit
>
> e55ce9fd3d8f ("bsr: make bsr_class a static const structure")
>
> I have reverted that commit for today.

Ick, I wonder what is up with the 0-day bot these days, I'm not getting
any reports and it should have caught this...

Anyway, I've applied the patch below to fix this up, thanks for the
report!

greg k-h

--------------