diff options
author | Robert P. J. Day <rpjday@crashcourse.ca> | 2008-04-30 00:55:14 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-30 08:29:54 -0700 |
commit | 969a19f1c405a8e9d15ceb9e75e3f4a321aaf56f (patch) | |
tree | eb850d961abcada8639b571cce8c06acae991aab /include/linux/byteorder/generic.h | |
parent | ae50884f66fc93aa713feade8f87c03471241275 (diff) | |
download | op-kernel-dev-969a19f1c405a8e9d15ceb9e75e3f4a321aaf56f.zip op-kernel-dev-969a19f1c405a8e9d15ceb9e75e3f4a321aaf56f.tar.gz |
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/generic.h')
-rw-r--r-- | include/linux/byteorder/generic.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/linux/byteorder/generic.h b/include/linux/byteorder/generic.h index d377155..0846e6b 100644 --- a/include/linux/byteorder/generic.h +++ b/include/linux/byteorder/generic.h @@ -82,12 +82,6 @@ * */ - -#if defined(__KERNEL__) -/* - * inside the kernel, we can use nicknames; - * outside of it, we must avoid POSIX namespace pollution... - */ #define cpu_to_le64 __cpu_to_le64 #define le64_to_cpu __le64_to_cpu #define cpu_to_le32 __cpu_to_le32 @@ -176,6 +170,4 @@ static inline void be64_add_cpu(__be64 *var, u64 val) *var = cpu_to_be64(be64_to_cpu(*var) + val); } -#endif /* KERNEL */ - #endif /* _LINUX_BYTEORDER_GENERIC_H */ |