Patchwork [U-Boot,09/12] x86: Include types.h explicitly in the i386 version of io.h

login
register
mail settings
Submitter Simon Glass
Date Oct. 20, 2012, 10:33 p.m.
Message ID <1350772396-28946-10-git-send-email-sjg@chromium.org>
Download mbox | patch
Permalink /patch/192965/
State Accepted, archived
Delegated to: Simon Glass
Headers show

Comments

Simon Glass - Oct. 20, 2012, 10:33 p.m.
From: Gabe Black <gabeblack@chromium.org>

The i386 version of io.h depends on the phys_addr_t type which is defined in
types.h. It wasn't including that explicitly, and was working presumably
because the other files including it had already included types.h themselves
directly or indirectly. This change fixes that.

Signed-off-by: Gabe Black <gabeblack@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
---
 arch/x86/include/asm/io.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/arch/x86/include/asm/io.h b/arch/x86/include/asm/io.h
index b12bdd8..2214958 100644
--- a/arch/x86/include/asm/io.h
+++ b/arch/x86/include/asm/io.h
@@ -36,6 +36,8 @@ 
 
 #define IO_SPACE_LIMIT 0xffff
 
+#include <asm/types.h>
+
 
 #ifdef __KERNEL__