]> code.ossystems Code Review - bsp/u-boot.git/commitdiff
m68k: bitops: Use the generic bitops headers
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 23 Oct 2015 22:31:53 +0000 (20:31 -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>
Reviewed-by: Tom Rini <trini@konsulko.com>
arch/m68k/include/asm/bitops.h

index f9c434b4a3a4f67cfe7b6ce4f5555d952310192a..69ea26a729a72c58dc006c3ea32e30b2f32f93c3 100644 (file)
@@ -6,6 +6,10 @@
 #define _M68K_BITOPS_H
 
 #include <asm/byteorder.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>
 
 extern void set_bit(int nr, volatile void *addr);
 extern void clear_bit(int nr, volatile void *addr);