Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sparc64: Fix asm/percpu.h build error

In order to break a header dependency between lockdep and task_struct,
I need per-cpu stuff from lockdep.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Acked-by: David S. Miller <davem@davemloft.net>
Link: https://lkml.kernel.org/r/20200623083721.277992771@infradead.org

+4
+2
arch/sparc/include/asm/percpu_64.h
··· 4 4 5 5 #include <linux/compiler.h> 6 6 7 + #ifndef BUILD_VDSO 7 8 register unsigned long __local_per_cpu_offset asm("g5"); 9 + #endif 8 10 9 11 #ifdef CONFIG_SMP 10 12
+2
arch/sparc/include/asm/trap_block.h
··· 2 2 #ifndef _SPARC_TRAP_BLOCK_H 3 3 #define _SPARC_TRAP_BLOCK_H 4 4 5 + #include <linux/threads.h> 6 + 5 7 #include <asm/hypervisor.h> 6 8 #include <asm/asi.h> 7 9