public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* arm64 non-SMP build error in latest upstream kernel
@ 2014-10-09 21:34 Guenter Roeck
  2014-10-09 21:43 ` Arnd Bergmann
  0 siblings, 1 reply; 2+ messages in thread
From: Guenter Roeck @ 2014-10-09 21:34 UTC (permalink / raw)
  To: linux-arm-kernel

Configuration: arm64 defconfig, -SMP

Error:

In file included from ./arch/arm64/include/asm/irq_work.h:4:0,
                 from include/linux/irq_work.h:46,
                 from include/linux/perf_event.h:49,
                 from include/linux/hw_breakpoint.h:4,
                 from arch/arm64/kernel/process.c:43:
./arch/arm64/include/asm/smp.h:24:3: error: #error "<asm/smp.h> included in non-SMP build"
 # error "<asm/smp.h> included in non-SMP build"
   ^
./arch/arm64/include/asm/smp.h:27:0: warning: "raw_smp_processor_id" redefined [enabled by default]
 #define raw_smp_processor_id() (current_thread_info()->cpu)
 ^
In file included from include/linux/sched.h:34:0,
                 from ./arch/arm64/include/asm/compat.h:25,
                 from ./arch/arm64/include/asm/stat.h:23,
                 from include/linux/stat.h:5,
                 from include/linux/compat.h:10,
                 from arch/arm64/kernel/process.c:23:
include/linux/smp.h:129:0: note: this is the location of the previous definition
 #define raw_smp_processor_id()   0

This is just one example; the error is seen multiple times.

Let me know if you need me to bisect.

Guenter

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

* arm64 non-SMP build error in latest upstream kernel
  2014-10-09 21:34 arm64 non-SMP build error in latest upstream kernel Guenter Roeck
@ 2014-10-09 21:43 ` Arnd Bergmann
  0 siblings, 0 replies; 2+ messages in thread
From: Arnd Bergmann @ 2014-10-09 21:43 UTC (permalink / raw)
  To: linux-arm-kernel

On Thursday 09 October 2014 14:34:27 Guenter Roeck wrote:
> Configuration: arm64 defconfig, -SMP
> 
> Error:
> 
> In file included from ./arch/arm64/include/asm/irq_work.h:4:0,
>                  from include/linux/irq_work.h:46,
>                  from include/linux/perf_event.h:49,
>                  from include/linux/hw_breakpoint.h:4,
>                  from arch/arm64/kernel/process.c:43:
> ./arch/arm64/include/asm/smp.h:24:3: error: #error "<asm/smp.h> included in non-SMP build"
>  # error "<asm/smp.h> included in non-SMP build"
>    ^
> ./arch/arm64/include/asm/smp.h:27:0: warning: "raw_smp_processor_id" redefined [enabled by default]
>  #define raw_smp_processor_id() (current_thread_info()->cpu)
>  ^
> In file included from include/linux/sched.h:34:0,
>                  from ./arch/arm64/include/asm/compat.h:25,
>                  from ./arch/arm64/include/asm/stat.h:23,
>                  from include/linux/stat.h:5,
>                  from include/linux/compat.h:10,
>                  from arch/arm64/kernel/process.c:23:
> include/linux/smp.h:129:0: note: this is the location of the previous definition
>  #define raw_smp_processor_id()   0
> 
> This is just one example; the error is seen multiple times.
> 
> Let me know if you need me to bisect.

It must be caused by 3631073659d0a ("arm64: Tell irq work about self
IPI support"), which recently added the asm/irq_work.h file. 

Reverting that patch makes it build again.

	Arnd

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

end of thread, other threads:[~2014-10-09 21:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-09 21:34 arm64 non-SMP build error in latest upstream kernel Guenter Roeck
2014-10-09 21:43 ` Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox