浏览代码

nds32: Fix the unknown type u8 issue.

It broke the 'allmodconfig' build.
We need to include <linux/types.h> to make sure the type is defined
before using it.

Signed-off-by: Greentime Hu <greentime@andestech.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Greentime Hu 7 年之前
父节点
当前提交
bb912671e3
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      arch/nds32/include/asm/io.h

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

@@ -4,6 +4,8 @@
 #ifndef __ASM_NDS32_IO_H
 #ifndef __ASM_NDS32_IO_H
 #define __ASM_NDS32_IO_H
 #define __ASM_NDS32_IO_H
 
 
+#include <linux/types.h>
+
 extern void iounmap(volatile void __iomem *addr);
 extern void iounmap(volatile void __iomem *addr);
 #define __raw_writeb __raw_writeb
 #define __raw_writeb __raw_writeb
 static inline void __raw_writeb(u8 val, volatile void __iomem *addr)
 static inline void __raw_writeb(u8 val, volatile void __iomem *addr)