From: Russell King Date: Fri, 20 Jan 2006 20:52:50 +0000 (+0000) Subject: [ARM] Fix ioremap.c vfree type warning X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=20a2c88f5039b8b17f0aa3fbc2ac3e9257961123;p=openwrt%2Fstaging%2Fblogic.git [ARM] Fix ioremap.c vfree type warning arch/arm/mm/ioremap.c:145: warning: passing argument 1 of 'vfree' makes pointer from integer without a cast resulted from commit id 9d4ae7276ae26c5bfba6207cf05340af1931d8d4 Signed-off-by: Russell King --- diff --git a/arch/arm/mm/ioremap.c b/arch/arm/mm/ioremap.c index de3ce1eec2ec..da9b35974118 100644 --- a/arch/arm/mm/ioremap.c +++ b/arch/arm/mm/ioremap.c @@ -142,7 +142,7 @@ __ioremap_pfn(unsigned long pfn, unsigned long offset, size_t size, return NULL; addr = (unsigned long)area->addr; if (remap_area_pages(addr, pfn, size, flags)) { - vfree(addr); + vfree((void *)addr); return NULL; } return (void __iomem *) (offset + (char *)addr);