]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Blackfin: bitops: fix include order after little endian inclusion
authorMike Frysinger <vapier@gentoo.org>
Fri, 25 Mar 2011 20:24:36 +0000 (16:24 -0400)
committerMike Frysinger <vapier@gentoo.org>
Fri, 25 Mar 2011 20:54:13 +0000 (16:54 -0400)
The le.h header requires things like test_bit to be declared, so we need
to move its inclusion to after the point where that happens.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/include/asm/bitops.h

index 49762c6bb0d56f549f090fd98216ababccc75045..8a0fed16058f217cfb6badb41dc176faa40b70af 100644 (file)
@@ -25,7 +25,6 @@
 #include <asm-generic/bitops/const_hweight.h>
 #include <asm-generic/bitops/lock.h>
 
-#include <asm-generic/bitops/le.h>
 #include <asm-generic/bitops/ext2-atomic.h>
 
 #ifndef CONFIG_SMP
@@ -113,6 +112,9 @@ static inline int test_and_change_bit(int nr, volatile unsigned long *addr)
 
 #endif /* CONFIG_SMP */
 
+/* Needs to be after test_bit and friends */
+#include <asm-generic/bitops/le.h>
+
 /*
  * hweightN: returns the hamming weight (i.e. the number
  * of bits set) of a N-bit word