Skip to content

Commit

Permalink
[ARM] arch-ixp4xx/io.h: make const args const to remove compiler warning
Browse files Browse the repository at this point in the history
Compiler warning fix; the inline callers of these APIs were changed
to have const vaddr parameters.

Signed-off-by: John Bowler <jbowler@acm.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
John Bowler authored and Russell King committed Oct 30, 2005
1 parent 77bb86a commit 46595ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/asm-arm/arch-ixp4xx/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ __ixp4xx_writeb(u8 value, u32 addr)
}

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);
Expand All @@ -136,7 +136,7 @@ __ixp4xx_writew(u16 value, u32 addr)
}

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);
Expand All @@ -154,7 +154,7 @@ __ixp4xx_writel(u32 value, u32 addr)
}

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);
Expand Down

0 comments on commit 46595ff

Please sign in to comment.