mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
sparc64: fix prototypes of reads[bwl]()
[ Upstream commit 7205ef77dfe167df1b83aea28cf00fc02d662990 ] Conventions for readsl() are the same as for readl() - any __iomem pointer is acceptable, both const and volatile ones being OK. Same for readsb() and readsw(). Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Reviewed-by: Andreas Larsson <andreas@gaisler.com> Signed-off-by: Andreas Larsson <andreas@gaisler.com> # Making sparc64 subject prefix Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
d170582b4b
commit
5561974e62
@@ -250,19 +250,19 @@ void insl(unsigned long, void *, unsigned long);
|
||||
#define insw insw
|
||||
#define insl insl
|
||||
|
||||
static inline void readsb(void __iomem *port, void *buf, unsigned long count)
|
||||
static inline void readsb(const volatile void __iomem *port, void *buf, unsigned long count)
|
||||
{
|
||||
insb((unsigned long __force)port, buf, count);
|
||||
}
|
||||
#define readsb readsb
|
||||
|
||||
static inline void readsw(void __iomem *port, void *buf, unsigned long count)
|
||||
static inline void readsw(const volatile void __iomem *port, void *buf, unsigned long count)
|
||||
{
|
||||
insw((unsigned long __force)port, buf, count);
|
||||
}
|
||||
#define readsw readsw
|
||||
|
||||
static inline void readsl(void __iomem *port, void *buf, unsigned long count)
|
||||
static inline void readsl(const volatile void __iomem *port, void *buf, unsigned long count)
|
||||
{
|
||||
insl((unsigned long __force)port, buf, count);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user