]> code.ossystems Code Review - bsp/u-boot.git/commitdiff
nds32: Use the generic bitops headers
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 26 Oct 2015 15:10:15 +0000 (13:10 -0200)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 28 Oct 2015 13:02:27 +0000 (11:02 -0200)
The generic bitops headers are required when calling logarithimic
functions, such as ilog2().

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
arch/nds32/include/asm/bitops.h

index f1aa9a356b3c941a8ec8f9e077465b5ae17d6491..7ee37c37bc8ca29d7d4b85148dc8cae9312e81f5 100644 (file)
 #ifdef __KERNEL__
 
 #include <asm/system.h>
+#include <asm-generic/bitops/fls.h>
+#include <asm-generic/bitops/__fls.h>
+#include <asm-generic/bitops/fls64.h>
+#include <asm-generic/bitops/__ffs.h>
 
 #define smp_mb__before_clear_bit()     do { } while (0)
 #define smp_mb__after_clear_bit()      do { } while (0)