Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2925292pxp; Tue, 22 Mar 2022 08:35:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx38+2GW5+4cB3+f+k8iWmBAC9t2QMbHa1W6FRgLq1OWbqIBogcBcJ77I8JxH++EaKufbTK X-Received: by 2002:a17:906:fc10:b0:6cd:84e:7248 with SMTP id ov16-20020a170906fc1000b006cd084e7248mr26143031ejb.281.1647963328743; Tue, 22 Mar 2022 08:35:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647963328; cv=none; d=google.com; s=arc-20160816; b=a2j8rqV2lBnSMUJrz/zq1j0/4P/TU9Ef1/kNbom9k4Mb3hYmqQ/T/R25j1rxJrEQWt ChX403G1UbQpsHcHi3u+qN/ORjCUkreb9qQ98fKpfA35p65ZBMT/EIw5vfzRbLAUqWEx et4iSxL95Mzcy85HtxAt/SwMz9WK7e1Vv2PecB4JTI1TWZWi+qe6a5jZiqCiovZB7H2L NLoU9D5/CzGFmi7EXVXcw/ze/gPhnsIVMRmh9qlKn8HSc/qRDX+JHPl8Pg3r9V764bec yOcnSIz4LjxN16HnMOnjBFHeOBccDwVIFXoSuB/uvE1P+IDM9oQGxu+7W1D3XzSbywM3 T1KQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=OC5aShx9mPl7VrBynGx5iva0/P69bA9mBQZv1ZXfwdM=; b=ni4dBMsHYPtPKI4duWZodOCg25CrhrBhZctHghqY1xz47SXzeIjHNq9eLvJGEpKG3m DiBpcItKN5JbulSck5h+vD0aFOifvNKRhqRopcgy/cgfKA1ujpGGWvc7wuyw6Zhc/5Fp DTM2I/jrneG1YMohz6JVjLKlIIFiA3btAy21UOFcrg/IO9bBNOpJlExGeB6t8mmcLqMr MGoJfLxXkUbQ753lTvSbX/SRg3VXpOyeaYeQE70w5TzMjiTo8jjxTb+0/gry1HtkeJ3r JZhVSlUONqemepGJ1hDFPuV8/42OaaSaZyRUhrkxLXviY+A+YWOfpvhxA7hSN+pyiYF6 0yTA== 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 7-20020a170906208700b006df838687e7si9800360ejq.20.2022.03.22.08.34.53; Tue, 22 Mar 2022 08:35:28 -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 S233445AbiCVMQZ (ORCPT + 99 others); Tue, 22 Mar 2022 08:16:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230488AbiCVMQX (ORCPT ); Tue, 22 Mar 2022 08:16:23 -0400 Received: from ha.nfschina.com (unknown [IPv6:2400:dd01:100f:2:72e2:84ff:fe10:5f45]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3B74C6AA5A; Tue, 22 Mar 2022 05:14:54 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by ha.nfschina.com (Postfix) with ESMTP id 7E5F51E80D24; Tue, 22 Mar 2022 20:14:04 +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 0eSG7M0PoPWY; Tue, 22 Mar 2022 20:14:01 +0800 (CST) Received: from localhost.localdomain (unknown [180.167.10.98]) (Authenticated sender: liqiong@nfschina.com) by ha.nfschina.com (Postfix) with ESMTPA id 3C0DE1E80D06; Tue, 22 Mar 2022 20:14:01 +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 20:13:38 +0800 Message-Id: <20220322121338.27428-1-liqiong@nfschina.com> X-Mailer: git-send-email 2.11.0 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 --- 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