Commit dff56a31 authored by Alessandro Rubini's avatar Alessandro Rubini

kernel: fix some warnings

While building for a 64-bit host I found a few warnings in format strings.
One is corrected by using "%zi", and other ones are about resources.
Unfortunately %pR was added in 2.6.32, so to avoid introducing backporting
issues to our 2.6.24 cast the argument instead.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 54fa87ec
fmc-bus @ 09d33735
Subproject commit b2ca26a566e978dc8426a0cebe8dba40cadac2ac
Subproject commit 09d33735ed49e618e213efd6348227305ce910fa
......@@ -74,7 +74,7 @@ int spec_load_fpga_file(struct spec_dev *spec, char *name)
dev_err(dev, "request firmware \"%s\": error %i\n", name, err);
return err;
}
dev_info(dev, "got file \"%s\", %i (0x%x) bytes\n",
dev_info(dev, "got file \"%s\", %zi (0x%zx) bytes\n",
spec_fw_name, fw->size, fw->size);
err = spec_load_fpga(spec, fw->data, fw->size);
......
......@@ -85,13 +85,13 @@ static int __devinit __wrn_map_resources(struct platform_device *pdev)
continue;
ptr = ioremap(res->start, res->end + 1 - res->start);
if (!ptr) {
dev_err(&pdev->dev, "Remap for res %i (%08x) failed\n",
i, res->start);
dev_err(&pdev->dev, "Remap for res %i (%08lx) failed\n",
i, (long)res->start);
return -ENOMEM;
}
/* Hack: find the block number and fill the array */
pr_debug("Remapped %08x (block %i) to %p\n",
res->start, i, ptr);
pr_debug("Remapped %08lx (block %i) to %p\n",
(long)res->start, i, ptr);
wrn->bases[i] = ptr;
}
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment