diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2009-01-06 16:19:28 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-06 16:19:28 -0500 |
commit | 9018113649348c689da107166c05d436cd52e7bf (patch) | |
tree | 3ae09643fd0cafdfdb9462575213e060b456ac91 /arch/sparc/kernel/mdesc.c | |
parent | 0157141ae29d7a0998b9f040e577895980430d89 (diff) |
sparc64: Use unsigned long long for u64.
Andrew Morton wrote:
People keep on doing
printk("%llu", some_u64);
testing it only on x86_64 and this generates a warning storm on
powerpc, sparc64, etc. Because they use `long', not `long long'.
Quite a few 64-bit architectures are using `long' for their
s64/u64 types. We should convert them all to `long long'.
Update types.h so we use unsigned long long for u64 and
fix all warnings in sparc64 code.
Tested with an allnoconfig, defconfig and allmodconfig builds.
This patch introduces additional warnings in several drivers.
These will be dealt with in separate patches.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/mdesc.c')
-rw-r--r-- | arch/sparc/kernel/mdesc.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/sparc/kernel/mdesc.c b/arch/sparc/kernel/mdesc.c index 3c539a6d7c18..3f79f0c23a08 100644 --- a/arch/sparc/kernel/mdesc.c +++ b/arch/sparc/kernel/mdesc.c | |||
@@ -536,24 +536,24 @@ static void __init report_platform_properties(void) | |||
536 | 536 | ||
537 | v = mdesc_get_property(hp, pn, "hostid", NULL); | 537 | v = mdesc_get_property(hp, pn, "hostid", NULL); |
538 | if (v) | 538 | if (v) |
539 | printk("PLATFORM: hostid [%08lx]\n", *v); | 539 | printk("PLATFORM: hostid [%08llx]\n", *v); |
540 | v = mdesc_get_property(hp, pn, "serial#", NULL); | 540 | v = mdesc_get_property(hp, pn, "serial#", NULL); |
541 | if (v) | 541 | if (v) |
542 | printk("PLATFORM: serial# [%08lx]\n", *v); | 542 | printk("PLATFORM: serial# [%08llx]\n", *v); |
543 | v = mdesc_get_property(hp, pn, "stick-frequency", NULL); | 543 | v = mdesc_get_property(hp, pn, "stick-frequency", NULL); |
544 | printk("PLATFORM: stick-frequency [%08lx]\n", *v); | 544 | printk("PLATFORM: stick-frequency [%08llx]\n", *v); |
545 | v = mdesc_get_property(hp, pn, "mac-address", NULL); | 545 | v = mdesc_get_property(hp, pn, "mac-address", NULL); |
546 | if (v) | 546 | if (v) |
547 | printk("PLATFORM: mac-address [%lx]\n", *v); | 547 | printk("PLATFORM: mac-address [%llx]\n", *v); |
548 | v = mdesc_get_property(hp, pn, "watchdog-resolution", NULL); | 548 | v = mdesc_get_property(hp, pn, "watchdog-resolution", NULL); |
549 | if (v) | 549 | if (v) |
550 | printk("PLATFORM: watchdog-resolution [%lu ms]\n", *v); | 550 | printk("PLATFORM: watchdog-resolution [%llu ms]\n", *v); |
551 | v = mdesc_get_property(hp, pn, "watchdog-max-timeout", NULL); | 551 | v = mdesc_get_property(hp, pn, "watchdog-max-timeout", NULL); |
552 | if (v) | 552 | if (v) |
553 | printk("PLATFORM: watchdog-max-timeout [%lu ms]\n", *v); | 553 | printk("PLATFORM: watchdog-max-timeout [%llu ms]\n", *v); |
554 | v = mdesc_get_property(hp, pn, "max-cpus", NULL); | 554 | v = mdesc_get_property(hp, pn, "max-cpus", NULL); |
555 | if (v) | 555 | if (v) |
556 | printk("PLATFORM: max-cpus [%lu]\n", *v); | 556 | printk("PLATFORM: max-cpus [%llu]\n", *v); |
557 | 557 | ||
558 | #ifdef CONFIG_SMP | 558 | #ifdef CONFIG_SMP |
559 | { | 559 | { |