Skip to content

Commit 48017e5

Browse files
author
Peter Zijlstra
committed
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
1 parent ba1f2b2 commit 48017e5

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎arch/sparc/include/asm/percpu_64.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
#include <linux/compiler.h>
66

7+
#ifndef BUILD_VDSO
78
register unsigned long __local_per_cpu_offset asm("g5");
9+
#endif
810

911
#ifdef CONFIG_SMP
1012

‎arch/sparc/include/asm/trap_block.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#ifndef _SPARC_TRAP_BLOCK_H
33
#define _SPARC_TRAP_BLOCK_H
44

5+
#include <linux/threads.h>
6+
57
#include <asm/hypervisor.h>
68
#include <asm/asi.h>
79

0 commit comments

Comments
 (0)