nds32: Use the generic bitops headers
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 5 Nov 2015 14:43:33 +0000 (12:43 -0200)
committerTom Rini <trini@konsulko.com>
Thu, 5 Nov 2015 15:52:21 +0000 (10:52 -0500)
The generic bitops headers are required when calling logarithmic
functions, such as ilog2().

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Reviewed-by: Jagan Teki <jteki@openedev.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)