sparc64: Use unsigned long long for u64.
authorSam Ravnborg <sam@ravnborg.org>
Tue, 6 Jan 2009 21:19:28 +0000 (13:19 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Jan 2009 21:19:28 +0000 (13:19 -0800)
commit9018113649348c689da107166c05d436cd52e7bf
tree3ae09643fd0cafdfdb9462575213e060b456ac91
parent0157141ae29d7a0998b9f040e577895980430d89
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>
19 files changed:
arch/sparc/include/asm/timer_64.h
arch/sparc/include/asm/types.h
arch/sparc/kernel/ds.c
arch/sparc/kernel/iommu.c
arch/sparc/kernel/mdesc.c
arch/sparc/kernel/of_device_64.c
arch/sparc/kernel/pci.c
arch/sparc/kernel/pci_common.c
arch/sparc/kernel/pci_msi.c
arch/sparc/kernel/pci_schizo.c
arch/sparc/kernel/pci_sun4v.c
arch/sparc/kernel/power.c
arch/sparc/kernel/prom_irqtrans.c
arch/sparc/kernel/psycho_common.c
arch/sparc/kernel/smp_64.c
arch/sparc/kernel/time_64.c
arch/sparc/kernel/traps_64.c
arch/sparc/kernel/vio.c
arch/sparc/mm/init_64.c