mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 07:01:32 +00:00
parisc: Force to various endian types for sparse
Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
parent
3a67ca192c
commit
184b922cb6
@ -183,15 +183,15 @@ static inline unsigned char readb(const volatile void __iomem *addr)
|
||||
}
|
||||
static inline unsigned short readw(const volatile void __iomem *addr)
|
||||
{
|
||||
return le16_to_cpu(__raw_readw(addr));
|
||||
return le16_to_cpu((__le16 __force) __raw_readw(addr));
|
||||
}
|
||||
static inline unsigned int readl(const volatile void __iomem *addr)
|
||||
{
|
||||
return le32_to_cpu(__raw_readl(addr));
|
||||
return le32_to_cpu((__le32 __force) __raw_readl(addr));
|
||||
}
|
||||
static inline unsigned long long readq(const volatile void __iomem *addr)
|
||||
{
|
||||
return le64_to_cpu(__raw_readq(addr));
|
||||
return le64_to_cpu((__le64 __force) __raw_readq(addr));
|
||||
}
|
||||
|
||||
static inline void writeb(unsigned char b, volatile void __iomem *addr)
|
||||
@ -200,15 +200,15 @@ static inline void writeb(unsigned char b, volatile void __iomem *addr)
|
||||
}
|
||||
static inline void writew(unsigned short w, volatile void __iomem *addr)
|
||||
{
|
||||
__raw_writew(cpu_to_le16(w), addr);
|
||||
__raw_writew((__u16 __force) cpu_to_le16(w), addr);
|
||||
}
|
||||
static inline void writel(unsigned int l, volatile void __iomem *addr)
|
||||
{
|
||||
__raw_writel(cpu_to_le32(l), addr);
|
||||
__raw_writel((__u32 __force) cpu_to_le32(l), addr);
|
||||
}
|
||||
static inline void writeq(unsigned long long q, volatile void __iomem *addr)
|
||||
{
|
||||
__raw_writeq(cpu_to_le64(q), addr);
|
||||
__raw_writeq((__u64 __force) cpu_to_le64(q), addr);
|
||||
}
|
||||
|
||||
#define readb readb
|
||||
|
Loading…
Reference in New Issue
Block a user