mtd: bcm63xxpart: give width specifier an 'int', not 'size_t'
PATCH 1/1 mtd: bcm63xxpart: give width specifier an 'int', not 'size_t'
Fixes this warning:
Quoted 1 line
Quoted 1 line
drivers/mtd/bcm63xxpart.c:175:4: note: in expansion of macro 'pr_err'
pr_err("invalid rootfs address: %*ph\n",
^
Quoted 1 line
Quoted 1 line
include/linux/kern_levels.h:4:18: warning: field width specifier '*' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=]
Reported-by kbuild test robot <[email protected]>
Signed-off-by Brian Norris <[email protected]>
--- drivers/mtd/bcm63xxpart.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/mtd/bcm63xxpart.c +4 -4
@@ -157,7 +157,7 @@ static int bcm63xx_parse_cfe_nor_partitions(struct mtd_info *master,if (kstrtouint (buf->flash_image_start,10 , &rootfsaddr) || rootfsaddr <BCM963XX_EXTENDED_SIZE ) {pr_err ("invalid rootfs address: %*ph\n" , -sizeof (buf->flash_image_start), + (int )sizeof (buf->flash_image_start), buf->flash_image_start); goto invalid_tag; }
@@ -166,7 +166,7 @@ static int bcm63xx_parse_cfe_nor_partitions(struct mtd_info *master,if (kstrtouint (buf->kernel_address,10 , &kerneladdr) || kerneladdr <BCM963XX_EXTENDED_SIZE ) {pr_err ("invalid kernel address: %*ph\n" , -sizeof (buf->kernel_address), + (int )sizeof (buf->kernel_address), buf->kernel_address); goto invalid_tag; }
@@ -174,7 +174,7 @@ static int bcm63xx_parse_cfe_nor_partitions(struct mtd_info *master,STR_NULL_TERMINATE (buf->kernel_length);if (kstrtouint (buf->kernel_length,10 , &kernellen)) {pr_err ("invalid kernel length: %*ph\n" , -sizeof (buf->kernel_length), + (int )sizeof (buf->kernel_length), buf->kernel_length); goto invalid_tag; }
@@ -182,7 +182,7 @@ static int bcm63xx_parse_cfe_nor_partitions(struct mtd_info *master,STR_NULL_TERMINATE (buf->total_length);if (kstrtouint (buf->total_length,10 , &totallen)) {pr_err ("invalid total length: %*ph\n" , -sizeof (buf->total_length), + (int )sizeof (buf->total_length), buf->total_length); goto invalid_tag; }
Signature · 1 line
2.7.0.rc3.207.g0ac5344
Brian Norris
AppliedQuoted 9 lines · Brian Norris
Fixes this warning:
Quoted 1 line
Quoted 1 line
drivers/mtd/bcm63xxpart.c:175:4: note: in expansion of macro 'pr_err'pr_err("invalid rootfs address: %*ph\n",
^Quoted 1 line
Quoted 1 line
include/linux/kern_levels.h:4:18: warning: field width specifier '*' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=]Reported-by kbuild test robot <[email protected]>Signed-off-by Brian Norris <[email protected]>
Applied