[parisc-linux-cvs] Redefinition of memcpy_toio() to avoid warnings
Richard Hirst
rhirst@linuxcare.com
Mon, 12 Feb 2001 20:09:20 +0000
Change memcpy_toio() definition to include a cast of arg1, to bring
it more in line with other archs, and to avoid warnings building
sym53c8xx.c
Richard
Index: include/asm-parisc/io.h
===================================================================
RCS file: /home/cvs/parisc/linux/include/asm-parisc/io.h,v
retrieving revision 1.15
diff -u -r1.15 io.h
--- io.h 2001/01/25 00:03:08 1.15
+++ io.h 2001/02/12 20:01:34
@@ -37,12 +37,14 @@
extern void outw(unsigned short b, unsigned long addr);
extern void outl(u32 b, unsigned long addr);
-static inline void memcpy_toio(void *dest, void *src, int count)
+static inline void _memcpy_toio(void *dest, void *src, int count)
{
while(count--)
writeb(*((char *)src)++, (char *)dest++);
}
+#define memcpy_toio(d,s,sz) \
+ _memcpy_toio((void *)d, s, sz)
#endif
/* IO Port space is : BBiiii where BB is HBA number. */