ARM: fix compile warning in mm/init.c
Subsystems (8)
PATCH v3 1/1 ARM: fix compile warning in mm/init.c
Commit 7c63984b86 (ARM: do not define VMALLOC_END relative to PAGE_OFFSET) changed VMALLOC_END to be an explicit value. Before this, it was relative to PAGE_OFFSET and therefore converted to unsigned long as PAGE_OFFSET is an unsigned long. This introduced the following build warning. Fix this by changing the explicit defines of VMALLOC_END to be unsigned long.
CC arch/arm/mm/init.oarch/arm/mm/init.c: In function 'mem_init':arch/arm/mm/init.c:606: warning: format '%08lx' expects type 'long unsigned int', but argument 12 has type 'unsigned int'
---
V3: Updated patch description per Uwe's comments
arch/arm/mach-aaec2000/include/mach/vmalloc.h | 2 +- arch/arm/mach-bcmring/include/mach/vmalloc.h | 2 +- arch/arm/mach-clps711x/include/mach/vmalloc.h | 2 +- arch/arm/mach-ebsa110/include/mach/vmalloc.h | 2 +- arch/arm/mach-footbridge/include/mach/vmalloc.h | 2 +- arch/arm/mach-h720x/include/mach/vmalloc.h | 2 +- arch/arm/mach-integrator/include/mach/vmalloc.h | 2 +- arch/arm/mach-msm/include/mach/vmalloc.h | 2 +- arch/arm/mach-netx/include/mach/vmalloc.h | 2 +- arch/arm/mach-omap1/include/mach/vmalloc.h | 2 +- arch/arm/mach-omap2/include/mach/vmalloc.h | 2 +- arch/arm/mach-pnx4008/include/mach/vmalloc.h | 2 +- arch/arm/mach-rpc/include/mach/vmalloc.h | 2 +- arch/arm/mach-shark/include/mach/vmalloc.h | 2 +- arch/arm/mach-versatile/include/mach/vmalloc.h | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-)
arch/arm/mach-aaec2000/include/mach/vmalloc.h +1 -1
@@ -11,6 +11,6 @@#ifndef __ASM_ARCH_VMALLOC_H#define __ASM_ARCH_VMALLOC_H -#define VMALLOC_END 0xd0000000 +#define VMALLOC_END 0xd0000000UL#endif /* __ASM_ARCH_VMALLOC_H */
arch/arm/mach-bcmring/include/mach/vmalloc.h +1 -1
@@ -22,4 +22,4 @@* 0xe0000000 to 0xefffffff. This gives us 256 MB of vm space and handles * larger physical memory designs better. */ -#define VMALLOC_END 0xf0000000 +#define VMALLOC_END 0xf0000000UL
arch/arm/mach-clps711x/include/mach/vmalloc.h +1 -1
@@ -17,4 +17,4 @@* along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#define VMALLOC_END 0xd0000000 +#define VMALLOC_END 0xd0000000UL
arch/arm/mach-ebsa110/include/mach/vmalloc.h +1 -1
@@ -7,4 +7,4 @@* it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ -#define VMALLOC_END 0xdf000000 +#define VMALLOC_END 0xdf000000UL
arch/arm/mach-footbridge/include/mach/vmalloc.h +1 -1
@@ -7,4 +7,4 @@*/ -#define VMALLOC_END 0xf0000000 +#define VMALLOC_END 0xf0000000UL
arch/arm/mach-h720x/include/mach/vmalloc.h +1 -1
@@ -5,6 +5,6 @@#ifndef __ARCH_ARM_VMALLOC_H#define __ARCH_ARM_VMALLOC_H -#define VMALLOC_END 0xd0000000 +#define VMALLOC_END 0xd0000000UL#endif
arch/arm/mach-integrator/include/mach/vmalloc.h +1 -1
@@ -17,4 +17,4 @@* along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#define VMALLOC_END 0xd0000000 +#define VMALLOC_END 0xd0000000UL
arch/arm/mach-msm/include/mach/vmalloc.h +1 -1
@@ -16,7 +16,7 @@#ifndef __ASM_ARCH_MSM_VMALLOC_H#define __ASM_ARCH_MSM_VMALLOC_H -#define VMALLOC_END 0xd0000000 +#define VMALLOC_END 0xd0000000UL#endif
arch/arm/mach-netx/include/mach/vmalloc.h +1 -1
@@ -16,4 +16,4 @@* along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#define VMALLOC_END 0xd0000000 +#define VMALLOC_END 0xd0000000UL
arch/arm/mach-omap1/include/mach/vmalloc.h +1 -1
@@ -17,4 +17,4 @@* along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#define VMALLOC_END 0xd8000000 +#define VMALLOC_END 0xd8000000UL
arch/arm/mach-omap2/include/mach/vmalloc.h +1 -1
@@ -17,4 +17,4 @@* along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#define VMALLOC_END 0xf8000000 +#define VMALLOC_END 0xf8000000UL
arch/arm/mach-pnx4008/include/mach/vmalloc.h +1 -1
@@ -17,4 +17,4 @@* The vmalloc() routines leaves a hole of 4kB between each vmalloced * area for the same reason. ;) */ -#define VMALLOC_END 0xd0000000 +#define VMALLOC_END 0xd0000000UL
arch/arm/mach-rpc/include/mach/vmalloc.h +1 -1
@@ -7,4 +7,4 @@* it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ -#define VMALLOC_END 0xdc000000 +#define VMALLOC_END 0xdc000000UL
arch/arm/mach-shark/include/mach/vmalloc.h +1 -1
@@ -1,4 +1,4 @@/* * arch/arm/mach-shark/include/mach/vmalloc.h */ -#define VMALLOC_END 0xd0000000 +#define VMALLOC_END 0xd0000000UL
arch/arm/mach-versatile/include/mach/vmalloc.h +1 -1
@@ -18,4 +18,4 @@* along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#define VMALLOC_END 0xd8000000 +#define VMALLOC_END 0xd8000000UL
PATCH v3 1/1 ARM: fix compile warning in mm/init.c
Quoted 7 lines · Anand Gadiyar
Commit
7c63984b86(ARM: do not defineVMALLOC_ENDrelative toPAGE_OFFSET) changedVMALLOC_ENDto be an explicit value. Before this, it was relative toPAGE_OFFSETand therefore converted to unsigned long asPAGE_OFFSETis an unsigned long. This introduced the following build warning. Fix this by changing the explicit defines ofVMALLOC_ENDto be unsigned long.
Quoted 6 lines
CC
arch/arm/mm/init.oarch/arm/mm/init.c: In function 'mem_init':arch/arm/mm/init.c:606: warning: format '%08lx' expects type 'long unsigned int', but argument 12 has type 'unsigned int'Signed-off-by Anand Gadiyar <[email protected]>Cc Nicolas Pitre <[email protected]>
Quoted 183 lines
---
V3: Updated patch description per Uwe's commentsarch/arm/mach-aaec2000/include/mach/vmalloc.h | 2 +- arch/arm/mach-bcmring/include/mach/vmalloc.h | 2 +- arch/arm/mach-clps711x/include/mach/vmalloc.h | 2 +- arch/arm/mach-ebsa110/include/mach/vmalloc.h | 2 +- arch/arm/mach-footbridge/include/mach/vmalloc.h | 2 +- arch/arm/mach-h720x/include/mach/vmalloc.h | 2 +- arch/arm/mach-integrator/include/mach/vmalloc.h | 2 +- arch/arm/mach-msm/include/mach/vmalloc.h | 2 +- arch/arm/mach-netx/include/mach/vmalloc.h | 2 +- arch/arm/mach-omap1/include/mach/vmalloc.h | 2 +- arch/arm/mach-omap2/include/mach/vmalloc.h | 2 +- arch/arm/mach-pnx4008/include/mach/vmalloc.h | 2 +- arch/arm/mach-rpc/include/mach/vmalloc.h | 2 +- arch/arm/mach-shark/include/mach/vmalloc.h | 2 +- arch/arm/mach-versatile/include/mach/vmalloc.h | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-)Index:
ehci/arch/arm/mach-aaec2000/include/mach/vmalloc.h
===================================================================arch/arm/mach-aaec2000/include/mach/vmalloc.h +1
-1@@ -11,6 +11,6 @@#ifndef __ASM_ARCH_VMALLOC_H#define __ASM_ARCH_VMALLOC_H -#define VMALLOC_END 0xd0000000 +#define VMALLOC_END 0xd0000000UL#endif /* __ASM_ARCH_VMALLOC_H */ Index:
ehci/arch/arm/mach-bcmring/include/mach/vmalloc.h
===================================================================arch/arm/mach-bcmring/include/mach/vmalloc.h +1
-1@@ -22,4 +22,4 @@* 0xe0000000 to 0xefffffff. This gives us 256 MB of vm space and handles * larger physical memory designs better. */ -#define VMALLOC_END 0xf0000000 +#define VMALLOC_END 0xf0000000ULIndex:
ehci/arch/arm/mach-clps711x/include/mach/vmalloc.h
===================================================================arch/arm/mach-clps711x/include/mach/vmalloc.h +1
-1@@ -17,4 +17,4 @@* along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#define VMALLOC_END 0xd0000000 +#define VMALLOC_END 0xd0000000ULIndex:
ehci/arch/arm/mach-ebsa110/include/mach/vmalloc.h
===================================================================arch/arm/mach-ebsa110/include/mach/vmalloc.h +1
-1@@ -7,4 +7,4 @@* it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ -#define VMALLOC_END 0xdf000000 +#define VMALLOC_END 0xdf000000ULIndex:
ehci/arch/arm/mach-footbridge/include/mach/vmalloc.h
===================================================================arch/arm/mach-footbridge/include/mach/vmalloc.h +1
-1@@ -7,4 +7,4 @@*/ -#define VMALLOC_END 0xf0000000 +#define VMALLOC_END 0xf0000000ULIndex:
ehci/arch/arm/mach-h720x/include/mach/vmalloc.h
===================================================================arch/arm/mach-h720x/include/mach/vmalloc.h +1
-1@@ -5,6 +5,6 @@#ifndef __ARCH_ARM_VMALLOC_H#define __ARCH_ARM_VMALLOC_H -#define VMALLOC_END 0xd0000000 +#define VMALLOC_END 0xd0000000UL#endif Index:
ehci/arch/arm/mach-integrator/include/mach/vmalloc.h
===================================================================arch/arm/mach-integrator/include/mach/vmalloc.h +1
-1@@ -17,4 +17,4 @@* along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#define VMALLOC_END 0xd0000000 +#define VMALLOC_END 0xd0000000ULIndex:
ehci/arch/arm/mach-msm/include/mach/vmalloc.h
===================================================================arch/arm/mach-msm/include/mach/vmalloc.h +1
-1@@ -16,7 +16,7 @@#ifndef __ASM_ARCH_MSM_VMALLOC_H#define __ASM_ARCH_MSM_VMALLOC_H -#define VMALLOC_END 0xd0000000 +#define VMALLOC_END 0xd0000000UL#endif Index:
ehci/arch/arm/mach-netx/include/mach/vmalloc.h
===================================================================arch/arm/mach-netx/include/mach/vmalloc.h +1
-1@@ -16,4 +16,4 @@* along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#define VMALLOC_END 0xd0000000 +#define VMALLOC_END 0xd0000000ULIndex:
ehci/arch/arm/mach-omap1/include/mach/vmalloc.h
===================================================================arch/arm/mach-omap1/include/mach/vmalloc.h +1
-1@@ -17,4 +17,4 @@* along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#define VMALLOC_END 0xd8000000 +#define VMALLOC_END 0xd8000000ULIndex:
ehci/arch/arm/mach-omap2/include/mach/vmalloc.h
===================================================================arch/arm/mach-omap2/include/mach/vmalloc.h +1
-1@@ -17,4 +17,4 @@* along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#define VMALLOC_END 0xf8000000 +#define VMALLOC_END 0xf8000000ULIndex:
ehci/arch/arm/mach-pnx4008/include/mach/vmalloc.h
===================================================================arch/arm/mach-pnx4008/include/mach/vmalloc.h +1
-1@@ -17,4 +17,4 @@* The vmalloc() routines leaves a hole of 4kB between each vmalloced * area for the same reason. ;) */ -#define VMALLOC_END 0xd0000000 +#define VMALLOC_END 0xd0000000ULIndex:
ehci/arch/arm/mach-rpc/include/mach/vmalloc.h
===================================================================arch/arm/mach-rpc/include/mach/vmalloc.h +1
-1@@ -7,4 +7,4 @@* it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ -#define VMALLOC_END 0xdc000000 +#define VMALLOC_END 0xdc000000ULIndex:
ehci/arch/arm/mach-shark/include/mach/vmalloc.h
===================================================================arch/arm/mach-shark/include/mach/vmalloc.h +1
-1@@ -1,4 +1,4 @@/* * arch/arm/mach-shark/include/mach/vmalloc.h */ -#define VMALLOC_END 0xd0000000 +#define VMALLOC_END 0xd0000000ULIndex:
ehci/arch/arm/mach-versatile/include/mach/vmalloc.h
===================================================================arch/arm/mach-versatile/include/mach/vmalloc.h +1
-1@@ -18,4 +18,4 @@* along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#define VMALLOC_END 0xd8000000 +#define VMALLOC_END 0xd8000000UL_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |