summaryrefslogtreecommitdiff
path: root/arch/sh
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2015-11-05 12:43:28 -0200
committerTom Rini <trini@konsulko.com>2015-11-05 10:52:09 -0500
commitf86411b18d69b03ca90c3864b8bffbff350f54e9 (patch)
treebc3ab200cf35cbb17d85c4783f560af3bb955bc0 /arch/sh
parent9b0e3fd1c85b2adb9d85ef2d95aa70d0012d2f38 (diff)
downloadu-boot-imx-f86411b18d69b03ca90c3864b8bffbff350f54e9.zip
u-boot-imx-f86411b18d69b03ca90c3864b8bffbff350f54e9.tar.gz
u-boot-imx-f86411b18d69b03ca90c3864b8bffbff350f54e9.tar.bz2
sh: 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>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/include/asm/bitops.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/sh/include/asm/bitops.h b/arch/sh/include/asm/bitops.h
index c57d628..8cb8385 100644
--- a/arch/sh/include/asm/bitops.h
+++ b/arch/sh/include/asm/bitops.h
@@ -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 */