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) <[email protected]> Reviewed-by: Ingo Molnar <[email protected]> Acked-by: David S. Miller <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent ba1f2b2 commit 48017e5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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)