summaryrefslogtreecommitdiff
path: root/arch/m68k
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2015-11-05 12:43:26 -0200
committerTom Rini <trini@konsulko.com>2015-11-05 10:52:04 -0500
commitd67154523cb4e7d356e82615631f943d09aba647 (patch)
tree9e0d5e62c348cf1ece2c2ffc137c7cca21de1306 /arch/m68k
parent6c2f758cee266f764828b05fb7811ee3d4a7adec (diff)
downloadu-boot-imx-d67154523cb4e7d356e82615631f943d09aba647.zip
u-boot-imx-d67154523cb4e7d356e82615631f943d09aba647.tar.gz
u-boot-imx-d67154523cb4e7d356e82615631f943d09aba647.tar.bz2
m68k: 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/m68k')
-rw-r--r--arch/m68k/include/asm/bitops.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/m68k/include/asm/bitops.h b/arch/m68k/include/asm/bitops.h
index f9c434b..69ea26a 100644
--- a/arch/m68k/include/asm/bitops.h
+++ b/arch/m68k/include/asm/bitops.h
@@ -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);