Commit 220483fe authored by Sam Ravnborg's avatar Sam Ravnborg Committed by David S. Miller

sparc: fix warning in userspace header traps.h

Fix following warning:
traps.h:23: extern's make no sense in userspace

Add an ifdef __KERNEL__ block that cover the
extern definition and a few related things that neither
is for userspace.
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fffeeb41
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#define NUM_SPARC_TRAPS 255 #define NUM_SPARC_TRAPS 255
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#ifdef __KERNEL__
/* This is for V8 compliant Sparc CPUS */ /* This is for V8 compliant Sparc CPUS */
struct tt_entry { struct tt_entry {
unsigned long inst_one; unsigned long inst_one;
...@@ -29,7 +29,7 @@ static inline unsigned long get_tbr(void) ...@@ -29,7 +29,7 @@ static inline unsigned long get_tbr(void)
__asm__ __volatile__("rd %%tbr, %0\n\t" : "=r" (tbr)); __asm__ __volatile__("rd %%tbr, %0\n\t" : "=r" (tbr));
return tbr; return tbr;
} }
#endif /* (__KERNEL__) */
#endif /* !(__ASSEMBLY__) */ #endif /* !(__ASSEMBLY__) */
/* For patching the trap table at boot time, we need to know how to /* For patching the trap table at boot time, we need to know how to
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment