summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2015-11-05 12:43:35 -0200
committerTom Rini <trini@konsulko.com>2015-11-05 10:52:26 -0500
commitb810aa1dd1b2c7facf47ca607cd780ec7976fd16 (patch)
treee03e7d0792e36a11ba55ee3db03b14d63373426e /arch
parent7a2a091c4ad81a5c298ef958809a5e1ca260a21c (diff)
downloadu-boot-imx-b810aa1dd1b2c7facf47ca607cd780ec7976fd16.zip
u-boot-imx-b810aa1dd1b2c7facf47ca607cd780ec7976fd16.tar.gz
u-boot-imx-b810aa1dd1b2c7facf47ca607cd780ec7976fd16.tar.bz2
mips: 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: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/include/asm/bitops.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/mips/include/asm/bitops.h b/arch/mips/include/asm/bitops.h
index b5c2a63..c31ff6e 100644
--- a/arch/mips/include/asm/bitops.h
+++ b/arch/mips/include/asm/bitops.h
@@ -17,6 +17,11 @@
#include <asm/sgidefs.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>
+
/*
* clear_bit() doesn't provide any barrier for the compiler.
*/