Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Blackfin: bitops: fix include order after little endian inclusion

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>

+3 -1
+3 -1
arch/blackfin/include/asm/bitops.h
··· 25 25 #include <asm-generic/bitops/const_hweight.h> 26 26 #include <asm-generic/bitops/lock.h> 27 27 28 - #include <asm-generic/bitops/le.h> 29 28 #include <asm-generic/bitops/ext2-atomic.h> 30 29 31 30 #ifndef CONFIG_SMP ··· 111 112 #undef test_bit 112 113 113 114 #endif /* CONFIG_SMP */ 115 + 116 + /* Needs to be after test_bit and friends */ 117 + #include <asm-generic/bitops/le.h> 114 118 115 119 /* 116 120 * hweightN: returns the hamming weight (i.e. the number