Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp6051471rdb; Mon, 18 Sep 2023 02:33:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEGNpKs99kLRBkl5ZMs/yqXo+gjnivbFj5ZuUgzpGRVVRXoMX7AY6yRclieMt+nAkKHD1mr X-Received: by 2002:a9d:4d1a:0:b0:6b9:b1b0:fcd1 with SMTP id n26-20020a9d4d1a000000b006b9b1b0fcd1mr9933100otf.31.1695029600054; Mon, 18 Sep 2023 02:33:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695029600; cv=none; d=google.com; s=arc-20160816; b=lVftm8aDmfxnTMQ13V1VtZwz9y+kPfmMT5IR8YVavgkoEh6cHIWRYETeg6Q9F5ZThx 9HEPi9d/ylfPb1L+V/IW8AwpC9MB6NFcJrAWnInoU6A1YXpuNGi+h9WyieO5skejXybF SSFPiUpW9/LfeReW0NAQwZ/x/lkPG8d0ZHSEiorDgAFC19tgvRqf5pPHn1JUENEZ9Y1n uMEAsAn/gyhZtYNfze748VuoEm98LjdG4O0UyuG/GG0PGGf0pAzQOWKklMeKsdTdpvLX 0dlDs2y+zAvKB7FYMfy3dlQdI3dw++8M63wov2KlLldd+d291cIK8hpOlOzmslF4eHpg te2g== 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=55eakHJGO5EUrnz8oyp7PKJxWNPGSy80I5cTzshJrkE=; fh=iycHWjw8IsX8x2gkspvQQdf2ikWQdFQIsdt/wuK0Y+M=; b=NVc0Ur2lOGej71Pn57BuuK6/1Xmx7Tufyo5dKIqXVOZWFtyH33L479tf8b9TnOzCwk 5L40HaGAEUVhSTsalD0egBqr+2PZzsjH9CT/Mt/Znf3B7nKSvT8pHC/eU6v7bBUSAXKn C94V3BOH8RajdHIG4TPxs4MDLB1A4Q3FM1vGcddNmTWsjJRbbXe/tYhcRom05TmOpcwE VCg7jrTt/+CEQABykJqErpOwhpJxomuCkJRI6k5rClzzahd1VQGdqpdBvgbFh1v5RZwS yQMlzWaymW87Y8iRSwml4bMtzW4njPI/Hijsoy+FCXS/pNX7PkYCGGiODQooWEIKd4BA cysg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=myT6AGwY; 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 Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id t17-20020a63d251000000b0056c55eb251csi7618096pgi.123.2023.09.18.02.33.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 02:33:20 -0700 (PDT) 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=myT6AGwY; 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 0AF02802C644; Mon, 18 Sep 2023 01:20:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240817AbjIRITh (ORCPT + 99 others); Mon, 18 Sep 2023 04:19:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240534AbjIRISa (ORCPT ); Mon, 18 Sep 2023 04:18:30 -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 8DF8ECD6; Mon, 18 Sep 2023 01:16:34 -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=55eakHJGO5EUrnz8oyp7PKJxWNPGSy80I5cTzshJrkE=; b=myT6AGwYEqN4ejdUWPmq/Vgm33 9LHv7QtZCxGnRh5zp3aH21FUpOdswe89NrYUPkEuLSxMij/dzTSJnPKxPNxWOKIr9v5IDurA7RgRp Ngu+OvnLtLDXU4IqhgFOC2OFmdTzOSv3ybe4MbIbyulmtvaRDW94Zki3h0wxFTLtSGRZrs7AmhHAL +6Hk+rTi4fROJlzaaBVMSrNgX9buhvwWc1cvzWCsXhXlkLplPUTaEK2V7YGxLotX36irVNhAlldLy ujqumRivrAWrKHqFKbb/0IgbB7smGynZW1fmuRD/xzSGuw9asiX4xW7dgTDj1S9+ghdoUhqqmb6nn AwkOQ45w==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:52138) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qi9Qe-0008Ne-0S; Mon, 18 Sep 2023 09:16:24 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1qi9QY-0000Jt-WD; Mon, 18 Sep 2023 09:16:19 +0100 Date: Mon, 18 Sep 2023 09:16:18 +0100 From: "Russell King (Oracle)" To: Thomas Gleixner Cc: 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 , Salil Mehta , x86@kernel.org, "H. Peter Anvin" , Peter Zijlstra , linux-ia64@vger.kernel.org Subject: Re: [PATCH RFC v2] cpu-hotplug: provide prototypes for arch CPU registration Message-ID: References: <871qez1cfd.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <871qez1cfd.ffs@tglx> Sender: Russell King (Oracle) 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 (snail.vger.email [0.0.0.0]); Mon, 18 Sep 2023 01:20:03 -0700 (PDT) On Fri, Sep 15, 2023 at 09:09:10PM +0200, Thomas Gleixner wrote: > On Thu, Sep 14 2023 at 15:51, Russell King 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) > > --- > > Spotted during the review of James Morse's patches, I think rather than > > adding prototypes for loongarch to its asm/cpu.h, it would make more > > sense to provide the prototypes in a non-arch specific header file so > > everyone can benefit, rather than having each architecture do its own > > thing. > > > > I'm sending this as RFC as James has yet to comment on my proposal, and > > also to a wider audience, and although it makes a little more work for > > James (to respin his series) it does mean that his series should get a > > little smaller. > > And it makes tons of sense. > > > See: > > https://lore.kernel.org/r/20230913163823.7880-2-james.morse@arm.com > > https://lore.kernel.org/r/20230913163823.7880-4-james.morse@arm.com > > https://lore.kernel.org/r/20230913163823.7880-23-james.morse@arm.com > > > > v2: lets try not fat-fingering vim. > > Yeah. I wondered how you managed to mangle that :) > > > arch/ia64/include/asm/cpu.h | 5 ----- > > arch/ia64/kernel/topology.c | 2 +- > > That's moot as ia64 is queued for removal :) Okay, one less thing to worry about. Tomorrow, I'll re-spin without the ia64 bits included. I would really like to hear from James before we think about merging this, as it will impact James' patch set and would add a dependency for that. I wouldn't want this patch to become a reason to delay James' patch set for another kernel cycle. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!