Skip to contentSkip to conversation

ARM: S5PC210/S5PC110: VMALLOC_END should be unsigned long

PATCH New Kyungmin Park 2 participants 2 messages Aug 19, 2010 – Aug 21, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: S5PC210/S5PC110: VMALLOC_END should be unsigned long

From: Kyungmin Park <[email protected]>

Silences following build warning:

arch/arm/mm/init.c: In function 'mem_init':
arch/arm/mm/init.c:644: warning: format '%08lx' expects type 'long unsigned int', but argument 12 has type 'unsigned int'

---

arch/arm/mach-s5pv210/include/mach/vmalloc.h +1 -1
index 58f515e..5b4c69b 100644
@@ -17,6 +17,6 @@
 #ifndef __ASM_ARCH_VMALLOC_H
 #define __ASM_ARCH_VMALLOC_H __FILE__
 
-#define VMALLOC_END	  (0xE0000000)
+#define VMALLOC_END	  (0xE0000000UL)
 
 #endif /* __ASM_ARCH_VMALLOC_H */
arch/arm/mach-s5pv310/include/mach/vmalloc.h +1 -1
index 3f565eb..5bf4345 100644
@@ -17,6 +17,6 @@
 #ifndef __ASM_ARCH_VMALLOC_H
 #define __ASM_ARCH_VMALLOC_H __FILE__
 
-#define VMALLOC_END	  (0xF0000000)
+#define VMALLOC_END	  (0xF0000000UL)
 
 #endif /* __ASM_ARCH_VMALLOC_H */
#1 lore raw

PATCH 1/1 ARM: S5PC210/S5PC110: VMALLOC_END should be unsigned long

Quoted 31 lines · Kyungmin Park

From: Kyungmin Park <[email protected]>

Silences following build warning:

arch/arm/mm/init.c: In function 'mem_init':
arch/arm/mm/init.c:644: warning: format '%08lx' expects type 'long unsigned int', but argument 12 has type 'unsigned int'

---

arch/arm/mach- renamed from arch/arm/mach-s5pv210/include/mach/vmalloc.h +0 -0

s5pv210/include/mach/vmalloc.h
index 58f515e..5b4c69b 100644

arch/arm/mach-s5pv210/include/mach/vmalloc.h +1 -1
@@ -17,6 +17,6 @@
 #ifndef __ASM_ARCH_VMALLOC_H
 #define __ASM_ARCH_VMALLOC_H __FILE__
 
-#define VMALLOC_END	  (0xE0000000)
+#define VMALLOC_END	  (0xE0000000UL)
 
 #endif /* __ASM_ARCH_VMALLOC_H */
arch/arm/mach- renamed from arch/arm/mach-s5pv310/include/mach/vmalloc.h +0 -0

s5pv310/include/mach/vmalloc.h
index 3f565eb..5bf4345 100644

arch/arm/mach-s5pv310/include/mach/vmalloc.h line 22

Quoted 7 lines
arch/arm/mach-s5pv310/include/mach/vmalloc.h +1 -1
@@ -17,6 +17,6 @@
 #ifndef __ASM_ARCH_VMALLOC_H
 #define __ASM_ARCH_VMALLOC_H __FILE__
 
-#define VMALLOC_END	  (0xF0000000)
+#define VMALLOC_END	  (0xF0000000UL)
 
 #endif /* __ASM_ARCH_VMALLOC_H */

--
Ok..will apply.

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.