Skip to content

Commit 7205ef7

Browse files
Al Viroandreas-gaisler
authored andcommitted
sparc64: fix prototypes of reads[bwl]()
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
1 parent 3751aa6 commit 7205ef7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

arch/sparc/include/asm/io_64.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,19 +250,19 @@ void insl(unsigned long, void *, unsigned long);
250250
#define insw insw
251251
#define insl insl
252252

253-
static inline void readsb(void __iomem *port, void *buf, unsigned long count)
253+
static inline void readsb(const volatile void __iomem *port, void *buf, unsigned long count)
254254
{
255255
insb((unsigned long __force)port, buf, count);
256256
}
257257
#define readsb readsb
258258

259-
static inline void readsw(void __iomem *port, void *buf, unsigned long count)
259+
static inline void readsw(const volatile void __iomem *port, void *buf, unsigned long count)
260260
{
261261
insw((unsigned long __force)port, buf, count);
262262
}
263263
#define readsw readsw
264264

265-
static inline void readsl(void __iomem *port, void *buf, unsigned long count)
265+
static inline void readsl(const volatile void __iomem *port, void *buf, unsigned long count)
266266
{
267267
insl((unsigned long __force)port, buf, count);
268268
}

0 commit comments

Comments
 (0)