diff mbox series

[U-Boot,v2,1/5] bitfield: Include linux/bitops.h for ffs()

Message ID 20171125050832.11803-2-wens@csie.org
State Changes Requested
Delegated to: Jagannadha Sutradharudu Teki
Headers show
Series sunxi: Enable EMAC on various boards | expand

Commit Message

Chen-Yu Tsai Nov. 25, 2017, 5:08 a.m. UTC
bitfield_shift() uses the ffs() function, which is provided by bitops.h.

Explicitly include this header.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
 include/bitfield.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Joe Hershberger Dec. 5, 2017, 8:51 p.m. UTC | #1
On Fri, Nov 24, 2017 at 11:08 PM, Chen-Yu Tsai <wens@csie.org> wrote:
> bitfield_shift() uses the ffs() function, which is provided by bitops.h.
>
> Explicitly include this header.
>
> Signed-off-by: Chen-Yu Tsai <wens@csie.org>

Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
diff mbox series

Patch

diff --git a/include/bitfield.h b/include/bitfield.h
index a59f3c279aad..adfae49de580 100644
--- a/include/bitfield.h
+++ b/include/bitfield.h
@@ -37,6 +37,7 @@ 
  * tables which describe all bitfields in all registers.
  */
 
+#include <linux/bitops.h>
 #include <linux/types.h>
 
 /* Produces a mask of set bits covering a range of a uint value */