Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1776776imn; Sun, 31 Jul 2022 22:37:35 -0700 (PDT) X-Google-Smtp-Source: AGRyM1st5om1iN3J4uSWnJvf452OKl/4bt/gPtyHMi/rE+z8C1qFoCNPBD9tuWa0pvb/P/5PIzCf X-Received: by 2002:a05:6402:538a:b0:43a:298e:bc2b with SMTP id ew10-20020a056402538a00b0043a298ebc2bmr13865338edb.125.1659332254985; Sun, 31 Jul 2022 22:37:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659332254; cv=none; d=google.com; s=arc-20160816; b=xwWZE4sAU2NszaoQLGNFZlrakTaPePr3DEgvSOrHsL8w28CYnzoaIz+NyFUcM9LMF7 lypDRkm636pLPT+OrY4x85n0+PwTZOlMZBeRD6tyB7VRNA/hivXiiwtAsAc1eVG6pRwx jpHXjgQM4hYwYWvG8y9qwbVSgr4WCyTNxxqiPdIpJ7YSsc8Qz6gFfItWLNXJmgMTRo4N Hqoflj71wUbMXE0wzfNDa5izPnlYoEeEjiHno0ONBx3BFagInV1gH3cfysBRhuMJUmUz jxKALgZajaFgjXmAmkK2D4j4XrCJucZQBWzKd43rl82e5mLbcHeW+PoiuQI+6zWAFQdV kscA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=fnJA2N4BlsQJQig0zFxKAUGxel99425sq0Qw9NnY5No=; b=VgeEJJTdlWz8v8hrCqdXDZOU+zaWGNJUYiW3qY/rAloBXRvwUmlKQtwqZgH+G7jadp Fv7QTKkSFFEK10tlo8KfH+LvgNLN2kztCzktL7ALd38fTH7xl4ZPlNGj88mnSSI2GatB sBxVHXT2ZyR40JnmJzU82we7vRbrL0b5hjXbZRU9KLegbTO4xGXNdtrgiHNizQmwD6ly kbcGZFbOEa1tFMmFARWrSNNj0YFiY17XttkYvwUIPcAco2Phl7RtWiY+tEEYdEMV50aP JJZcFxEQJvv9IQ517L1lKhkpy/5OG7jQwQzIcnaqQMQ/a7B1e2eBNylHOYk67EuNsc7/ HypA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=F8pBeZAA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q20-20020a056402519400b0043bfc0d9edesi9340966edd.19.2022.07.31.22.37.09; Sun, 31 Jul 2022 22:37:34 -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; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=F8pBeZAA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239307AbiHAF25 (ORCPT + 99 others); Mon, 1 Aug 2022 01:28:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229681AbiHAF24 (ORCPT ); Mon, 1 Aug 2022 01:28:56 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F4196DF71 for ; Sun, 31 Jul 2022 22:28:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1659331735; x=1690867735; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=fnJA2N4BlsQJQig0zFxKAUGxel99425sq0Qw9NnY5No=; b=F8pBeZAAq55Ou3qa3nCCpJ5GvZ+vTieEeCHPk3cXgSpajrWYLKTjlTGe 1t/ojYFVcyyaZEQC/7YWDBBKcY7XjbTVLTPWKn9hpSySPFsKAq9NY0Ywi BIKI74okNOZSTCEgYhd5DW5GIXFIE3NX8A1JJH9JC0WBfhsr2v1oK2e2W c=; Received: from unknown (HELO ironmsg-SD-alpha.qualcomm.com) ([10.53.140.30]) by alexa-out-sd-02.qualcomm.com with ESMTP; 31 Jul 2022 22:28:55 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg-SD-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jul 2022 22:28:55 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Sun, 31 Jul 2022 22:28:55 -0700 Received: from hu-pkondeti-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Sun, 31 Jul 2022 22:28:52 -0700 Date: Mon, 1 Aug 2022 10:58:48 +0530 From: Pavan Kondeti To: Charan Teja Kalla CC: , , , , , Subject: Re: [PATCH] mm/page_ext: remove unused variable in offline_page_ext Message-ID: <20220801052848.GB18790@hu-pkondeti-hyd.qualcomm.com> References: <1659330397-11817-1-git-send-email-quic_charante@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1659330397-11817-1-git-send-email-quic_charante@quicinc.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham 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 On Mon, Aug 01, 2022 at 10:36:37AM +0530, Charan Teja Kalla wrote: > Remove unused variable 'nid' in offline_page_ext(). This is not used > since the page_ext code inception. > Just to be clear, should we say "drop nid argument from offline_page_exit"? With this change the symmetry between "online_page_exit" and "offline_page_exit" is lost. But that is not a valid point to keep an unused argument. > Signed-off-by: Charan Teja Kalla > --- > mm/page_ext.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/mm/page_ext.c b/mm/page_ext.c > index 3dc715d..e22a928 100644 > --- a/mm/page_ext.c > +++ b/mm/page_ext.c > @@ -336,7 +336,7 @@ static int __meminit online_page_ext(unsigned long start_pfn, > } > > static int __meminit offline_page_ext(unsigned long start_pfn, > - unsigned long nr_pages, int nid) > + unsigned long nr_pages) > { > unsigned long start, end, pfn; > > @@ -362,11 +362,11 @@ static int __meminit page_ext_callback(struct notifier_block *self, > break; > case MEM_OFFLINE: > offline_page_ext(mn->start_pfn, > - mn->nr_pages, mn->status_change_nid); > + mn->nr_pages); > break; > case MEM_CANCEL_ONLINE: > offline_page_ext(mn->start_pfn, > - mn->nr_pages, mn->status_change_nid); > + mn->nr_pages); > break; > case MEM_GOING_OFFLINE: > break; Looks good to me. Thanks, Pavan