From patchwork Thu Oct 12 02:48:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rongwei Wang X-Patchwork-Id: 13418182 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 5F93FCDB482 for ; Thu, 12 Oct 2023 02:49:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E22418D0105; Wed, 11 Oct 2023 22:48:57 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D7F218D0002; Wed, 11 Oct 2023 22:48:57 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B35458D0105; Wed, 11 Oct 2023 22:48:57 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id A42C18D0002 for ; Wed, 11 Oct 2023 22:48:57 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 69C2FA0360 for ; Thu, 12 Oct 2023 02:48:56 +0000 (UTC) X-FDA: 81335277072.22.E37863E Received: from out30-99.freemail.mail.aliyun.com (out30-99.freemail.mail.aliyun.com [115.124.30.99]) by imf07.hostedemail.com (Postfix) with ESMTP id 7C7EF40003 for ; Thu, 12 Oct 2023 02:48:54 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=alibaba.com; spf=pass (imf07.hostedemail.com: domain of rongwei.wang@linux.alibaba.com designates 115.124.30.99 as permitted sender) smtp.mailfrom=rongwei.wang@linux.alibaba.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1697078935; a=rsa-sha256; cv=none; b=BJcbBf+jrz6sKSUBEBxCTGSwCzAbwf1xgtaBFf3S3MkivdxqXIArCLVHonreH1ps0fHBhM nDPnzg2kcPrcTqN31+83CA6G7m85+biSP7zMcvWV2Q3N7JNYzp7qc4tQ8lVy67Y3tM8cW+ cuBaU9H0wi1m8rET/NLmr2hdCZLq0/Y= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=alibaba.com; spf=pass (imf07.hostedemail.com: domain of rongwei.wang@linux.alibaba.com designates 115.124.30.99 as permitted sender) smtp.mailfrom=rongwei.wang@linux.alibaba.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1697078935; 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-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JUVnUsb26mlDDBqIiN1AvBz7w4jH9SeFH++N8Ys38o0=; b=lj/smOD4Xp01prcvHmBvmf3z+ECkc5CLMPu2yKx+xTZiEgxLZe2bh3xkHnL0QwoyVb2dO0 p1oyajUlVprcaBCvQC/+L0zYYwQ8FqoVj+O6+uBy89htIxuEtv2EbkRMrRnmVGil9XxO5B 1hJKggCEC/jnXDIzkykWcdkA10dvVSc= X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R561e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046049;MF=rongwei.wang@linux.alibaba.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---0VtykMgi_1697078930; Received: from localhost.localdomain(mailfrom:rongwei.wang@linux.alibaba.com fp:SMTPD_---0VtykMgi_1697078930) by smtp.aliyun-inc.com; Thu, 12 Oct 2023 10:48:51 +0800 From: Rongwei Wang To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: akpm@linux-foundation.org, willy@infradead.org, catalin.marinas@arm.com, dave.hansen@linux.intel.com, tj@kernel.org, mingo@redhat.com Subject: [PATCH RFC 3/5] arch_numa: remove __init in early_cpu_to_node() Date: Thu, 12 Oct 2023 10:48:40 +0800 Message-Id: <20231012024842.99703-4-rongwei.wang@linux.alibaba.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20231012024842.99703-1-rongwei.wang@linux.alibaba.com> References: <20231012024842.99703-1-rongwei.wang@linux.alibaba.com> MIME-Version: 1.0 X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 7C7EF40003 X-Stat-Signature: ctqswy51ytbmyuzu7t3tixh7wbiep3t8 X-Rspam-User: X-HE-Tag: 1697078934-590831 X-HE-Meta: U2FsdGVkX19GuZ3c9ePxkNmgQtG3MarQ74/nlOqEc+mggStUcjo25p+xdw2wkbGh6BPgsdq52GjbEdQ13ea5n1WlFqVLBijz9zpwYo2LYKg5IzR6/Dq31BmzxDcBtprJ3Qvrqbxk84k0l9c5SLd4HvKiktIhWEIFUuyxcUc5Z4eLfeLySkEd668XvDdn6pJldcjy2l19NDZI0WztYCYI0A4zXZmqJDIoj6SkkXRYyarnl2opd014Z06EQ2pORIXeo8smum4uXDHIiWRk/IFgpRmni5qC/QwgWpVbGlBL+TLD5uMpi4W+C0GXCrhkXT7u9cmL7xAbEH33ObthDXefk+wywyCCR3F2XgpaIdvty6QSMiwlCl7xjciNKktDctDYQBpX3Y0+Yo8bGPDBAiHIw/47kwDuvgZ4wHlQHLUyACWq6p/qrlY3Z4p8gzPIyap1qpOGD83eBb4mjpEYtgCLe46R/cMOaIr+eU1XURjDHPltosg0PiUGyYNmsS/y+5m/sNGyQIoKxzMZi+b3OvY6lzuM38xIHsWehawc/QZKug97Ei58NS+qDYd0B5v8AC+NAyf3l9m0KjUfOevHAHxDeA4crrW3gA5NyQbYUHNsjXAUCweYOlBtP8/WCdWE8wrCIf7GDLBvifHmKOfDUfsKWjfHUTb+5/P64aI6xVc6RhmnXpPAdyJ+brAJMwrBH8+iwPhIMRq9rf0N9iA7D9t32N5RdoRjR7CNlOLfLF5ec8FJJnlvdzRUeB9RpGmPCFzNMI6kjCJ9wugjJ3JyEoZ89QD6w1Y5CPvldX1BEkFHEVx6E7ROBRdmZrZuuogp4fPxlvlotGl1a9WK9hm66yHwvuSScyFkyyZ0i7rQ2CdJVnxRsYXrt+puMcs7gahe++QxhlaPMxsUE+2e9Kwk11H5uq+DHd9j+uTaqZM6kdBitgRe5h5OYGwd2xeUTGDi2cPQLqD+hvuEHOdrIQpHG3P EGXN6QaB mJXsW3954EzByGaaE6rwI0VC1+tklK/1k9KSf039CmJHoIF+RAVgdkqgR86iPxYPCDjFVY+PRG0MHmIek1v1T5WZjw5viTw9UYdnUuVA9GeXoc/IHP+YDipf70pguS4rP9U1v 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: Most of arch does not stick '__init' for early_cpu_to_node(). And it's safe to delete this attribute here, ready for later numa emulation. Signed-off-by: Rongwei Wang --- drivers/base/arch_numa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/arch_numa.c b/drivers/base/arch_numa.c index db0bb8b8fd67..5df0ad5cb09d 100644 --- a/drivers/base/arch_numa.c +++ b/drivers/base/arch_numa.c @@ -144,7 +144,7 @@ void __init early_map_cpu_to_node(unsigned int cpu, int nid) unsigned long __per_cpu_offset[NR_CPUS] __read_mostly; EXPORT_SYMBOL(__per_cpu_offset); -static int __init early_cpu_to_node(unsigned int cpu) +int early_cpu_to_node(unsigned int cpu) { return cpu_to_node_map[cpu]; }