aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/byteorder/big_endian.h
diff options
context:
space:
mode:
authorRobert P. J. Day <rpjday@crashcourse.ca>2008-04-30 00:55:14 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-30 08:29:54 -0700
commit969a19f1c405a8e9d15ceb9e75e3f4a321aaf56f (patch)
treeeb850d961abcada8639b571cce8c06acae991aab /include/linux/byteorder/big_endian.h
parentae50884f66fc93aa713feade8f87c03471241275 (diff)
downloadkernel_samsung_smdk4412-969a19f1c405a8e9d15ceb9e75e3f4a321aaf56f.zip
kernel_samsung_smdk4412-969a19f1c405a8e9d15ceb9e75e3f4a321aaf56f.tar.gz
kernel_samsung_smdk4412-969a19f1c405a8e9d15ceb9e75e3f4a321aaf56f.tar.bz2
Drop the exporting of empty <linux/byteorder/generic.h>
Fix up the contents of <linux/byteorder/> so that it doesn't export a content-free generic.h to user space. This involves: * Removing the __KERNEL__ tests from generic.h and dropping it from Kbuild. * Wrapping the inclusions of generic.h in both big_endian.h and little_endian.h in __KERNEL__ tests. * Shifting big_endian.h and little_endian.h from header-y to unifdef-y in Kbuild. Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/byteorder/big_endian.h')
-rw-r--r--include/linux/byteorder/big_endian.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/byteorder/big_endian.h b/include/linux/byteorder/big_endian.h
index bef8789..961ed4b 100644
--- a/include/linux/byteorder/big_endian.h
+++ b/include/linux/byteorder/big_endian.h
@@ -101,6 +101,8 @@ static inline __u16 __be16_to_cpup(const __be16 *p)
#define __cpu_to_be16s(x) do {} while (0)
#define __be16_to_cpus(x) do {} while (0)
+#ifdef __KERNEL__
#include <linux/byteorder/generic.h>
+#endif
#endif /* _LINUX_BYTEORDER_BIG_ENDIAN_H */