diff options
author | rick | 2017-09-21 10:14:56 +0800 |
---|---|---|
committer | Andes | 2017-09-28 13:16:54 +0800 |
commit | 9c7ffc94dce3d7438a19576a833d96956ca7f3eb (patch) | |
tree | 8e4834de811bd536551dd4ed071ad9413e6a3dfd /arch/nds32/include | |
parent | 6e9b109aa9bcdd094e77da9fb03de8b44da8eb9d (diff) |
nds32: Fix io.h warning message about readb
It is caused from asm/io.h declare different input type.
Signed-off-by: rick <rick@andestech.com>
Diffstat (limited to 'arch/nds32/include')
-rw-r--r-- | arch/nds32/include/asm/io.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/nds32/include/asm/io.h b/arch/nds32/include/asm/io.h index e8ee9615264..25ef9a46c6d 100644 --- a/arch/nds32/include/asm/io.h +++ b/arch/nds32/include/asm/io.h @@ -125,26 +125,26 @@ extern void __raw_readsl(unsigned int addr, void *data, int longlen); #define __iormb() dmb() #define __iowmb() dmb() -static inline void writeb(unsigned char val, unsigned char *addr) +static inline void writeb(u8 val, volatile void __iomem *addr) { __iowmb(); __arch_putb(val, addr); } -static inline void writew(unsigned short val, unsigned short *addr) +static inline void writew(u16 val, volatile void __iomem *addr) { __iowmb(); __arch_putw(val, addr); } -static inline void writel(unsigned int val, unsigned int *addr) +static inline void writel(u32 val, volatile void __iomem *addr) { __iowmb(); __arch_putl(val, addr); } -static inline unsigned char readb(unsigned char *addr) +static inline u8 readb(const volatile void __iomem *addr) { u8 val; @@ -153,7 +153,7 @@ static inline unsigned char readb(unsigned char *addr) return val; } -static inline unsigned short readw(unsigned short *addr) +static inline u16 readw(const volatile void __iomem *addr) { u16 val; @@ -162,7 +162,7 @@ static inline unsigned short readw(unsigned short *addr) return val; } -static inline unsigned int readl(unsigned int *addr) +static inline u32 readl(const volatile void __iomem *addr) { u32 val; |