]> code.ossystems Code Review - bsp/u-boot.git/commitdiff
sh: bitops: Use the generic bitops headers
authorFabio Estevam <fabio.estevam@freescale.com>
Sat, 24 Oct 2015 11:36:58 +0000 (09:36 -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/microblaze/include/asm/bitops.h
arch/sh/include/asm/bitops.h

index 0ac78d76f9c387288c02f260034bdb10844d3ad6..d24f2cf9d36caf8616fbdeb04882bfb1f914752d 100644 (file)
@@ -7,6 +7,10 @@
 
 #include <asm/byteorder.h>     /* swab32 */
 #include <asm/system.h>                /* save_flags */
+#include <asm-generic/bitops/fls.h>
+#include <asm-generic/bitops/__fls.h>
+#include <asm-generic/bitops/fls64.h>
+#include <asm-generic/bitops/__ffs.h>
 
 #ifdef __KERNEL__
 /*
index c57d6284785a999a4bc5fc0853edca2bc71ab6db..8cb8385d76db5e7514f19c75f0d9bbfe6d479016 100644 (file)
@@ -1,6 +1,11 @@
 #ifndef __ASM_SH_BITOPS_H
 #define __ASM_SH_BITOPS_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>
+
 #ifdef __KERNEL__
 #include <asm/irqflags.h>
 /* For __swab32 */