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:

committato da
Benjamin Herrenschmidt

parent
66c721e184
commit
fe333321e2
@@ -66,7 +66,7 @@ static int tce_build_iSeries(struct iommu_table *tbl, long index, long npages,
|
||||
|
||||
rc = HvCallXm_setTce((u64)tbl->it_index, (u64)index, tce);
|
||||
if (rc)
|
||||
panic("PCI_DMA: HvCallXm_setTce failed, Rc: 0x%lx\n",
|
||||
panic("PCI_DMA: HvCallXm_setTce failed, Rc: 0x%llx\n",
|
||||
rc);
|
||||
index++;
|
||||
uaddr += TCE_PAGE_SIZE;
|
||||
@@ -81,7 +81,7 @@ static void tce_free_iSeries(struct iommu_table *tbl, long index, long npages)
|
||||
while (npages--) {
|
||||
rc = HvCallXm_setTce((u64)tbl->it_index, (u64)index, 0);
|
||||
if (rc)
|
||||
panic("PCI_DMA: HvCallXm_setTce failed, Rc: 0x%lx\n",
|
||||
panic("PCI_DMA: HvCallXm_setTce failed, Rc: 0x%llx\n",
|
||||
rc);
|
||||
index++;
|
||||
}
|
||||
|
Fai riferimento in un nuovo problema
Block a user