From patchwork Tue Mar 22 21:41:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 12789103 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 6CF08C433F5 for ; Tue, 22 Mar 2022 21:41:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 00D756B0074; Tue, 22 Mar 2022 17:41:53 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EB1096B00A2; Tue, 22 Mar 2022 17:41:52 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CB56B6B00A3; Tue, 22 Mar 2022 17:41:52 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0147.hostedemail.com [216.40.44.147]) by kanga.kvack.org (Postfix) with ESMTP id AAD5A6B00A1 for ; Tue, 22 Mar 2022 17:41:52 -0400 (EDT) Received: from smtpin16.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 709358249980 for ; Tue, 22 Mar 2022 21:41:52 +0000 (UTC) X-FDA: 79273344864.16.386597B Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf30.hostedemail.com (Postfix) with ESMTP id AD94E8001F for ; Tue, 22 Mar 2022 21:41:51 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 242DF60A14; Tue, 22 Mar 2022 21:41:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DBF46C340F2; Tue, 22 Mar 2022 21:41:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1647985311; bh=9VpQhWU+v6rIebMhpj+1pe+IbKQ0Me39rlEhhcxuX5U=; h=Date:To:From:In-Reply-To:Subject:From; b=bYG1f6ZhH7QkZ9uuSR3upcqXx2Gm+r7YZKc7VGfmRTLTGPAdXfOzRgzfeL3fAtHQQ h2Ui0atfVkAL+Ha3UMLAM2nXVfxxAMNkbWxWr4kB+M53zozg5uitaiLgnAGPJEODO/ DBopNoFVHgQKFFFl6I4fX8MWb8cCnj18EGzbDF1s= Date: Tue, 22 Mar 2022 14:41:50 -0700 To: wangkefeng.wang@huawei.com,stefan.kristiansson@saunalahti.fi,rppt@linux.ibm.com,rmk+kernel@armlinux.org.uk,nickhu@andestech.com,jonas@southpole.se,green.hu@gmail.com,deanbo422@gmail.com,david@redhat.com,dave.hansen@linux.intel.com,christophe.leroy@c-s.fr,bcain@codeaurora.org,shorne@gmail.com,akpm@linux-foundation.org,patches@lists.linux.dev,linux-mm@kvack.org,mm-commits@vger.kernel.org,torvalds@linux-foundation.org,akpm@linux-foundation.org From: Andrew Morton In-Reply-To: <20220322143803.04a5e59a07e48284f196a2f9@linux-foundation.org> Subject: [patch 065/227] mm: remove mmu_gathers storage from remaining architectures Message-Id: <20220322214150.DBF46C340F2@smtp.kernel.org> X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: AD94E8001F X-Stat-Signature: 7gy3mc9919a5bb3a1s5ydjdny6x1p4ny X-Rspam-User: Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=bYG1f6Zh; dmarc=none; spf=pass (imf30.hostedemail.com: domain of akpm@linux-foundation.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org X-HE-Tag: 1647985311-140807 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: From: Stafford Horne Subject: mm: remove mmu_gathers storage from remaining architectures Originally the mmu_gathers were removed in commit 1c3951769621 ("mm: now that all old mmu_gather code is gone, remove the storage"). However, the openrisc and hexagon architecture were merged around the same time and mmu_gathers was not removed. This patch removes them from openrisc, hexagon and nds32: Noticed while cleaning this warning: arch/openrisc/mm/init.c:41:1: warning: symbol 'mmu_gathers' was not declared. Should it be static? Link: https://lkml.kernel.org/r/20220205141956.3315419-1-shorne@gmail.com Signed-off-by: Stafford Horne Acked-by: Mike Rapoport Cc: Brian Cain Cc: Nick Hu Cc: Greentime Hu Cc: Vincent Chen Cc: Jonas Bonn Cc: Stefan Kristiansson Cc: Russell King Cc: David Hildenbrand Cc: Dave Hansen Cc: Kefeng Wang Cc: Christophe Leroy Signed-off-by: Andrew Morton --- arch/hexagon/mm/init.c | 2 -- arch/nds32/mm/init.c | 1 - arch/openrisc/mm/init.c | 2 -- 3 files changed, 5 deletions(-) --- a/arch/hexagon/mm/init.c~mm-remove-mmu_gathers-storage-from-remaining-architectures +++ a/arch/hexagon/mm/init.c @@ -29,8 +29,6 @@ int max_kernel_seg = 0x303; /* indicate pfn's of high memory */ unsigned long highstart_pfn, highend_pfn; -DEFINE_PER_CPU(struct mmu_gather, mmu_gathers); - /* Default cache attribute for newly created page tables */ unsigned long _dflt_cache_att = CACHEDEF; --- a/arch/nds32/mm/init.c~mm-remove-mmu_gathers-storage-from-remaining-architectures +++ a/arch/nds32/mm/init.c @@ -18,7 +18,6 @@ #include #include -DEFINE_PER_CPU(struct mmu_gather, mmu_gathers); DEFINE_SPINLOCK(anon_alias_lock); extern pgd_t swapper_pg_dir[PTRS_PER_PGD]; --- a/arch/openrisc/mm/init.c~mm-remove-mmu_gathers-storage-from-remaining-architectures +++ a/arch/openrisc/mm/init.c @@ -38,8 +38,6 @@ int mem_init_done; -DEFINE_PER_CPU(struct mmu_gather, mmu_gathers); - static void __init zone_sizes_init(void) { unsigned long max_zone_pfn[MAX_NR_ZONES] = { 0 };