[2.6 patch] linux/kernel.h userspace header cleanup

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Adrian Bunk
Date: Monday, June 23, 2008 - 10:49 am

Nothing from the bottom of this header is part of the 
kernel<->userspace ABI.

Signed-off-by: Adrian Bunk <bunk@kernel.org>

---

 include/linux/kernel.h |    4 ++++
 1 file changed, 4 insertions(+)

c023fd63795380bceef9abc92c1d6fca91791de7 diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index 792bf0a..2993b80 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -487,6 +487,8 @@ struct sysinfo {
 	char _f[20-2*sizeof(long)-sizeof(int)];	/* Padding: libc5 uses this.. */
 };
 
+#ifdef __KERNEL__
+
 /* Force a compilation error if condition is true */
 #define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
 
@@ -506,4 +508,6 @@ struct sysinfo {
 #define NUMA_BUILD 0
 #endif
 
+#endif  /*  __KERNEL__  */
+
 #endif

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[2.6 patch] linux/kernel.h userspace header cleanup, Adrian Bunk, (Mon Jun 23, 10:49 am)
Re: [2.6 patch] linux/kernel.h userspace header cleanup, Andrew Morton, (Mon Jun 23, 4:51 pm)