diff options
author | Greentime Hu <greentime@andestech.com> | 2018-04-19 03:59:38 -0400 |
---|---|---|
committer | Greentime Hu <greentime@andestech.com> | 2018-05-23 01:26:21 -0400 |
commit | bb912671e36552e11352a6b749dcf68b0df6ad01 (patch) | |
tree | 9d3e0dd85b1d77e386107ac270ec7e0fd72ba500 | |
parent | e3f4624388731eb475ef7494b43440b3ad9269e1 (diff) |
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>
-rw-r--r-- | arch/nds32/include/asm/io.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/nds32/include/asm/io.h b/arch/nds32/include/asm/io.h index 966e71b3c960..71cd226d6863 100644 --- a/arch/nds32/include/asm/io.h +++ b/arch/nds32/include/asm/io.h | |||
@@ -4,6 +4,8 @@ | |||
4 | #ifndef __ASM_NDS32_IO_H | 4 | #ifndef __ASM_NDS32_IO_H |
5 | #define __ASM_NDS32_IO_H | 5 | #define __ASM_NDS32_IO_H |
6 | 6 | ||
7 | #include <linux/types.h> | ||
8 | |||
7 | extern void iounmap(volatile void __iomem *addr); | 9 | extern void iounmap(volatile void __iomem *addr); |
8 | #define __raw_writeb __raw_writeb | 10 | #define __raw_writeb __raw_writeb |
9 | static inline void __raw_writeb(u8 val, volatile void __iomem *addr) | 11 | static inline void __raw_writeb(u8 val, volatile void __iomem *addr) |