diff mbox series

[03/11] sandbox: Add <linux/types.h> to asm/global_data.h and asm/io.h

Message ID 20231122131154.2444690-3-trini@konsulko.com
State Superseded
Delegated to: Tom Rini
Headers show
Series [01/11] global: Remove duplicate common.h inclusions | expand

Commit Message

Tom Rini Nov. 22, 2023, 1:11 p.m. UTC
We need <linux/types.h> in these files as we reference Linux types.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Simon Glass <sjg@chromium.org>
---
 arch/sandbox/include/asm/global_data.h | 2 ++
 arch/sandbox/include/asm/io.h          | 2 ++
 2 files changed, 4 insertions(+)

Comments

Simon Glass Nov. 30, 2023, 2:45 a.m. UTC | #1
On Wed, 22 Nov 2023 at 06:12, Tom Rini <trini@konsulko.com> wrote:
>
> We need <linux/types.h> in these files as we reference Linux types.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> Cc: Simon Glass <sjg@chromium.org>
> ---
>  arch/sandbox/include/asm/global_data.h | 2 ++
>  arch/sandbox/include/asm/io.h          | 2 ++
>  2 files changed, 4 insertions(+)

Reviewed-by: Simon Glass <sjg@chromium.org>
diff mbox series

Patch

diff --git a/arch/sandbox/include/asm/global_data.h b/arch/sandbox/include/asm/global_data.h
index c6977735029d..001b2b53c1c8 100644
--- a/arch/sandbox/include/asm/global_data.h
+++ b/arch/sandbox/include/asm/global_data.h
@@ -9,6 +9,8 @@ 
 #ifndef	__ASM_GBL_DATA_H
 #define __ASM_GBL_DATA_H
 
+#include <linux/types.h>
+
 /* Architecture-specific global data */
 struct arch_global_data {
 	uint8_t		*ram_buf;	/* emulated RAM buffer */
diff --git a/arch/sandbox/include/asm/io.h b/arch/sandbox/include/asm/io.h
index 31ab7289b4bd..1ccb25a0fe1e 100644
--- a/arch/sandbox/include/asm/io.h
+++ b/arch/sandbox/include/asm/io.h
@@ -6,6 +6,8 @@ 
 #ifndef __SANDBOX_ASM_IO_H
 #define __SANDBOX_ASM_IO_H
 
+#include <linux/types.h>
+
 enum sandboxio_size_t {
 	SB_SIZE_8,
 	SB_SIZE_16,