From patchwork Mon Aug 1 05:06:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Charan Teja Kalla X-Patchwork-Id: 12933385 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id CA74DC00144 for ; Mon, 1 Aug 2022 05:07:19 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3BB008E0002; Mon, 1 Aug 2022 01:07:19 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 36A908E0001; Mon, 1 Aug 2022 01:07:19 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 25A8F8E0002; Mon, 1 Aug 2022 01:07:19 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 185428E0001 for ; Mon, 1 Aug 2022 01:07:19 -0400 (EDT) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id DB96916073E for ; Mon, 1 Aug 2022 05:07:18 +0000 (UTC) X-FDA: 79749840156.27.29D9838 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by imf16.hostedemail.com (Postfix) with ESMTP id 2C16518005D for ; Mon, 1 Aug 2022 05:07:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1659330438; x=1690866438; h=from:to:cc:subject:date:message-id:mime-version; bh=14Ig8KLA7feC588WTqgFQGrGr9rDvdUlqzY+TRRFf4A=; b=tym+j+hnlHB53lkyndeDCKJ12ap7kbxf2s67h+OsnQVNKRqaSAkoh6fG MXr2NNS4KN/WMcvj7qyIt6NdihPYTGmsLk5YrbbjHNIpIS0sD6arxtrba BN2pt4PKzDiqxUpCvn/3HlGracBTnA277Zrlw5ggCOznc38u1ty5RzN6Y Q=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-02.qualcomm.com with ESMTP; 31 Jul 2022 22:07:16 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg01-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jul 2022 22:07:16 -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:07:16 -0700 Received: from hu-charante-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:07:13 -0700 From: Charan Teja Kalla To: , , , CC: , , Charan Teja Kalla Subject: [PATCH] mm/page_ext: remove unused variable in offline_page_ext Date: Mon, 1 Aug 2022 10:36:37 +0530 Message-ID: <1659330397-11817-1-git-send-email-quic_charante@quicinc.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 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) ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcdkim header.b=tym+j+hn; spf=pass (imf16.hostedemail.com: domain of quic_charante@quicinc.com designates 199.106.114.39 as permitted sender) smtp.mailfrom=quic_charante@quicinc.com; dmarc=pass (policy=none) header.from=quicinc.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1659330438; a=rsa-sha256; cv=none; b=fHkGCwKb/LyiEbk+NJHj08PrH55relRwuQUn7BOzos+q9FEAV6vvfVXVxINKeoCq8wUDva fY68Y/tPM1zXe3moMivLRcAJ6Nr+Y7BezyDgPBLnyJZxk495CpBkcAhBD94zERMKIjUccX n0LRPPRQjE02QRiLfo6VDMv9wd8KR34= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1659330438; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=14Ig8KLA7feC588WTqgFQGrGr9rDvdUlqzY+TRRFf4A=; b=pk0yQCMGDM1glRT8k2h1IOsXe9fNXFv3QYYC9iyo5Bas8sP1/Qci7yB1Prz/ikXlSpFvKK GRdyGFyBtfBL0aZTVQuGVTWHRrOFKDCHQDxAaPptp1DQL4h8zZvQL0pLNC9WMlx+e+4ZTk 6slJoJppZDuetdweHfGGAe94mpTO5+c= X-Stat-Signature: z9g95obomx3xk8ibjz5dysmykse53fdm X-Rspamd-Queue-Id: 2C16518005D X-Rspam-User: Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcdkim header.b=tym+j+hn; spf=pass (imf16.hostedemail.com: domain of quic_charante@quicinc.com designates 199.106.114.39 as permitted sender) smtp.mailfrom=quic_charante@quicinc.com; dmarc=pass (policy=none) header.from=quicinc.com X-Rspamd-Server: rspam04 X-HE-Tag: 1659330437-283297 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000001, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Remove unused variable 'nid' in offline_page_ext(). This is not used since the page_ext code inception. Signed-off-by: Charan Teja Kalla Acked-by: Michal Hocko Reviewed-by: Anshuman Khandual --- 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;