diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2015-11-05 14:43:34 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-11-05 15:52:23 (GMT) |
commit | 7a2a091c4ad81a5c298ef958809a5e1ca260a21c (patch) | |
tree | cfb4db59317b809240c3cf5b45a30fe4f273a5b9 | |
parent | d0a31232f59d12d24a41adee733ce357951a8b9f (diff) | |
download | u-boot-fsl-qoriq-7a2a091c4ad81a5c298ef958809a5e1ca260a21c.tar.xz |
nios2: 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>
Acked-by: Thomas Chou <thomas@wytron.com.tw>
Reviewed-by: Jagan Teki <jteki@openedev.com>
-rw-r--r-- | arch/nios2/include/asm/bitops.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/nios2/include/asm/bitops.h b/arch/nios2/include/asm/bitops.h index 3e17964..ee46f37 100644 --- a/arch/nios2/include/asm/bitops.h +++ b/arch/nios2/include/asm/bitops.h @@ -13,4 +13,9 @@ #include <asm/bitops/non-atomic.h> #include <asm/bitops/ffs.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> + #endif /* __ASM_NIOS2_BITOPS_H */ |