From: Andrew Morton mm/bootmem.c: In function 'init_bootmem_core': mm/bootmem.c:123: warning: format '%d' expects type 'int', but argument 3 has type 'long int' mm/bootmem.c: In function 'free_all_bootmem_core': mm/bootmem.c:220: warning: format '%d' expects type 'int', but argument 3 has type 'long int' mm/bootmem.c: In function 'free_bootmem_core': mm/bootmem.c:279: warning: format '%d' expects type 'int', but argument 3 has type 'long int' mm/bootmem.c: In function 'reserve_bootmem_core': mm/bootmem.c:388: warning: format '%d' expects type 'int', but argument 3 has type 'long int' mm/bootmem.c: In function 'alloc_bootmem_core': mm/bootmem.c:485: warning: format '%d' expects type 'int', but argument 3 has type 'long int' mm/bootmem.c:596: warning: format '%d' expects type 'int', but argument 3 has type 'long int' Cc: Johannes Weiner Signed-off-by: Andrew Morton --- mm/bootmem.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff -puN mm/bootmem.c~bootmem-add-debugging-framework-fix mm/bootmem.c --- a/mm/bootmem.c~bootmem-add-debugging-framework-fix +++ a/mm/bootmem.c @@ -120,7 +120,7 @@ static unsigned long __init init_bootmem mapsize = get_mapsize(bdata); memset(bdata->node_bootmem_map, 0xff, mapsize); - bdebug("nid=%d start=%lx map=%lx end=%lx mapsize=%lx\n", + bdebug("nid=%td start=%lx map=%lx end=%lx mapsize=%lx\n", bdata - bootmem_node_data, start, mapstart, end, mapsize); return mapsize; @@ -217,7 +217,7 @@ static unsigned long __init free_all_boo count += i; bdata->node_bootmem_map = NULL; - bdebug("nid=%d released=%lx\n", bdata - bootmem_node_data, count); + bdebug("nid=%td released=%lx\n", bdata - bootmem_node_data, count); return count; } @@ -276,7 +276,7 @@ static void __init free_bootmem_core(boo if (eidx > bdata->node_low_pfn - PFN_DOWN(bdata->node_boot_start)) eidx = bdata->node_low_pfn - PFN_DOWN(bdata->node_boot_start); - bdebug("nid=%d start=%lx end=%lx\n", bdata - bootmem_node_data, + bdebug("nid=%td start=%lx end=%lx\n", bdata - bootmem_node_data, sidx + PFN_DOWN(bdata->node_boot_start), eidx + PFN_DOWN(bdata->node_boot_start)); @@ -385,7 +385,7 @@ static void __init reserve_bootmem_core( if (eidx > bdata->node_low_pfn - PFN_DOWN(bdata->node_boot_start)) eidx = bdata->node_low_pfn - PFN_DOWN(bdata->node_boot_start); - bdebug("nid=%d start=%lx end=%lx flags=%x\n", + bdebug("nid=%td start=%lx end=%lx flags=%x\n", bdata - bootmem_node_data, sidx + PFN_DOWN(bdata->node_boot_start), eidx + PFN_DOWN(bdata->node_boot_start), @@ -483,7 +483,7 @@ alloc_bootmem_core(struct bootmem_data * if (!bdata->node_bootmem_map) return NULL; - bdebug("nid=%d size=%lx [%lu pages] align=%lx goal=%lx limit=%lx\n", + bdebug("nid=%td size=%lx [%lu pages] align=%lx goal=%lx limit=%lx\n", bdata - bootmem_node_data, size, PAGE_ALIGN(size) >> PAGE_SHIFT, align, goal, limit); @@ -594,7 +594,7 @@ found: ret = phys_to_virt(start * PAGE_SIZE + node_boot_start); } - bdebug("nid=%d start=%lx end=%lx\n", + bdebug("nid=%td start=%lx end=%lx\n", bdata - bootmem_node_data, start + PFN_DOWN(bdata->node_boot_start), start + areasize + PFN_DOWN(bdata->node_boot_start)); _