Message ID | E1r5R2r-00Csyh-7B@rmk-PC.armlinux.org.uk |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2b07:b0:403:3b70:6f57 with SMTP id io7csp628797vqb; Tue, 21 Nov 2023 05:44:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IEWfZUEYradS+l+Y+GB3waaHcXfaCSId7L8FbA0FLZR7WnE5hYpZw/4HNWL65jU/3L3LIsX X-Received: by 2002:a05:6808:128d:b0:3a1:e17a:b3fb with SMTP id a13-20020a056808128d00b003a1e17ab3fbmr16240357oiw.1.1700574272303; Tue, 21 Nov 2023 05:44:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700574272; cv=none; d=google.com; s=arc-20160816; b=j1Nbwip8K7Ng4wfNREtHAprGYLdiDMVhPzbpSMWu9yo2yRDTJRFQmQwJfRqWVZfdqB nTxnNFDqCJQmI1Im8XzxSr68bcVigQRhMo5TNivLEsIMlJWBZTAXHKmlBFO5NpH1+lQ+ BbDVSGgk5OoiVDXexClYLEThWyJWv/XrxdQ4grnlrM2GI5PYjrDK73Oilaj3PB3n3hiZ 7KpuED4fthY4yUYmfc4oXTa7jkHQQXi3edOkH4i1Ng2AKugxSOn2izb27FPBCjDEa6P9 tTeVGKzqHi2h4qJeBt73qei9hQc4TQmXrK4huXChgwB2/IGfmRyL8zbAgCdhHNc8+hxu dCPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:sender:message-id:content-transfer-encoding :content-disposition:mime-version:subject:cc:to:from:references :in-reply-to:dkim-signature; bh=ZzP1tPG+FultdpQZhQFIn0rIgoalndyB/3IndbQTgGg=; fh=pBRrH9R0jn/tw414lsKbebjvUFyOrcd69gD7eKz3EjE=; b=z8Xm8jvq2RKI7/D4Iu7kpMiY1CVRV4BKjYAKxpgjdsN5ZLoJAxfSMhiI5Oe2B5Q/kS tdC2B+XLlivBPzRHChvZBmLHrFkbX9pINCOOUnFJ0G+a3xKVvDBW8k1+nMz55nsONkGO 6VjYW/bO6dKGzmv7XZZWdTUT62wBnO9Lq4JPTunqMP0GaHnCBT3v8VvnQLpTkCHuuGSI bafVzBxKC4oyQp6FkL/jDigQl467YNR7tQn/o3Z50WwmKXrtF0VS2JDnZQ0NOs2AI2fR QhJp++Dnm6mAwDNw0e3QzR56QnZEpP4YtUl6V+489QWDk6lgyh7pKX/nxTV5qNJnJO32 WEgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=wGu2HH7l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id i64-20020a639d43000000b005c1cc7273bcsi10598175pgd.731.2023.11.21.05.44.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 05:44:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=wGu2HH7l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 2CF3D8129AEC; Tue, 21 Nov 2023 05:44:30 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234357AbjKUNo1 (ORCPT <rfc822;ouuuleilei@gmail.com> + 99 others); Tue, 21 Nov 2023 08:44:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234346AbjKUNoW (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 21 Nov 2023 08:44:22 -0500 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2604810E6; Tue, 21 Nov 2023 05:44:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Date:Sender:Message-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:Subject:Cc:To:From:References: In-Reply-To:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ZzP1tPG+FultdpQZhQFIn0rIgoalndyB/3IndbQTgGg=; b=wGu2HH7lFk3SgutB7pSc6XZDn9 //kXtGzYa6xPGjbiDm5vkLK/JI3sYBVMtevJADS8BsBzRjqTeOmRMUE/XrkQaSaCZVFKJJxDkfEB7 ZDaa6DT09/vOcOx02PnzdeMyrF2UhGnvnd+bZ5FWqzdqvp8ZDUjqSh0Dnrex68xruoRhGDdTLwNYZ QrpUJuMJ4dne7RgfMOmbCEYTZNnoo8o/hgT+0rPw6vmO1Deiz4uCNpZZVVBr4J2i3hDdzCrCcqy0W Fs03q2d1EAJO1CK8iU0tTCz/aYs+mdZSavJT2r3CWwY2WCAMMbR5htMH1C/LnCCgUfSrRYLygh4LW UVjqMiWw==; Received: from e0022681537dd.dyn.armlinux.org.uk ([fd8f:7570:feb6:1:222:68ff:fe15:37dd]:33888 helo=rmk-PC.armlinux.org.uk) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from <rmk@armlinux.org.uk>) id 1r5R2p-00076W-17; Tue, 21 Nov 2023 13:44:03 +0000 Received: from rmk by rmk-PC.armlinux.org.uk with local (Exim 4.94.2) (envelope-from <rmk@rmk-PC.armlinux.org.uk>) id 1r5R2r-00Csyh-7B; Tue, 21 Nov 2023 13:44:05 +0000 In-Reply-To: <ZVyz/Ve5pPu8AWoA@shell.armlinux.org.uk> References: <ZVyz/Ve5pPu8AWoA@shell.armlinux.org.uk> From: "Russell King (Oracle)" <rmk+kernel@armlinux.org.uk> To: linux-pm@vger.kernel.org, loongarch@lists.linux.dev, linux-acpi@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, kvmarm@lists.linux.dev, x86@kernel.org, linux-csky@vger.kernel.org, linux-doc@vger.kernel.org, linux-ia64@vger.kernel.org, linux-parisc@vger.kernel.org Cc: Salil Mehta <salil.mehta@huawei.com>, Jean-Philippe Brucker <jean-philippe@linaro.org>, jianyong.wu@arm.com, justin.he@arm.com, James Morse <james.morse@arm.com>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>, Dave Hansen <dave.hansen@linux.intel.com>, "H. Peter Anvin" <hpa@zytor.com> Subject: [PATCH 03/21] x86/topology: remove arch_*register_cpu() exports MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" Message-Id: <E1r5R2r-00Csyh-7B@rmk-PC.armlinux.org.uk> Sender: Russell King <rmk@armlinux.org.uk> Date: Tue, 21 Nov 2023 13:44:05 +0000 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 21 Nov 2023 05:44:30 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783181367959101398 X-GMAIL-MSGID: 1783181367959101398 |
Series |
Initial cleanups for vCPU hotplug
|
|
Commit Message
Russell King (Oracle)
Nov. 21, 2023, 1:44 p.m. UTC
arch_register_cpu() and arch_unregister_cpu() are not used by anything that can be a module - they are used by drivers/base/cpu.c and drivers/acpi/acpi_processor.c, neither of which can be a module. Remove the exports. Reviewed-by: Gavin Shan <gshan@redhat.com> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> --- arch/x86/kernel/topology.c | 2 -- 1 file changed, 2 deletions(-)
Comments
On Tue, 21 Nov 2023 13:44:05 +0000 "Russell King (Oracle)" <rmk+kernel@armlinux.org.uk> wrote: > arch_register_cpu() and arch_unregister_cpu() are not used by anything > that can be a module - they are used by drivers/base/cpu.c and > drivers/acpi/acpi_processor.c, neither of which can be a module. > > Remove the exports. > > Reviewed-by: Gavin Shan <gshan@redhat.com> > Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> I somehow ended up replying to the RFC even though you'd posted this. On basis this might get picked up directly from this posting. Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> > --- > arch/x86/kernel/topology.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/arch/x86/kernel/topology.c b/arch/x86/kernel/topology.c > index 0bab03130033..fcb62cfdf946 100644 > --- a/arch/x86/kernel/topology.c > +++ b/arch/x86/kernel/topology.c > @@ -45,13 +45,11 @@ int arch_register_cpu(int cpu) > xc->cpu.hotpluggable = cpu > 0; > return register_cpu(&xc->cpu, cpu); > } > -EXPORT_SYMBOL(arch_register_cpu); > > void arch_unregister_cpu(int num) > { > unregister_cpu(&per_cpu(cpu_devices, num).cpu); > } > -EXPORT_SYMBOL(arch_unregister_cpu); > #else /* CONFIG_HOTPLUG_CPU */ > > int __init arch_register_cpu(int num)
diff --git a/arch/x86/kernel/topology.c b/arch/x86/kernel/topology.c index 0bab03130033..fcb62cfdf946 100644 --- a/arch/x86/kernel/topology.c +++ b/arch/x86/kernel/topology.c @@ -45,13 +45,11 @@ int arch_register_cpu(int cpu) xc->cpu.hotpluggable = cpu > 0; return register_cpu(&xc->cpu, cpu); } -EXPORT_SYMBOL(arch_register_cpu); void arch_unregister_cpu(int num) { unregister_cpu(&per_cpu(cpu_devices, num).cpu); } -EXPORT_SYMBOL(arch_unregister_cpu); #else /* CONFIG_HOTPLUG_CPU */ int __init arch_register_cpu(int num)