diff options
-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 | } |