From patchwork Wed Jul 7 15:02:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?6raM7Jik7ZuI?= X-Patchwork-Id: 12362759 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CBB76C07E9B for ; Wed, 7 Jul 2021 15:05:45 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 69A7E61CC1 for ; Wed, 7 Jul 2021 15:05:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 69A7E61CC1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=samsung.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 02BD26B0036; Wed, 7 Jul 2021 11:05:45 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id F1DD76B005D; Wed, 7 Jul 2021 11:05:44 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D97FA6B006C; Wed, 7 Jul 2021 11:05:44 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0166.hostedemail.com [216.40.44.166]) by kanga.kvack.org (Postfix) with ESMTP id B99616B0036 for ; Wed, 7 Jul 2021 11:05:44 -0400 (EDT) Received: from smtpin22.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 265CC183CEECB for ; Wed, 7 Jul 2021 15:05:44 +0000 (UTC) X-FDA: 78336116208.22.50A0874 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by imf12.hostedemail.com (Postfix) with ESMTP id 4DFE710000AE for ; Wed, 7 Jul 2021 15:05:43 +0000 (UTC) Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20210707150540epoutp01b3e87fe0fb17de9075f6a8ceee4e2d5e~Pio-KCai-1928019280epoutp01j for ; Wed, 7 Jul 2021 15:05:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20210707150540epoutp01b3e87fe0fb17de9075f6a8ceee4e2d5e~Pio-KCai-1928019280epoutp01j DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1625670340; bh=rxH1MTE5iSPn2QTa9bm+8Dri4iIDisD9a+Baloy8n0Y=; h=From:To:Cc:Subject:Date:References:From; b=Jx5jYnhvzlu/09z/oPFZgnqwvyiTlKv+uELjGt0u/1hfVb8hlDHQW2BKZb8mI09Sp IL9kX+YmXwfXG/oeANzDKsUmSi8ozESvGGw0dqGdDJeT0YFrFxU3SAiyuvNu//cOLx s8s5H1BPnzlOCO/4xM+/LiCzWSaBXTDXWSGNaS8s= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20210707150540epcas1p2453c615b24ab4b83f969662815caebfa~Pio_wqbtj0474404744epcas1p2C; Wed, 7 Jul 2021 15:05:40 +0000 (GMT) Received: from epsmges1p4.samsung.com (unknown [182.195.40.161]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4GKjR716B2z4x9Pv; Wed, 7 Jul 2021 15:05:39 +0000 (GMT) Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p4.samsung.com (Symantec Messaging Gateway) with SMTP id E0.7E.10119.3C2C5E06; Thu, 8 Jul 2021 00:05:39 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p3.samsung.com (KnoxPortal) with ESMTPA id 20210707150538epcas1p35450f5b6058e2ea9e06446f10d9bf662~Pio9aO6n72211122111epcas1p3u; Wed, 7 Jul 2021 15:05:38 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20210707150538epsmtrp1409df9ee8784187de7d57717d984ca5b~Pio9Y5BES3041830418epsmtrp1h; Wed, 7 Jul 2021 15:05:38 +0000 (GMT) X-AuditID: b6c32a38-97bff70000002787-3a-60e5c2c3f1a8 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 2E.19.08289.2C2C5E06; Thu, 8 Jul 2021 00:05:38 +0900 (KST) Received: from localhost.localdomain (unknown [10.253.98.78]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20210707150538epsmtip296556ae74eb857e7101bf52a0e14aa74~Pio9MKvLp0536905369epsmtip2a; Wed, 7 Jul 2021 15:05:38 +0000 (GMT) From: Ohhoon Kwon To: david@redhat.com, ohoono.kwon@samsung.com, akpm@linux-foundation.org, mhocko@suse.com Cc: bhe@redhat.com, rppt@linux.ibm.com, ohkwon1043@gmail.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 0/3] mm: sparse: remove __section_nr() function Date: Thu, 8 Jul 2021 00:02:09 +0900 Message-Id: <20210707150212.855-1-ohoono.kwon@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrGKsWRmVeSWpSXmKPExsWy7bCmnu7hQ08TDFYcYrWYs34Nm8X5B7/Y LL6u/8VscXnXHDaLe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bf662 X-Msg-Generator: CA X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20210707150538epcas1p35450f5b6058e2ea9e06446f10d9bf662 References: X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 4DFE710000AE Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=samsung.com header.s=mail20170921 header.b=Jx5jYnhv; spf=pass (imf12.hostedemail.com: domain of ohoono.kwon@samsung.com designates 203.254.224.24 as permitted sender) smtp.mailfrom=ohoono.kwon@samsung.com; dmarc=pass (policy=none) header.from=samsung.com X-Stat-Signature: zamwyn165atcimdbdpe8thcfou6eh9c6 X-HE-Tag: 1625670343-890067 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: This series contains cleanups to remove __section_nr(). In contrast to v1, there were some modifications on commit messages In contrast to v2, [PATCH 1/3] has been updated to pass section_nr as well as mem_section, as Michal suggested. Also, I appended acked-by's and reviewed-by's from the initial mailing list for convenience. Ohhoon Kwon (3): mm: sparse: pass section_nr to section_mark_present mm: sparse: pass section_nr to find_memory_block mm: sparse: remove __section_nr() function .../platforms/pseries/hotplug-memory.c | 4 +-- drivers/base/memory.c | 4 +-- include/linux/memory.h | 2 +- include/linux/mmzone.h | 1 - mm/sparse.c | 35 +++---------------- 5 files changed, 8 insertions(+), 38 deletions(-)