Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3032345pxp; Tue, 22 Mar 2022 10:38:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRl4wce7vNs5nM4puaJsHKo3dNJAj2+wcNkonQ+WMB4dk3OrFIwKZK5hpefyRHbXNjBZdi X-Received: by 2002:a63:520c:0:b0:382:2953:a338 with SMTP id g12-20020a63520c000000b003822953a338mr17704516pgb.610.1647970711591; Tue, 22 Mar 2022 10:38:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647970711; cv=none; d=google.com; s=arc-20160816; b=vRVMjWKpleU9GxYQN9UwMBdDZaO+d7fdD+MuPzKow2PMvAy5SZ3+FAMs01z/84tHIl Bea/93BewjEvzSbcAXwZ3zj3Mt8Q//Ikv8WU9XntN4GkYHCPvsPS9odrFQ1pnKIVPjKF 0xj69F5bjEZmtstMtnbxvemmuc/UncRYRvd6xBgAQUuaTFOEE8SeBQib8xY/Q5RkAy85 KhUbwHzIMJj4jYj9MFb4nTVIIecdvn7Y8bWfElA+s9v/JBcPJBiyFVrkTvr6ROluNbfH COnP1V9Ab48Rj9hMIiysclY6LATCQ71sCBXP0DWBgVUoAVYFs0fB1Dw33PTro8vrARzT WYPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=+KSKF/kHoPLGUeVwm5i01ABmSYpwRw8k5iENC35iOqo=; b=UHQGaJaEMfSae17n+shd9pu9Z5GXWoISaCgGnZ9Guwj7Txj0LlJUbqbwbLMqYBsK63 Sb5eJ2rP2rS8eZ0DPOXrHJpZCzaB7nM1R5kwEiWr5Yu/xaH6molM37vZkwe8cWoL3Z2B zq0LJu/ko7RPlVeb1Scq3XSo9PIDHUbdM/VTWdwbIGEITn3eqe2eCJdJuPk5bS/rs8JO 87j6IwjGG30MmaEWC7ACTrncqlbdgxBHrDKicyaH/xGKdKCcbQCF678L8ylWz/9rH+A6 92oed2/NfbdcF2E10nxW+HcZcMqhXGXAvhacc17T+0/PhNG5S34Wez+bWquLpOMLoRwd X2IQ== 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 m7-20020a656a07000000b00382773dcd86si9604996pgu.431.2022.03.22.10.38.17; Tue, 22 Mar 2022 10:38:31 -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 S236833AbiCVObB (ORCPT + 99 others); Tue, 22 Mar 2022 10:31:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233837AbiCVOa5 (ORCPT ); Tue, 22 Mar 2022 10:30:57 -0400 Received: from ha.nfschina.com (unknown [IPv6:2400:dd01:100f:2:72e2:84ff:fe10:5f45]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9E4C9654A1; Tue, 22 Mar 2022 07:29:29 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by ha.nfschina.com (Postfix) with ESMTP id 345A31E80D6B; Tue, 22 Mar 2022 22:28:40 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from ha.nfschina.com ([127.0.0.1]) by localhost (ha.nfschina.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9lyuXtfIkRuj; Tue, 22 Mar 2022 22:28:37 +0800 (CST) Received: from localhost.localdomain (unknown [180.167.10.98]) (Authenticated sender: liqiong@nfschina.com) by ha.nfschina.com (Postfix) with ESMTPA id 3586C1E80D24; Tue, 22 Mar 2022 22:28:37 +0800 (CST) From: liqiong To: naoya.horiguchi@nec.com, akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, yuzhe@nfschina.com, renyu@nfschina.com, liqiong Subject: [PATCH] mm: remove unnecessary (void*) conversions. Date: Tue, 22 Mar 2022 22:28:26 +0800 Message-Id: <20220322142826.25939-1-liqiong@nfschina.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20220322121338.27428-1-liqiong@nfschina.com> References: <20220322121338.27428-1-liqiong@nfschina.com> X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_NONE,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 hwp_walk*). Signed-off-by: liqiong Acked-by: Naoya Horiguchi Reviewed-by: Muchun Song --- mm/memory-failure.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/memory-failure.c b/mm/memory-failure.c index 97a9ed8f87a9..4ed0dcf03659 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -630,7 +630,7 @@ static int check_hwpoisoned_pmd_entry(pmd_t *pmdp, unsigned long addr, static int hwpoison_pte_range(pmd_t *pmdp, unsigned long addr, unsigned long end, struct mm_walk *walk) { - struct hwp_walk *hwp = (struct hwp_walk *)walk->private; + struct hwp_walk *hwp = walk->private; int ret = 0; pte_t *ptep, *mapped_pte; spinlock_t *ptl; @@ -664,7 +664,7 @@ static int hwpoison_hugetlb_range(pte_t *ptep, unsigned long hmask, unsigned long addr, unsigned long end, struct mm_walk *walk) { - struct hwp_walk *hwp = (struct hwp_walk *)walk->private; + struct hwp_walk *hwp = walk->private; pte_t pte = huge_ptep_get(ptep); struct hstate *h = hstate_vma(walk->vma); -- 2.11.0