Skip to contentSkip to conversation

mm: Fix build warning

PATCH In review Aneesh Kumar K.V 2 participants 2 messages Mar 30, 2019

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

PATCH 1/1 mm: Fix build warning

mm/debug.c: In function ‘dump_mm’:
include/linux/kern_levels.h:5:18: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 19 has type ‘long int’ [-Wformat=]

              ~~~^
---
 mm/debug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/debug.c +1 -1
index c0b31b6c3877..c134e76918dc 100644
@@ -137,7 +137,7 @@ void dump_mm(const struct mm_struct *mm)
 		"mmap_base %lu mmap_legacy_base %lu highest_vm_end %lu\n"
 		"pgd %px mm_users %d mm_count %d pgtables_bytes %lu map_count %d\n"
 		"hiwater_rss %lx hiwater_vm %lx total_vm %lx locked_vm %lx\n"
-		"pinned_vm %llx data_vm %lx exec_vm %lx stack_vm %lx\n"
+		"pinned_vm %lx data_vm %lx exec_vm %lx stack_vm %lx\n"
 		"start_code %lx end_code %lx start_data %lx end_data %lx\n"
 		"start_brk %lx brk %lx start_stack %lx\n"
 		"arg_start %lx arg_end %lx env_start %lx env_end %lx\n"
Signature · 1 line
2.20.1
#1 lore raw
Quoted 5 lines · Aneesh Kumar K.V

mm/debug.c: In function ‘dump_mm’:
include/linux/kern_levels.h:5:18: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 19 has type ‘long int’ [-Wformat=]

               ~~~^

Does it come even after this patch ?
https://patchwork.kernel.org/patch/10846421/

Thanks.

Mukesh

Quoted 17 lines
---
  mm/debug.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
mm/debug.c +1 -1
index c0b31b6c3877..c134e76918dc 100644
@@ -137,7 +137,7 @@ void dump_mm(const struct mm_struct *mm)
  		"mmap_base %lu mmap_legacy_base %lu highest_vm_end %lu\n"
  		"pgd %px mm_users %d mm_count %d pgtables_bytes %lu map_count %d\n"
  		"hiwater_rss %lx hiwater_vm %lx total_vm %lx locked_vm %lx\n"
-		"pinned_vm %llx data_vm %lx exec_vm %lx stack_vm %lx\n"
+		"pinned_vm %lx data_vm %lx exec_vm %lx stack_vm %lx\n"
  		"start_code %lx end_code %lx start_data %lx end_data %lx\n"
  		"start_brk %lx brk %lx start_stack %lx\n"
  		"arg_start %lx arg_end %lx env_start %lx env_end %lx\n"