提交 963fec4e 编写于 作者: A Anand Gadiyar 提交者: Russell King

ARM: 6484/1: fix compile warning in mm/init.c

Commit 7c63984b (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: NAnand Gadiyar <gadiyar@ti.com>
Acked-by: NUwe Kleine-K <u.kleine-koenig@pengutronix.dee>
Acked-by: NNicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 ffc43ef3
...@@ -11,6 +11,6 @@ ...@@ -11,6 +11,6 @@
#ifndef __ASM_ARCH_VMALLOC_H #ifndef __ASM_ARCH_VMALLOC_H
#define __ASM_ARCH_VMALLOC_H #define __ASM_ARCH_VMALLOC_H
#define VMALLOC_END 0xd0000000 #define VMALLOC_END 0xd0000000UL
#endif /* __ASM_ARCH_VMALLOC_H */ #endif /* __ASM_ARCH_VMALLOC_H */
...@@ -22,4 +22,4 @@ ...@@ -22,4 +22,4 @@
* 0xe0000000 to 0xefffffff. This gives us 256 MB of vm space and handles * 0xe0000000 to 0xefffffff. This gives us 256 MB of vm space and handles
* larger physical memory designs better. * larger physical memory designs better.
*/ */
#define VMALLOC_END 0xf0000000 #define VMALLOC_END 0xf0000000UL
...@@ -17,4 +17,4 @@ ...@@ -17,4 +17,4 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#define VMALLOC_END 0xd0000000 #define VMALLOC_END 0xd0000000UL
...@@ -7,4 +7,4 @@ ...@@ -7,4 +7,4 @@
* it under the terms of the GNU General Public License version 2 as * it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation. * published by the Free Software Foundation.
*/ */
#define VMALLOC_END 0xdf000000 #define VMALLOC_END 0xdf000000UL
...@@ -7,4 +7,4 @@ ...@@ -7,4 +7,4 @@
*/ */
#define VMALLOC_END 0xf0000000 #define VMALLOC_END 0xf0000000UL
...@@ -5,6 +5,6 @@ ...@@ -5,6 +5,6 @@
#ifndef __ARCH_ARM_VMALLOC_H #ifndef __ARCH_ARM_VMALLOC_H
#define __ARCH_ARM_VMALLOC_H #define __ARCH_ARM_VMALLOC_H
#define VMALLOC_END 0xd0000000 #define VMALLOC_END 0xd0000000UL
#endif #endif
...@@ -17,4 +17,4 @@ ...@@ -17,4 +17,4 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#define VMALLOC_END 0xd0000000 #define VMALLOC_END 0xd0000000UL
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#ifndef __ASM_ARCH_MSM_VMALLOC_H #ifndef __ASM_ARCH_MSM_VMALLOC_H
#define __ASM_ARCH_MSM_VMALLOC_H #define __ASM_ARCH_MSM_VMALLOC_H
#define VMALLOC_END 0xd0000000 #define VMALLOC_END 0xd0000000UL
#endif #endif
...@@ -16,4 +16,4 @@ ...@@ -16,4 +16,4 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#define VMALLOC_END 0xd0000000 #define VMALLOC_END 0xd0000000UL
...@@ -17,4 +17,4 @@ ...@@ -17,4 +17,4 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#define VMALLOC_END 0xd8000000 #define VMALLOC_END 0xd8000000UL
...@@ -17,4 +17,4 @@ ...@@ -17,4 +17,4 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#define VMALLOC_END 0xf8000000 #define VMALLOC_END 0xf8000000UL
...@@ -17,4 +17,4 @@ ...@@ -17,4 +17,4 @@
* The vmalloc() routines leaves a hole of 4kB between each vmalloced * The vmalloc() routines leaves a hole of 4kB between each vmalloced
* area for the same reason. ;) * area for the same reason. ;)
*/ */
#define VMALLOC_END 0xd0000000 #define VMALLOC_END 0xd0000000UL
...@@ -7,4 +7,4 @@ ...@@ -7,4 +7,4 @@
* it under the terms of the GNU General Public License version 2 as * it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation. * published by the Free Software Foundation.
*/ */
#define VMALLOC_END 0xdc000000 #define VMALLOC_END 0xdc000000UL
/* /*
* arch/arm/mach-shark/include/mach/vmalloc.h * arch/arm/mach-shark/include/mach/vmalloc.h
*/ */
#define VMALLOC_END 0xd0000000 #define VMALLOC_END 0xd0000000UL
...@@ -18,4 +18,4 @@ ...@@ -18,4 +18,4 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#define VMALLOC_END 0xd8000000 #define VMALLOC_END 0xd8000000UL
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册