mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] 2.6.14-rc5 arch-ixp4xx/io.h: make const args const to remove compiler warning
@ 2005-10-25 17:50 John Bowler
  0 siblings, 0 replies; only message in thread
From: John Bowler @ 2005-10-25 17:50 UTC (permalink / raw)
  To: 'Deepak Saxena'; +Cc: linux-arm-kernel, trivial, linux-kernel

Trivial compiler warning fix; the inline callers of these APIs were changed
to have const vaddr parameters.

Signed-off-by: John Bowler <jbowler@acm.org>

--- linux-2.6.13/include/asm-arm/arch-ixp4xx/io.h.orig	2005-09-24
17:06:19.968099976 -0700
+++ linux-2.6.13/include/asm-arm/arch-ixp4xx/io.h	2005-09-24
17:06:52.542149731 -0700
@@ -113,7 +113,7 @@
 }

 static inline void
-__ixp4xx_writesb(u32 bus_addr, u8 *vaddr, int count)
+__ixp4xx_writesb(u32 bus_addr, const u8 *vaddr, int count)
 {
 	while (count--)
 		writeb(*vaddr++, bus_addr);
@@ -136,7 +136,7 @@
 }

 static inline void
-__ixp4xx_writesw(u32 bus_addr, u16 *vaddr, int count)
+__ixp4xx_writesw(u32 bus_addr, const u16 *vaddr, int count)
 {
 	while (count--)
 		writew(*vaddr++, bus_addr);
@@ -154,7 +154,7 @@
 }

 static inline void
-__ixp4xx_writesl(u32 bus_addr, u32 *vaddr, int count)
+__ixp4xx_writesl(u32 bus_addr, const u32 *vaddr, int count)
 {
 	while (count--)
 		writel(*vaddr++, bus_addr);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-10-25 17:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-25 17:50 [PATCH] 2.6.14-rc5 arch-ixp4xx/io.h: make const args const to remove compiler warning John Bowler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®