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/iommu.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/iommu.c')
-rw-r--r-- | arch/sparc/kernel/iommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/kernel/iommu.c b/arch/sparc/kernel/iommu.c index 1cc1995531e2..d8900e1d5aad 100644 --- a/arch/sparc/kernel/iommu.c +++ b/arch/sparc/kernel/iommu.c | |||
@@ -434,7 +434,7 @@ static void strbuf_flush(struct strbuf *strbuf, struct iommu *iommu, | |||
434 | val = iommu_read(matchreg); | 434 | val = iommu_read(matchreg); |
435 | if (unlikely(val)) { | 435 | if (unlikely(val)) { |
436 | printk(KERN_WARNING "strbuf_flush: ctx flush " | 436 | printk(KERN_WARNING "strbuf_flush: ctx flush " |
437 | "timeout matchreg[%lx] ctx[%lx]\n", | 437 | "timeout matchreg[%llx] ctx[%lx]\n", |
438 | val, ctx); | 438 | val, ctx); |
439 | goto do_page_flush; | 439 | goto do_page_flush; |
440 | } | 440 | } |