Ver código fonte

Blackfin: SMP: fix asm/bitops.h errors

The common asm-generic non-atomic bitops.h defines test_bit() for us, but
we need to use our own version.  So redirect the definition of this func
to avoid having to inline the rest of the asm-generic file.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger 15 anos atrás
pai
commit
71a516adb6
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      arch/blackfin/include/asm/bitops.h

+ 2 - 0
arch/blackfin/include/asm/bitops.h

@@ -108,7 +108,9 @@ static inline int test_and_change_bit(int nr, volatile unsigned long *addr)
 #define smp_mb__before_clear_bit()	barrier()
 #define smp_mb__before_clear_bit()	barrier()
 #define smp_mb__after_clear_bit()	barrier()
 #define smp_mb__after_clear_bit()	barrier()
 
 
+#define test_bit __skip_test_bit
 #include <asm-generic/bitops/non-atomic.h>
 #include <asm-generic/bitops/non-atomic.h>
+#undef test_bit
 
 
 #endif /* CONFIG_SMP */
 #endif /* CONFIG_SMP */