Merge git://git.kernel.org/pub/scm/linux/kernel/git/jaswinder/headers-check-2.6
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 14 Jun 2009 20:52:53 +0000 (13:52 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 14 Jun 2009 20:52:53 +0000 (13:52 -0700)
* git://git.kernel.org/pub/scm/linux/kernel/git/jaswinder/headers-check-2.6:
  headers_check fix: mn10300, setup.h
  headers_check fix: mn10300, ptrace.h

arch/mn10300/include/asm/ptrace.h
arch/mn10300/include/asm/setup.h

index 921942ed1b03508a582e6e226ed33acf50c8fa5b..1b0ba5e182b0c5624f18e20adb0764881f7f9606 100644 (file)
@@ -77,8 +77,6 @@ struct pt_regs {
 };
 #endif
 
-extern struct pt_regs *__frame; /* current frame pointer */
-
 /* Arbitrarily choose the same ptrace numbers as used by the Sparc code. */
 #define PTRACE_GETREGS            12
 #define PTRACE_SETREGS            13
@@ -90,6 +88,8 @@ extern struct pt_regs *__frame; /* current frame pointer */
 
 #if defined(__KERNEL__)
 
+extern struct pt_regs *__frame;                /* current frame pointer */
+
 #if !defined(__ASSEMBLY__)
 struct task_struct;
 
@@ -107,5 +107,4 @@ extern void user_disable_single_step(struct task_struct *);
 #define profile_pc(regs) ((regs)->pc)
 
 #endif  /*  __KERNEL__  */
-
 #endif /* _ASM_PTRACE_H */
index 08356c83228329835a153bd18160af0650bbdb0d..c229d1e3f9990a6ed483e24c9e1d8b5035e4e427 100644 (file)
@@ -11,7 +11,8 @@
 #ifndef _ASM_SETUP_H
 #define _ASM_SETUP_H
 
+#ifdef __KERNEL__
 extern void __init unit_setup(void);
 extern void __init unit_init_IRQ(void);
-
+#endif
 #endif /* _ASM_SETUP_H */