Commit 0e407a9a authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Rob Herring

of: Remove superfluous casts when printing u64 values

"u64" is "unsigned long long" on all architectures now.  Hence there is
no longer a need to use casts when formatting using the "ll" length
modifier.
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/ef3f4f78385b43230695ba0855d078290c958192.1623835273.git.geert+renesas@glider.beSigned-off-by: default avatarRob Herring <robh@kernel.org>
parent 2892d8a0
...@@ -76,9 +76,7 @@ static u64 of_bus_default_map(__be32 *addr, const __be32 *range, ...@@ -76,9 +76,7 @@ static u64 of_bus_default_map(__be32 *addr, const __be32 *range,
s = of_read_number(range + na + pna, ns); s = of_read_number(range + na + pna, ns);
da = of_read_number(addr, na); da = of_read_number(addr, na);
pr_debug("default map, cp=%llx, s=%llx, da=%llx\n", pr_debug("default map, cp=%llx, s=%llx, da=%llx\n", cp, s, da);
(unsigned long long)cp, (unsigned long long)s,
(unsigned long long)da);
if (da < cp || da >= (cp + s)) if (da < cp || da >= (cp + s))
return OF_BAD_ADDR; return OF_BAD_ADDR;
...@@ -184,9 +182,7 @@ static u64 of_bus_pci_map(__be32 *addr, const __be32 *range, int na, int ns, ...@@ -184,9 +182,7 @@ static u64 of_bus_pci_map(__be32 *addr, const __be32 *range, int na, int ns,
s = of_read_number(range + na + pna, ns); s = of_read_number(range + na + pna, ns);
da = of_read_number(addr + 1, na - 1); da = of_read_number(addr + 1, na - 1);
pr_debug("PCI map, cp=%llx, s=%llx, da=%llx\n", pr_debug("PCI map, cp=%llx, s=%llx, da=%llx\n", cp, s, da);
(unsigned long long)cp, (unsigned long long)s,
(unsigned long long)da);
if (da < cp || da >= (cp + s)) if (da < cp || da >= (cp + s))
return OF_BAD_ADDR; return OF_BAD_ADDR;
...@@ -299,9 +295,7 @@ static u64 of_bus_isa_map(__be32 *addr, const __be32 *range, int na, int ns, ...@@ -299,9 +295,7 @@ static u64 of_bus_isa_map(__be32 *addr, const __be32 *range, int na, int ns,
s = of_read_number(range + na + pna, ns); s = of_read_number(range + na + pna, ns);
da = of_read_number(addr + 1, na - 1); da = of_read_number(addr + 1, na - 1);
pr_debug("ISA map, cp=%llx, s=%llx, da=%llx\n", pr_debug("ISA map, cp=%llx, s=%llx, da=%llx\n", cp, s, da);
(unsigned long long)cp, (unsigned long long)s,
(unsigned long long)da);
if (da < cp || da >= (cp + s)) if (da < cp || da >= (cp + s))
return OF_BAD_ADDR; return OF_BAD_ADDR;
...@@ -456,7 +450,7 @@ static int of_translate_one(struct device_node *parent, struct of_bus *bus, ...@@ -456,7 +450,7 @@ static int of_translate_one(struct device_node *parent, struct of_bus *bus,
finish: finish:
of_dump_addr("parent translation for:", addr, pna); of_dump_addr("parent translation for:", addr, pna);
pr_debug("with offset: %llx\n", (unsigned long long)offset); pr_debug("with offset: %llx\n", offset);
/* Translate it into parent bus space */ /* Translate it into parent bus space */
return pbus->translate(addr, offset, pna); return pbus->translate(addr, offset, pna);
......
...@@ -900,8 +900,7 @@ static void __init early_init_dt_check_for_initrd(unsigned long node) ...@@ -900,8 +900,7 @@ static void __init early_init_dt_check_for_initrd(unsigned long node)
phys_initrd_start = start; phys_initrd_start = start;
phys_initrd_size = end - start; phys_initrd_size = end - start;
pr_debug("initrd_start=0x%llx initrd_end=0x%llx\n", pr_debug("initrd_start=0x%llx initrd_end=0x%llx\n", start, end);
(unsigned long long)start, (unsigned long long)end);
} }
#else #else
static inline void early_init_dt_check_for_initrd(unsigned long node) static inline void early_init_dt_check_for_initrd(unsigned long node)
...@@ -1027,8 +1026,7 @@ int __init early_init_dt_scan_memory(unsigned long node, const char *uname, ...@@ -1027,8 +1026,7 @@ int __init early_init_dt_scan_memory(unsigned long node, const char *uname,
if (size == 0) if (size == 0)
continue; continue;
pr_debug(" - %llx , %llx\n", (unsigned long long)base, pr_debug(" - %llx, %llx\n", base, size);
(unsigned long long)size);
early_init_dt_add_memory_arch(base, size); early_init_dt_add_memory_arch(base, size);
......
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