Browse Source

[MTD] [MAPS] ck804xrom warning fix

drivers/mtd/maps/ck804xrom.c: In function 'ck804xrom_init_one':
drivers/mtd/maps/ck804xrom.c:211: warning: format '%08lx' expects type 'long unsigned int', but argument 4 has type 'resource_size_t'
drivers/mtd/maps/ck804xrom.c:211: warning: format '%08lx' expects type 'long unsigned int', but argument 4 has type 'resource_size_t'

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Andrew Morton 18 năm trước cách đây
mục cha
commit
65af07141b
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      drivers/mtd/maps/ck804xrom.c

+ 2 - 2
drivers/mtd/maps/ck804xrom.c

@@ -207,8 +207,8 @@ static int __devinit ck804xrom_init_one (struct pci_dev *pdev,
 			(((unsigned long)(window->virt)) + offset);
 			(((unsigned long)(window->virt)) + offset);
 		map->map.size = 0xffffffffUL - map_top + 1UL;
 		map->map.size = 0xffffffffUL - map_top + 1UL;
 		/* Set the name of the map to the address I am trying */
 		/* Set the name of the map to the address I am trying */
-		sprintf(map->map_name, "%s @%08lx",
-			MOD_NAME, map->map.phys);
+		sprintf(map->map_name, "%s @%08Lx",
+			MOD_NAME, (unsigned long long)map->map.phys);
 
 
 		/* There is no generic VPP support */
 		/* There is no generic VPP support */
 		for(map->map.bankwidth = 32; map->map.bankwidth;
 		for(map->map.bankwidth = 32; map->map.bankwidth;