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.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 35F47C433F5 for ; Fri, 3 Sep 2021 20:58:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 213E561107 for ; Fri, 3 Sep 2021 20:58:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346630AbhICU7v (ORCPT ); Fri, 3 Sep 2021 16:59:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:58748 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233315AbhICU7v (ORCPT ); Fri, 3 Sep 2021 16:59:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 868A4610FB; Fri, 3 Sep 2021 20:58:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1630702730; bh=KMJcZcDDR5JNoRsA4wztKeD2gZTnSb0J2TKfz+lpK8U=; h=Date:From:To:Subject:From; b=MOrGeaKvPQW2Izk3fOKMP2YpxXt2HigEbaTtCJUe66VT1hPDi40vKYW6IOb06DWjO Iz0xdulvzkXG8VSHDBAdW9xyeZcXonyz6A2gpbNA0KSbwDtsAuF/Ku2UWWQkLTYpkU R/KSBm/C1DOGNKFWz9TG41pUmNrg9ZfmmWgK6g48= Date: Fri, 03 Sep 2021 13:58:50 -0700 From: akpm@linux-foundation.org To: bhe@redhat.com, david@redhat.com, mhocko@suse.com, mm-commits@vger.kernel.org, ohoono.kwon@samsung.com, rppt@linux.ibm.com Subject: [merged] mm-sparse-remove-__section_nr-function.patch removed from -mm tree Message-ID: <20210903205850.AZifynW-9%akpm@linux-foundation.org> User-Agent: s-nail v14.8.16 Precedence: bulk Reply-To: linux-kernel@vger.kernel.org List-ID: X-Mailing-List: mm-commits@vger.kernel.org The patch titled Subject: mm: sparse: remove __section_nr() function has been removed from the -mm tree. Its filename was mm-sparse-remove-__section_nr-function.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Ohhoon Kwon Subject: mm: sparse: remove __section_nr() function As the last users of __section_nr() are gone, let's remove unused function __section_nr(). Link: https://lkml.kernel.org/r/20210707150212.855-4-ohoono.kwon@samsung.com Signed-off-by: Ohhoon Kwon Acked-by: Michal Hocko Acked-by: Mike Rapoport Reviewed-by: David Hildenbrand Cc: Baoquan He Signed-off-by: Andrew Morton --- include/linux/mmzone.h | 1 - mm/sparse.c | 26 -------------------------- 2 files changed, 27 deletions(-) --- a/include/linux/mmzone.h~mm-sparse-remove-__section_nr-function +++ a/include/linux/mmzone.h @@ -1342,7 +1342,6 @@ static inline struct mem_section *__nr_t return NULL; return &mem_section[SECTION_NR_TO_ROOT(nr)][nr & SECTION_ROOT_MASK]; } -extern unsigned long __section_nr(struct mem_section *ms); extern size_t mem_section_usage_size(void); /* --- a/mm/sparse.c~mm-sparse-remove-__section_nr-function +++ a/mm/sparse.c @@ -109,32 +109,6 @@ static inline int sparse_index_init(unsi } #endif -#ifdef CONFIG_SPARSEMEM_EXTREME -unsigned long __section_nr(struct mem_section *ms) -{ - unsigned long root_nr; - struct mem_section *root = NULL; - - for (root_nr = 0; root_nr < NR_SECTION_ROOTS; root_nr++) { - root = __nr_to_section(root_nr * SECTIONS_PER_ROOT); - if (!root) - continue; - - if ((ms >= root) && (ms < (root + SECTIONS_PER_ROOT))) - break; - } - - VM_BUG_ON(!root); - - return (root_nr * SECTIONS_PER_ROOT) + (ms - root); -} -#else -unsigned long __section_nr(struct mem_section *ms) -{ - return (unsigned long)(ms - mem_section[0]); -} -#endif - /* * During early boot, before section_mem_map is used for an actual * mem_map, we use section_mem_map to store the section's NUMA _ Patches currently in -mm which might be from ohoono.kwon@samsung.com are connector-send-event-on-write-to-proc-comm.patch