powerpc: Change u64/s64 to a long long integer type
Convert arch/powerpc/ over to long long based u64: -#ifdef __powerpc64__ -# include <asm-generic/int-l64.h> -#else -# include <asm-generic/int-ll64.h> -#endif +#include <asm-generic/int-ll64.h> This will avoid reoccuring spurious warnings in core kernel code that comes when people test on their own hardware. (i.e. x86 in ~98% of the cases) This is what x86 uses and it generally helps keep 64-bit code 32-bit clean too. [Adjusted to not impact user mode (from paulus) - sfr] Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
committed by
Benjamin Herrenschmidt
parent
66c721e184
commit
fe333321e2
@@ -239,12 +239,12 @@ static void __iommu_free(struct iommu_table *tbl, dma_addr_t dma_addr,
|
||||
if (printk_ratelimit()) {
|
||||
printk(KERN_INFO "iommu_free: invalid entry\n");
|
||||
printk(KERN_INFO "\tentry = 0x%lx\n", entry);
|
||||
printk(KERN_INFO "\tdma_addr = 0x%lx\n", (u64)dma_addr);
|
||||
printk(KERN_INFO "\tTable = 0x%lx\n", (u64)tbl);
|
||||
printk(KERN_INFO "\tbus# = 0x%lx\n", (u64)tbl->it_busno);
|
||||
printk(KERN_INFO "\tsize = 0x%lx\n", (u64)tbl->it_size);
|
||||
printk(KERN_INFO "\tstartOff = 0x%lx\n", (u64)tbl->it_offset);
|
||||
printk(KERN_INFO "\tindex = 0x%lx\n", (u64)tbl->it_index);
|
||||
printk(KERN_INFO "\tdma_addr = 0x%llx\n", (u64)dma_addr);
|
||||
printk(KERN_INFO "\tTable = 0x%llx\n", (u64)tbl);
|
||||
printk(KERN_INFO "\tbus# = 0x%llx\n", (u64)tbl->it_busno);
|
||||
printk(KERN_INFO "\tsize = 0x%llx\n", (u64)tbl->it_size);
|
||||
printk(KERN_INFO "\tstartOff = 0x%llx\n", (u64)tbl->it_offset);
|
||||
printk(KERN_INFO "\tindex = 0x%llx\n", (u64)tbl->it_index);
|
||||
WARN_ON(1);
|
||||
}
|
||||
return;
|
||||
|
Reference in New Issue
Block a user