Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Al Viro and committed by
Andreas Larsson
7205ef77 3751aa6e

+3 -3
+3 -3
arch/sparc/include/asm/io_64.h
··· 250 250 #define insw insw 251 251 #define insl insl 252 252 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) 254 254 { 255 255 insb((unsigned long __force)port, buf, count); 256 256 } 257 257 #define readsb readsb 258 258 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) 260 260 { 261 261 insw((unsigned long __force)port, buf, count); 262 262 } 263 263 #define readsw readsw 264 264 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) 266 266 { 267 267 insl((unsigned long __force)port, buf, count); 268 268 }