Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp447872rdb; Thu, 30 Nov 2023 08:48:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IHrjyilMZbcxYiUkY9RhoktK/SaW6GFXk8EdiZG+lWQ9OwzXSB/WyGLgsYJxaWVBcrTrqfC X-Received: by 2002:a17:90b:4b4b:b0:285:b784:75d9 with SMTP id mi11-20020a17090b4b4b00b00285b78475d9mr18570128pjb.12.1701362916285; Thu, 30 Nov 2023 08:48:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701362916; cv=none; d=google.com; s=arc-20160816; b=w8NJ5sP8D1yAXvd9CBhfMdGWe3DRg2J4XYgYk0Kh32XFUungLZYRQxnINKuiTKHVOl b/eNGKni5omYZSJbSQuSmQZNt9f4lXG6W++ylf0uC/EYnANJXY1wmt+D2MqnHuNDk74q 10v5TvTnIzjMUp/ACPcHWOkUGG6lQplFAnf2eUIU0i3L3xp1AqPxMj7Oeb4Ij/sRcr/T ZoPwhnikkRdqJy7tDzakKxx84cB4MnF/K+qXpx9+D2smo5VQeW41Xmtgrj9n1RSNuVYH K3fHV4NkDHOVprOIbMmiBbGuPVQadpKhscCmY6hYHOLlG3e5VGEDXwNbaJfiZP7w2gwa pyvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=glv9bxzImENmg2jXmYLpWklijQCUedGKcqkP8oN94Pw=; fh=mJExhMkGktZaGEHdxvhr+l5Ivzqq5EXbmVnDycn3X+g=; b=izbV2ptHifkXSOlHfFVG9HzBRj4oKdwEIutOAgPdTTwteWY9LZhImiz14B0PL5L34l qYMRNbRaY4hdzIMBLV2/S40lOXh/07uDN7U/FG5mJGFzBBYrfx72VM5xzjm8qA4GhFY6 3NrYooFexBaMXoH7LXnGu0rZQIGCxS31fcGjuTrtjBpE//E6niCw+DD7QjXfcLPrqZ/z Fz11lH+P7CK+ITZtp7ojOfQHhX5D8n1pme6uVX2TGmERIArZnn0vrMnkV83opvpdT/85 VZxKjkJ7kCUi/rRjgF0PPRZTs1RA4Zs7NBGRLXVlrt6OYJ5EAPEogVHcK9ZtuMU6gZjz jilg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id c6-20020a170902c1c600b001cffe392e7dsi1450493plc.329.2023.11.30.08.48.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 08:48:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id C880084E98A6; Thu, 30 Nov 2023 08:48:33 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345646AbjK3QsT (ORCPT + 99 others); Thu, 30 Nov 2023 11:48:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231796AbjK3QsS (ORCPT ); Thu, 30 Nov 2023 11:48:18 -0500 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FA1D10DB; Thu, 30 Nov 2023 08:48:24 -0800 (PST) Received: from mail.maildlp.com (unknown [172.18.186.216]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Sh2CS2XSVz6K8vh; Fri, 1 Dec 2023 00:46:44 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 045821402CD; Fri, 1 Dec 2023 00:48:21 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 30 Nov 2023 16:48:20 +0000 Date: Thu, 30 Nov 2023 16:48:19 +0000 From: Jonathan Cameron To: "Russell King (Oracle)" CC: , , , , , , , , , , , , , Salil Mehta , Jean-Philippe Brucker , , , James Morse , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" Subject: Re: [PATCH 03/21] x86/topology: remove arch_*register_cpu() exports Message-ID: <20231130164819.00002f75@Huawei.com> In-Reply-To: References: Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.227.76] X-ClientProxiedBy: lhrpeml100005.china.huawei.com (7.191.160.25) To lhrpeml500005.china.huawei.com (7.191.163.240) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 30 Nov 2023 08:48:34 -0800 (PST) On Tue, 21 Nov 2023 13:44:05 +0000 "Russell King (Oracle)" 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 > Signed-off-by: Russell King (Oracle) 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 > --- > 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)