Subject: Re: linux-next: build failure after merge of the random tree

From: Andy Shevchenko <[email-masked]>
Date: Sat, 24 Jan 2026 00:18:45 +0200

On Fri, Jan 23, 2026 at 10:10:56PM +0000, Mark Brown wrote:
> On Fri, Jan 23, 2026 at 11:56:04PM +0200, Andy Shevchenko wrote:
> > On Fri, Jan 23, 2026 at 09:48:19PM +0000, Mark Brown wrote:
> 
> > > After merging the random tree, today's linux-next build (arm
> > > multi_v7_defconfig) failed like this:
> 
> > > /tmp/next/build/arch/arm/include/asm/smp.h:73:43: warning: 'struct completion' declared inside parameter list will not be visible outside of this definition or declaration
> > >    73 | extern int register_ipi_completion(struct completion *completion, int cpu);
> > >       |                                           ^~~~~~~~~~
> 
> > Wouldn't adding
> 
> > struct completion;
> 
> > at the top of arch/arm/include/asm/smp.h fix this?
> 
> That ougtht to do the bulk of it, though I see there's also at least:
> 
> /tmp/next/build/include/linux/dma-fence.h: In function '__dma_fence_is_later':
> /tmp/next/build/include/linux/dma-fence.h:501:22: error: implicit declaration of
>  function 'lower_32_bits' [-Wimplicit-function-declaration]
>   501 |         return (int)(lower_32_bits(f1) - lower_32_bits(f2)) > 0;
>       |                      ^~~~~~~~~~~~~

This (dma-fence.h) needs wordpart.h.

> and
> 
> In file included from /tmp/next/build/drivers/power/supply/tps65090-charger.c:10
> :
> /tmp/next/build/include/linux/freezer.h: In function 'try_to_freeze':
> /tmp/next/build/include/linux/freezer.h:58:9: error: implicit declaration of function 'might_sleep' [-Wimplicit-function-declaration]
>    58 |         might_sleep();
>       |         ^~~~~~~~~~~
> 
> in there.

And this (freezer.h) for now requires kernel.h :-(

...

Okay, I need to reproduce that.
Thanks!

-- 
With Best Regards,
Andy Shevchenko