File: ia64-byteorder.patch

package info (click to toggle)
linux-kernel-headers 2.5.999-test7-bk-17
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 28,268 kB
  • ctags: 214,024
  • sloc: ansic: 324,929; cpp: 783; makefile: 79; asm: 61; sh: 61
file content (21 lines) | stat: -rw-r--r-- 486 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- include/asm-ia64/byteorder.h	2003-12-30 14:48:47.000000000 -0500
+++ include/asm-ia64/byteorder.h	2004-01-03 12:35:48.000000000 -0500
@@ -7,6 +7,9 @@
  */
 
 #include <asm/types.h>
+
+#ifdef __KERNEL__
+
 #include <asm/intrinsics.h>
 
 static __inline__ __const__ __u64
@@ -34,6 +37,8 @@
 #define __arch__swab32(x) __ia64_swab32(x)
 #define __arch__swab16(x) __ia64_swab16(x)
 
+#endif /* __KERNEL__ */
+
 #define __BYTEORDER_HAS_U64__
 
 #include <linux/byteorder/little_endian.h>