From: Al Viro <[email protected]>

Signed-off-by: Al Viro <[email protected]>
---
 arch/x86/kernel/amd_gart_64.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/kernel/amd_gart_64.c b/arch/x86/kernel/amd_gart_64.c
index 2ef2933..94da9dd 100644
--- a/arch/x86/kernel/amd_gart_64.c
+++ b/arch/x86/kernel/amd_gart_64.c
@@ -736,7 +736,7 @@ int __init gart_iommu_init(void)
        unsigned long iommu_start;
        unsigned long aper_base, aper_size;
        unsigned long start_pfn, end_pfn;
-       unsigned long scratch;
+       void *scratch;
        long i;
 
        if (!amd_nb_has_feature(AMD_NB_GART))
@@ -841,7 +841,7 @@ int __init gart_iommu_init(void)
         * Any prefetches that hit unmapped entries won't get an bus abort
         * then. (P2P bridge may be prefetching on DMA reads).
         */
-       scratch = (unsigned long)get_zeroed_page(GFP_KERNEL);
+       scratch = get_zeroed_page(GFP_KERNEL);
        if (!scratch)
                panic("Cannot allocate iommu scratch page");
        gart_unmapped_entry = GPTE_ENCODE(__pa(scratch));
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to