]> err.no Git - linux-2.6/commitdiff
[ARM] Add linux/compiler.h includes where required
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Wed, 16 Nov 2005 17:23:57 +0000 (17:23 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 16 Nov 2005 17:23:57 +0000 (17:23 +0000)
atomic.h, bitops.h and mmu_context.h are using likely/unlikely.
thread_info.h uses __attribute_const__.  Hence these files require
linux/compiler.h to be included.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
include/asm-arm/atomic.h
include/asm-arm/bitops.h
include/asm-arm/mmu_context.h
include/asm-arm/thread_info.h

index 5f827509e923aa2e62b1d4b14fdfca691d7fd107..d8ba0a9eb0852b4d9927ddc2c2cd20141fd3d063 100644 (file)
@@ -12,6 +12,7 @@
 #define __ASM_ARM_ATOMIC_H
 
 #include <linux/config.h>
+#include <linux/compiler.h>
 
 typedef struct { volatile int counter; } atomic_t;
 
index e007dd990da568318a73765bd68767ad7f705b36..7399d431edfeeb1a4771833ef3c2e20a85e3a1c0 100644 (file)
@@ -19,6 +19,7 @@
 
 #ifdef __KERNEL__
 
+#include <linux/compiler.h>
 #include <asm/system.h>
 
 #define smp_mb__before_clear_bit()     mb()
index 3d4b810d8c3869f2265610266766d29403ef043f..81c59facea3bead1184df5cf0359058eb9a2d366 100644 (file)
@@ -13,6 +13,7 @@
 #ifndef __ASM_ARM_MMU_CONTEXT_H
 #define __ASM_ARM_MMU_CONTEXT_H
 
+#include <linux/compiler.h>
 #include <asm/cacheflush.h>
 #include <asm/proc-fns.h>
 
index 8252a4cd860f114557fe731e6dd4e2bf726123a5..7c98557b717ff048003e0d07c6a5e820c9ccf4e6 100644 (file)
@@ -12,6 +12,7 @@
 
 #ifdef __KERNEL__
 
+#include <linux/compiler.h>
 #include <asm/fpstate.h>
 
 #define THREAD_SIZE_ORDER      1