linux-snps-arc.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* kisskb: FAILED linux-next/axs101_defconfig/arcompact Thu May 04, 18:53
@ 2017-05-04  8:53 noreply
  2017-05-05 18:52 ` asm/mmu.h using NR_CPUS (was Re: kisskb: FAILED linux-next/axs101_defconfig/arcompact Thu May 04, 18:53) Vineet Gupta
  0 siblings, 1 reply; 2+ messages in thread
From: noreply @ 2017-05-04  8:53 UTC (permalink / raw)
  To: linux-snps-arc

FAILED linux-next/axs101_defconfig/arcompact Thu May 04, 18:53

http://kisskb.ellerman.id.au/kisskb/buildresult/13022475/

Commit:   Add linux-next specific files for 20170504
          ef57eb19c96fa099a578aeaed9b9d0dbcc4fe069
Compiler: arc-buildroot-linux-uclibc-gcc (Buildroot 2015.08.1) 4.8.4

Possible errors
---------------

arch/arc/include/asm/mmu.h:75:21: error: 'NR_CPUS' undeclared here (not in a function)
make[3]: *** [arch/arc/mm/ioremap.o] Error 1
make[2]: *** [arch/arc/mm] Error 2
make[1]: *** [arch/arc] Error 2
arch/arc/include/asm/mmu.h:75:21: error: 'NR_CPUS' undeclared here (not in a function)
make[3]: *** [kernel/irq/generic-chip.o] Error 1
make[2]: *** [kernel/irq] Error 2
make[1]: *** [kernel] Error 2
arch/arc/include/asm/mmu.h:75:21: error: 'NR_CPUS' undeclared here (not in a function)
make[2]: *** [mm/vmalloc.o] Error 1
make[1]: *** [mm] Error 2
make: *** [sub-make] Error 2

Possible warnings (2)
----------------------

kernel/sched/core.c:3326:1: warning: control reaches end of non-void function [-Wreturn-type]
include/linux/kernel.h:757:16: warning: comparison of distinct pointer types lacks a cast [enabled by default]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* asm/mmu.h using NR_CPUS (was Re: kisskb: FAILED linux-next/axs101_defconfig/arcompact Thu May 04, 18:53)
  2017-05-04  8:53 kisskb: FAILED linux-next/axs101_defconfig/arcompact Thu May 04, 18:53 noreply
@ 2017-05-05 18:52 ` Vineet Gupta
  0 siblings, 0 replies; 2+ messages in thread
From: Vineet Gupta @ 2017-05-05 18:52 UTC (permalink / raw)
  To: linux-snps-arc

+CC Michal, linux-arch as it potentially affects other arches !

Hi,

On 05/04/2017 01:53 AM, noreply@ellerman.id.au wrote:
> FAILED linux-next/axs101_defconfig/arcompact Thu May 04, 18:53
> 
> http://kisskb.ellerman.id.au/kisskb/buildresult/13022475/
> 
> Commit:   Add linux-next specific files for 20170504
>           ef57eb19c96fa099a578aeaed9b9d0dbcc4fe069
> Compiler: arc-buildroot-linux-uclibc-gcc (Buildroot 2015.08.1) 4.8.4
> 
> Possible errors
> ---------------
> 
> arch/arc/include/asm/mmu.h:75:21: error: 'NR_CPUS' undeclared here (not in a function)
> make[3]: *** [arch/arc/mm/ioremap.o] Error 1
> make[2]: *** [arch/arc/mm] Error 2
> make[1]: *** [arch/arc] Error 2
> arch/arc/include/asm/mmu.h:75:21: error: 'NR_CPUS' undeclared here (not in a function)
> make[3]: *** [kernel/irq/generic-chip.o] Error 1
> make[2]: *** [kernel/irq] Error 2
> make[1]: *** [kernel] Error 2
> arch/arc/include/asm/mmu.h:75:21: error: 'NR_CPUS' undeclared here (not in a function)
> make[2]: *** [mm/vmalloc.o] Error 1
> make[1]: *** [mm] Error 2
> make: *** [sub-make] Error 2

I bisected the linux-next ARC build failure (!SMP only) to a subtle side effect of
a950a30220657d ("mm, vmalloc: properly track vmalloc users") which includes
asm/pgtable.h causing the final include chain (for ARC ioremap.c) to have
asm/mmu.h (using NR_CPUS) before linux/threads.h (defining it)

The quick fix is to include linux/threads.h and this is just a heads up other
arches might run into same - although xtensa and mips with similar mm_context_t
seem to build just fine !

-Vineet

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-05 18:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-04  8:53 kisskb: FAILED linux-next/axs101_defconfig/arcompact Thu May 04, 18:53 noreply
2017-05-05 18:52 ` asm/mmu.h using NR_CPUS (was Re: kisskb: FAILED linux-next/axs101_defconfig/arcompact Thu May 04, 18:53) Vineet Gupta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).