summaryrefslogtreecommitdiff
path: root/arch/sh
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2015-11-05 14:43:28 (GMT)
committerTom Rini <trini@konsulko.com>2015-11-05 15:52:09 (GMT)
commitf86411b18d69b03ca90c3864b8bffbff350f54e9 (patch)
treebc3ab200cf35cbb17d85c4783f560af3bb955bc0 /arch/sh
parent9b0e3fd1c85b2adb9d85ef2d95aa70d0012d2f38 (diff)
downloadu-boot-fsl-qoriq-f86411b18d69b03ca90c3864b8bffbff350f54e9.tar.xz
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 */