瀏覽代碼

x86: Include types.h explicitly in the i386 version of io.h

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>
Gabe Black 12 年之前
父節點
當前提交
687c108b10
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      arch/x86/include/asm/io.h

+ 2 - 0
arch/x86/include/asm/io.h

@@ -36,6 +36,8 @@
 
 #define IO_SPACE_LIMIT 0xffff
 
+#include <asm/types.h>
+
 
 #ifdef __KERNEL__