From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753331AbbLUX4m (ORCPT ); Mon, 21 Dec 2015 18:56:42 -0500 Received: from zeniv.linux.org.uk ([195.92.253.2]:33089 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752348AbbLUXsJ (ORCPT ); Mon, 21 Dec 2015 18:48:09 -0500 From: Al Viro To: linux-kernel@vger.kernel.org Cc: Linus Torvalds Subject: [POC][PATCH 56/83] amd_gart_64: get rid of pointless casts Date: Mon, 21 Dec 2015 23:47:29 +0000 Message-Id: <1450741676-5865-56-git-send-email-viro@ZenIV.linux.org.uk> X-Mailer: git-send-email 1.7.7.6 In-Reply-To: <20151221234615.GW20997@ZenIV.linux.org.uk> References: <20151221234615.GW20997@ZenIV.linux.org.uk> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Al Viro Signed-off-by: Al Viro --- 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