[2.6 patch] mips: don't leak setup_early_printk() in userspace header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Our userspace headers shouldn't contain prototypes of in-kernel 
functions.

Signed-off-by: Adrian Bunk <bunk@xxxxxxxxxx>

---
e584bcde154a4d9cdf8db2fc0b4250751d53f1a0 
diff --git a/include/asm-mips/setup.h b/include/asm-mips/setup.h
index 883f59b..e600ced 100644
--- a/include/asm-mips/setup.h
+++ b/include/asm-mips/setup.h
@@ -3,6 +3,8 @@
 
 #define COMMAND_LINE_SIZE	256
 
+#ifdef  __KERNEL__
 extern void setup_early_printk(void);
+#endif /* __KERNEL__ */
 
 #endif /* __SETUP_H */



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux