[PATCH] include/bitfield.h: include byteorder.h

Nicolas Saenz Julienne nsaenzjulienne at suse.de
Thu Jul 9 19:41:26 CEST 2020


This is needed in order to use the cpu_to_*()/*_to_cpu() family of
functions.

Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne at suse.de>
---

IMO the ideal thing would be to squash this into the original patch.

 include/linux/bitfield.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/linux/bitfield.h b/include/linux/bitfield.h
index 7ad8b088ed..7ad02f8cbb 100644
--- a/include/linux/bitfield.h
+++ b/include/linux/bitfield.h
@@ -16,6 +16,7 @@
 #define _LINUX_BITFIELD_H
 
 #include <linux/bug.h>
+#include <asm/byteorder.h>
 
 /*
  * Bitfield access macros
-- 
2.27.0



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200709/19ad489b/attachment.sig>


More information about the U-Boot mailing list