diff mbox series

include/bitfield.h: include byteorder.h

Message ID e71ca4ddbf43f0a297732ee8cea6ab1ee5c1bee0.camel@suse.de
State New
Headers show
Series include/bitfield.h: include byteorder.h | expand

Commit Message

Nicolas Saenz Julienne July 9, 2020, 5:41 p.m. UTC
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(+)

Comments

Matthias Brugger July 10, 2020, 8:24 a.m. UTC | #1
On 09/07/2020 19:41, Nicolas Saenz Julienne wrote:
> 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.

I'll test and squash, thanks!

> 
>   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
>
diff mbox series

Patch

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