patch-2.3.48 linux/include/asm-ppc/types.h

Next file: linux/include/asm-ppc/vga.h
Previous file: linux/include/asm-ppc/system.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/include/asm-ppc/types.h linux/include/asm-ppc/types.h
@@ -26,8 +26,6 @@
 /*
  * These aren't exported outside the kernel to avoid name space clashes
  */
-#ifdef __KERNEL__
-
 typedef signed char s8;
 typedef unsigned char u8;
 
@@ -40,14 +38,15 @@
 typedef signed long long s64;
 typedef unsigned long long u64;
 
-#define BITS_PER_LONG 32
-
 typedef struct {
 	u32 u[4];
 } __attribute((aligned(16))) vector128;
 
-/* DMA addresses are 32-bits wide */
+#ifdef __KERNEL__
+
+#define BITS_PER_LONG 32
 
+/* DMA addresses are 32-bits wide */
 typedef u32 dma_addr_t;
 
 #endif /* __KERNEL__ */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)