Skip to content

Commit 963fec4

Browse files
Anand GadiyarRussell King
authored andcommitted
ARM: 6484/1: fix compile warning in mm/init.c
Commit 7c63984 (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.o arch/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 <gadiyar@ti.com> Acked-by: Uwe Kleine-K <u.kleine-koenig@pengutronix.dee> Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent ffc43ef commit 963fec4

15 files changed

Lines changed: 15 additions & 15 deletions

File tree

‎arch/arm/mach-aaec2000/include/mach/vmalloc.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
#ifndef __ASM_ARCH_VMALLOC_H
1212
#define __ASM_ARCH_VMALLOC_H
1313

14-
#define VMALLOC_END 0xd0000000
14+
#define VMALLOC_END 0xd0000000UL
1515

1616
#endif /* __ASM_ARCH_VMALLOC_H */

‎arch/arm/mach-bcmring/include/mach/vmalloc.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
* 0xe0000000 to 0xefffffff. This gives us 256 MB of vm space and handles
2323
* larger physical memory designs better.
2424
*/
25-
#define VMALLOC_END 0xf0000000
25+
#define VMALLOC_END 0xf0000000UL

‎arch/arm/mach-clps711x/include/mach/vmalloc.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
* along with this program; if not, write to the Free Software
1818
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1919
*/
20-
#define VMALLOC_END 0xd0000000
20+
#define VMALLOC_END 0xd0000000UL

‎arch/arm/mach-ebsa110/include/mach/vmalloc.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
* it under the terms of the GNU General Public License version 2 as
88
* published by the Free Software Foundation.
99
*/
10-
#define VMALLOC_END 0xdf000000
10+
#define VMALLOC_END 0xdf000000UL

‎arch/arm/mach-footbridge/include/mach/vmalloc.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
*/
88

99

10-
#define VMALLOC_END 0xf0000000
10+
#define VMALLOC_END 0xf0000000UL

‎arch/arm/mach-h720x/include/mach/vmalloc.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
#ifndef __ARCH_ARM_VMALLOC_H
66
#define __ARCH_ARM_VMALLOC_H
77

8-
#define VMALLOC_END 0xd0000000
8+
#define VMALLOC_END 0xd0000000UL
99

1010
#endif

‎arch/arm/mach-integrator/include/mach/vmalloc.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
* along with this program; if not, write to the Free Software
1818
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1919
*/
20-
#define VMALLOC_END 0xd0000000
20+
#define VMALLOC_END 0xd0000000UL

‎arch/arm/mach-msm/include/mach/vmalloc.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#ifndef __ASM_ARCH_MSM_VMALLOC_H
1717
#define __ASM_ARCH_MSM_VMALLOC_H
1818

19-
#define VMALLOC_END 0xd0000000
19+
#define VMALLOC_END 0xd0000000UL
2020

2121
#endif
2222

‎arch/arm/mach-netx/include/mach/vmalloc.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
* along with this program; if not, write to the Free Software
1717
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1818
*/
19-
#define VMALLOC_END 0xd0000000
19+
#define VMALLOC_END 0xd0000000UL

‎arch/arm/mach-omap1/include/mach/vmalloc.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
* along with this program; if not, write to the Free Software
1818
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1919
*/
20-
#define VMALLOC_END 0xd8000000
20+
#define VMALLOC_END 0xd8000000UL

0 commit comments

Comments
 (0)