| Submitter | Sam Ravnborg |
|---|---|
| Date | Jan. 1, 2009, 10:40 p.m. |
| Message ID | <1230849630-22482-3-git-send-email-sam@ravnborg.org> |
| Download | mbox | patch |
| Permalink | /patch/16244/ |
| State | Accepted |
| Delegated to: | David Miller |
| Headers | show |
Comments
From: Sam Ravnborg <sam@ravnborg.org> Date: Thu, 1 Jan 2009 23:40:29 +0100 > 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: Sam Ravnborg <sam@ravnborg.org> Applied. -- To unsubscribe from this list: send the line "unsubscribe sparclinux" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Patch
diff --git a/arch/sparc/include/asm/traps.h b/arch/sparc/include/asm/traps.h index bebdbf8..4becd66 100644 --- a/arch/sparc/include/asm/traps.h +++ b/arch/sparc/include/asm/traps.h @@ -10,7 +10,7 @@ #define NUM_SPARC_TRAPS 255 #ifndef __ASSEMBLY__ - +#ifdef __KERNEL__ /* This is for V8 compliant Sparc CPUS */ struct tt_entry { unsigned long inst_one; @@ -29,7 +29,7 @@ static inline unsigned long get_tbr(void) __asm__ __volatile__("rd %%tbr, %0\n\t" : "=r" (tbr)); return tbr; } - +#endif /* (__KERNEL__) */ #endif /* !(__ASSEMBLY__) */ /* For patching the trap table at boot time, we need to know how to
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: Sam Ravnborg <sam@ravnborg.org> --- arch/sparc/include/asm/traps.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)