Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1534113rdh; Mon, 25 Sep 2023 16:20:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFiBVU/h3duaHh83SGtzbuSFF1PMT3ZpvlCz4YqjHCuxY97eTZhJykIyeqA+BFING3cYG9B X-Received: by 2002:a17:902:e548:b0:1c5:de2d:6e6f with SMTP id n8-20020a170902e54800b001c5de2d6e6fmr6719748plf.47.1695684006747; Mon, 25 Sep 2023 16:20:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695684006; cv=none; d=google.com; s=arc-20160816; b=ys2y4uhPzkyvvqy56N0j9HfX/J8i7c98zXqko3GFRUHjLP4yObcWb6nBAtCHl7QMDg xtzeyEAA7cKTa4EYdlRpqFCyCuwHekuhG6D2pfJ2xVl+7rRx22902BaPOh0GBaXwnCH9 szONokdetHP5ppfNs4ZI0uXrXI3RgZvaHHzzfWdpkyczeAkZEkQ8rBtisHJHwxtrsc1w 0YRa/t0DyBYERTVDhav+DKrErDHBzBgL2xYKuP++y3McM7hpruftA+AiOnCSWGGNBZ/4 5huFF6vpx+IuyMp6iBHJSGlcBM+nfaBk7KgtBBHiPfrAiFlBVfBiXWN4Rc2eH4P5YoxA myxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=lK9wsOQ0X+liH8Gj+buTBXV/sF1bkg6KdP4DvULH538=; fh=P1Fdok3ejhI8bWarwswCDQEPJ2D+bPY5kwYNi4npgWs=; b=zRibtVU9+IL2xuDO+CuTJRfnmpdZ7KZMugfqOANGmJTZGY7SOdNZOy+Ni/izCEubtU JGhu8crZJAaKIG4zMIa4ntIuX/k90+Xq/8zihX34x+2sEOWmmS+dyIrmUVpdR8EjPwQF ekL8WLPBVyDc51nSiXYdwSDDw0yV49dIHmYRqqC3fJawDDoRFAmQHPCwK0+MF3SgjL9J Uze8ceNfv9Kg2CWnX26VVWz69X70TLXX9e4rqjBVh290EaOFc2omzsyYiQyUfhNP/mmV irc/b4iZjbwonWWOxcY7WXhD1ciU5KYWNjMf1i3P3PInd+wms6KuE+HXhNpIaS/YJaNV xlkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="zxMH/KaH"; 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=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id x18-20020a170902ec9200b001b7ea20dbf2si11766106plg.224.2023.09.25.16.20.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 16:20:06 -0700 (PDT) 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; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="zxMH/KaH"; 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=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 howler.vger.email (Postfix) with ESMTP id 63F238330EA8; Mon, 25 Sep 2023 16:17:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233482AbjIYXRh (ORCPT + 99 others); Mon, 25 Sep 2023 19:17:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229486AbjIYXRg (ORCPT ); Mon, 25 Sep 2023 19:17:36 -0400 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 AA018101; Mon, 25 Sep 2023 16:17:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding: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=lK9wsOQ0X+liH8Gj+buTBXV/sF1bkg6KdP4DvULH538=; b=zxMH/KaHAkwdrC1+MS43+Ar/0c rF9M5PWf4SI63IOtDUMqPRSW6tx0l0M4RgxdATupJXkPwvbD4Vjve6+5Pnpd2m8XxJLTvGA6jBcps CrAAAsUI+8oEAzcWtoOUIl+cadXKxUnz7Nor3Qk2xr1D8zH2rTVem6vEVssyMUQuXeIfDYeBoFS58 n2uyCGUlyi+MjdH1aveQezpB6xzm5Xcb1HMIJU++NkCaZ/iWZtjdq/0Atrt63PgrvLM5Y0+a084ZP P8gAGwISZUzUKkQkmiZTlTZKWibCLuKxDD0MK4wnuWO1yGiZujLHgPNDabuGLmfu5dJ9P/WBEBMxY VbEzIwOw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:40444) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qkupO-0001gn-1S; Tue, 26 Sep 2023 00:17:22 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1qkupL-0008F5-Vw; Tue, 26 Sep 2023 00:17:20 +0100 Date: Tue, 26 Sep 2023 00:17:19 +0100 From: "Russell King (Oracle)" To: Gavin Shan Cc: Thomas Gleixner , linux-acpi@vger.kernel.org, James Morse , loongarch@lists.linux.dev, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Ingo Molnar , Jean-Philippe Brucker , jianyong.wu@arm.com, justin.he@arm.com, Borislav Petkov , Dave Hansen , x86@kernel.org, Salil Mehta , "H. Peter Anvin" , Peter Zijlstra , linux-ia64@vger.kernel.org Subject: Re: [PATCH] cpu-hotplug: provide prototypes for arch CPU registration Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Russell King (Oracle) 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 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: 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]); Mon, 25 Sep 2023 16:17:48 -0700 (PDT) On Tue, Sep 26, 2023 at 09:04:46AM +1000, Gavin Shan wrote: > Hi Russell, > > On 9/26/23 02:28, Russell King (Oracle) wrote: > > Provide common prototypes for arch_register_cpu() and > > arch_unregister_cpu(). These are called by acpi_processor.c, with > > weak versions, so the prototype for this is already set. It is > > generally not necessary for function prototypes to be conditional > > on preprocessor macros. > > > > Some architectures (e.g. Loongarch) are missing the prototype for this, > > and rather than add it to Loongarch's asm/cpu.h, lets do the job once > > for everyone. > > > > Since this covers everyone, remove the now unnecessary prototypes in > > asm/cpu.h, and we also need to remove the 'static' from one of ia64's > > arch_register_cpu() definitions. > > > > Signed-off-by: Russell King (Oracle) > > --- > > Changes since RFC v2: > > - drop ia64 changes, as ia64 has already been removed. > > > > arch/x86/include/asm/cpu.h | 2 -- > > arch/x86/kernel/topology.c | 2 +- > > include/linux/cpu.h | 2 ++ > > 3 files changed, 3 insertions(+), 3 deletions(-) > > > > In Linux 6.6.rc3, the prototypes are still existing in arch/ia64/include/asm/cpu.h. Correct, but I have been told that IA64 has been removed, so I removed those changes from my patch. > They may have been dropped in other ia64 or x86 git repository, which this patch > bases on. I have no idea which repository they have been dropped from. I only know what tglx told me, and despite asking the question, I never got any answer. So I've done the best I can with this patch. If kernel devs want to state things in vague terms, and then go silent when asked questions to elaborate, then that leads to guessing. Maybe someone else should adapt this patch to apply to whatever tree it is going to end up being applied to - because I have no idea _which_ tree it'll end up being applied to. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!