summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2015-11-05 12:43:30 -0200
committerTom Rini <trini@konsulko.com>2015-11-05 10:52:14 -0500
commitd308c9efadbe4e2b37bbed134f5782322de87686 (patch)
treed7d935a355f15ce60d415657ce08747de818fadd /arch
parente6e7b7c0abaa8f42d20e22b04bf8df69e76c8909 (diff)
downloadu-boot-d308c9efadbe4e2b37bbed134f5782322de87686.tar.gz
sandbox: Use the generic bitops headers
The generic bitops headers are required when calling logarithmic functions, such as ilog2(). Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Heiko Schocher <hs@denx.de> Reviewed-by: Jagan Teki <jteki@openedev.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/sandbox/include/asm/bitops.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sandbox/include/asm/bitops.h b/arch/sandbox/include/asm/bitops.h
index f1a7aeee93..f27d5e98c5 100644
--- a/arch/sandbox/include/asm/bitops.h
+++ b/arch/sandbox/include/asm/bitops.h
@@ -21,6 +21,10 @@
#include <linux/compiler.h>
#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>
#ifdef __KERNEL__