Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6428497rwr; Mon, 24 Apr 2023 20:41:15 -0700 (PDT) X-Google-Smtp-Source: AKy350aukablVOWi7On/Muxbh6R4N+i6fKY5sCX+At04zoMNmVh/Fc3eg0CtvhQBEUj47yi5/XQH X-Received: by 2002:a17:90b:a53:b0:246:aebf:21f5 with SMTP id gw19-20020a17090b0a5300b00246aebf21f5mr15672915pjb.41.1682394075348; Mon, 24 Apr 2023 20:41:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682394075; cv=none; d=google.com; s=arc-20160816; b=hzTdldTWyu/ZBARfdWXcI6PA6nU0Q1C8VZXlaxqThrLcA3ttjyXi34b+vX2uIuLp+V HYjL0WqQvHzTik4cWNTDyv6vVrS8lXXbDJglF9JrmFnQNuVdV7f/xSa24M6UJ4mPHRtH HW7GmNnW0HH2CgD23Dn30OgTF0G/g8PEf4WOH4pjAhzIP08d9CzWNIT51VkZEBkk3UfZ 6isAK4GphoNHbMPNnJwsnbAz5UOeaI4pm5/QpubuOE6jQhyGprZzRkVU3jl+FI6JTpKx NLS10xcQ7GHKPNqBqb5SpfdKsSlPQ4eImHebpax7S56qvDP2sOAG+V+/EPhFaB7HLWJQ OANA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=l5/0rbnieutwao9M2Npj8XNVy4OSpMZ47qAQfZA9ZOY=; b=v+/CcpLaqGXEXbbL9NX0XQAVj8nbwUeCmPABxHndJBPtXGdaDXXe/uHzQK0j8KhvV/ s/gPofzCpt3D2H55tUhflaJPdmHNywMvWFCJtLyjhmHjgeiz6pVZU3Ze5cYwqb54+rei Lfn2E/+wM3LQMLQX2FGGywZzF/roJ29MOx09pl5G1AX5IKMpKgxDPq+q31L4azDYzhFy TuCaLa1IUJk2lBC7L8vl4RcwCeDoTZVeEGIkI7x3sxZF80E//nopowRNm57yp3wKWQDl tGDQsj+mlvxYqEM87oNDBQrK4gLfvWdgHaX22JUwJ1wnyRyGwI/pUA0wSDnWbikSGdYS VVTQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa2-20020a17090b4fc200b0023a177c4951si12860593pjb.39.2023.04.24.20.41.03; Mon, 24 Apr 2023 20:41:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233264AbjDYDiH (ORCPT + 99 others); Mon, 24 Apr 2023 23:38:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229637AbjDYDiF (ORCPT ); Mon, 24 Apr 2023 23:38:05 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id E777D49D0; Mon, 24 Apr 2023 20:38:03 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 1B76D180506E2B; Tue, 25 Apr 2023 11:37:55 +0800 (CST) X-MD-Sfrom: suhui@nfschina.com X-MD-SrcIP: 180.167.10.98 From: Suhui To: David Woodhouse , Lu Baolu , Joerg Roedel , Will Deacon , Robin Murphy Cc: iommu@lists.linux.dev, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Suhui Subject: [PATCH] iommu/vt-d: Remove unnecessary (void*) conversions Date: Tue, 25 Apr 2023 11:37:43 +0800 Message-Id: <20230425033743.75986-1-suhui@nfschina.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org No need cast (void*) to (struct root_entry *). Signed-off-by: Suhui --- drivers/iommu/intel/iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/intel/iommu.c b/drivers/iommu/intel/iommu.c index 7c2f4bd33582..c72cf46207a2 100644 --- a/drivers/iommu/intel/iommu.c +++ b/drivers/iommu/intel/iommu.c @@ -1187,7 +1187,7 @@ static int iommu_alloc_root_entry(struct intel_iommu *iommu) { struct root_entry *root; - root = (struct root_entry *)alloc_pgtable_page(iommu->node, GFP_ATOMIC); + root = alloc_pgtable_page(iommu->node, GFP_ATOMIC); if (!root) { pr_err("Allocating root entry for %s failed\n", iommu->name); -- 2.30.2