File: hppa-atomic.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 (18 lines) | stat: -rw-r--r-- 439 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- include/asm-parisc/atomic.h	2003-10-15 11:11:27.000000000 -0400
+++ include/asm-parisc/atomic.h	2004-01-07 13:14:05.000000000 -0500
@@ -1,6 +1,8 @@
 #ifndef _ASM_PARISC_ATOMIC_H_
 #define _ASM_PARISC_ATOMIC_H_
 
+#ifdef __KERNEL__
+
 #include <linux/config.h>
 #include <asm/system.h>
 
@@ -181,4 +183,6 @@
 #define smp_mb__before_atomic_inc()	smp_mb()
 #define smp_mb__after_atomic_inc()	smp_mb()
 
+#endif /* __KERNEL__ */
+
 #endif