]> git.sur5r.net Git - u-boot/commitdiff
openrisc: Use the generic bitops headers
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 5 Nov 2015 14:43:32 +0000 (12:43 -0200)
committerTom Rini <trini@konsulko.com>
Thu, 5 Nov 2015 15:52:19 +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/openrisc/include/asm/bitops.h

index 6d0b57c0145de74fce8ed3d15b88faadf5843f15..28c4658672a231f3656379234b9994c94ccdfb45 100644 (file)
 #define PLATFORM_FFS
 #include <asm/bitops/ffs.h>
 
+#include <asm-generic/bitops/__fls.h>
+#include <asm-generic/bitops/fls64.h>
+#include <asm-generic/bitops/__ffs.h>
+
 #define hweight32(x) generic_hweight32(x)
 #define hweight16(x) generic_hweight16(x)
 #define hweight8(x) generic_hweight8(x)