public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/4] mips: Use the generic bitops headers
@ 2015-11-04 17:13 Fabio Estevam
  2015-11-04 17:13 ` [U-Boot] [PATCH 2/4] arc: " Fabio Estevam
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Fabio Estevam @ 2015-11-04 17:13 UTC (permalink / raw)
  To: u-boot

From: Fabio Estevam <fabio.estevam@freescale.com>

The generic bitops headers are required when calling logarithimic
functions, such as ilog2().

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
Applies against u-boot-spi next

 arch/mips/include/asm/bitops.h | 5 +++++
 1 file changed, 5 insertions(+)

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.
  */
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-11-05 13:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-04 17:13 [U-Boot] [PATCH 1/4] mips: Use the generic bitops headers Fabio Estevam
2015-11-04 17:13 ` [U-Boot] [PATCH 2/4] arc: " Fabio Estevam
2015-11-04 17:13 ` [U-Boot] [PATCH 3/4] avr32: " Fabio Estevam
2015-11-04 17:13 ` [U-Boot] [PATCH 4/4] spi: sf_ops: Use size_t for len Fabio Estevam
2015-11-04 17:21 ` [U-Boot] [PATCH 1/4] mips: Use the generic bitops headers Dinh Nguyen
2015-11-05 13:21   ` Fabio Estevam
2015-11-04 17:58 ` Daniel Schwierzeck
2015-11-05 13:21   ` Fabio Estevam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox