diff options
author | Brian Norris <computersforpeace@gmail.com> | 2016-02-12 15:26:04 -0500 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2016-03-07 16:13:58 -0500 |
commit | 3707b2c3d21f7c9f8c6aadba79ef012f0bbad10c (patch) | |
tree | 912985a53d0ebe06fe423053aa59ab3d1e971cb7 /drivers/mtd/bcm63xxpart.c | |
parent | c67682c5e0a43bdcb049c7775b78200835f12b95 (diff) |
mtd: bcm63xxpart: give width specifier an 'int', not 'size_t'
Fixes this warning:
>> drivers/mtd/bcm63xxpart.c:175:4: note: in expansion of macro 'pr_err'
pr_err("invalid rootfs address: %*ph\n",
^
>> 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 <fengguang.wu@intel.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/bcm63xxpart.c')
-rw-r--r-- | drivers/mtd/bcm63xxpart.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mtd/bcm63xxpart.c b/drivers/mtd/bcm63xxpart.c index 26c38a107576..41d1d3149c61 100644 --- a/drivers/mtd/bcm63xxpart.c +++ b/drivers/mtd/bcm63xxpart.c | |||
@@ -157,7 +157,7 @@ static int bcm63xx_parse_cfe_nor_partitions(struct mtd_info *master, | |||
157 | if (kstrtouint(buf->flash_image_start, 10, &rootfsaddr) || | 157 | if (kstrtouint(buf->flash_image_start, 10, &rootfsaddr) || |
158 | rootfsaddr < BCM963XX_EXTENDED_SIZE) { | 158 | rootfsaddr < BCM963XX_EXTENDED_SIZE) { |
159 | pr_err("invalid rootfs address: %*ph\n", | 159 | pr_err("invalid rootfs address: %*ph\n", |
160 | sizeof(buf->flash_image_start), | 160 | (int)sizeof(buf->flash_image_start), |
161 | buf->flash_image_start); | 161 | buf->flash_image_start); |
162 | goto invalid_tag; | 162 | goto invalid_tag; |
163 | } | 163 | } |
@@ -166,7 +166,7 @@ static int bcm63xx_parse_cfe_nor_partitions(struct mtd_info *master, | |||
166 | if (kstrtouint(buf->kernel_address, 10, &kerneladdr) || | 166 | if (kstrtouint(buf->kernel_address, 10, &kerneladdr) || |
167 | kerneladdr < BCM963XX_EXTENDED_SIZE) { | 167 | kerneladdr < BCM963XX_EXTENDED_SIZE) { |
168 | pr_err("invalid kernel address: %*ph\n", | 168 | pr_err("invalid kernel address: %*ph\n", |
169 | sizeof(buf->kernel_address), | 169 | (int)sizeof(buf->kernel_address), |
170 | buf->kernel_address); | 170 | buf->kernel_address); |
171 | goto invalid_tag; | 171 | goto invalid_tag; |
172 | } | 172 | } |
@@ -174,7 +174,7 @@ static int bcm63xx_parse_cfe_nor_partitions(struct mtd_info *master, | |||
174 | STR_NULL_TERMINATE(buf->kernel_length); | 174 | STR_NULL_TERMINATE(buf->kernel_length); |
175 | if (kstrtouint(buf->kernel_length, 10, &kernellen)) { | 175 | if (kstrtouint(buf->kernel_length, 10, &kernellen)) { |
176 | pr_err("invalid kernel length: %*ph\n", | 176 | pr_err("invalid kernel length: %*ph\n", |
177 | sizeof(buf->kernel_length), | 177 | (int)sizeof(buf->kernel_length), |
178 | buf->kernel_length); | 178 | buf->kernel_length); |
179 | goto invalid_tag; | 179 | goto invalid_tag; |
180 | } | 180 | } |
@@ -182,7 +182,7 @@ static int bcm63xx_parse_cfe_nor_partitions(struct mtd_info *master, | |||
182 | STR_NULL_TERMINATE(buf->total_length); | 182 | STR_NULL_TERMINATE(buf->total_length); |
183 | if (kstrtouint(buf->total_length, 10, &totallen)) { | 183 | if (kstrtouint(buf->total_length, 10, &totallen)) { |
184 | pr_err("invalid total length: %*ph\n", | 184 | pr_err("invalid total length: %*ph\n", |
185 | sizeof(buf->total_length), | 185 | (int)sizeof(buf->total_length), |
186 | buf->total_length); | 186 | buf->total_length); |
187 | goto invalid_tag; | 187 | goto invalid_tag; |
188 | } | 188 | } |