Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6170959rdb; Thu, 14 Dec 2023 10:04:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IE81d7akjXC15Soobqsoe7+nkbLcDvuUmqHrWhMOQqQd1Lzi1Kl4XxVoaOmA1IxMrUw3M6q X-Received: by 2002:a17:902:dacd:b0:1cf:8ebd:4eae with SMTP id q13-20020a170902dacd00b001cf8ebd4eaemr5430137plx.69.1702577062388; Thu, 14 Dec 2023 10:04:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702577062; cv=none; d=google.com; s=arc-20160816; b=aQqe2NaM6g7/kdgiwsrf8zc1In1gIsPG4Pzs8hf6CvIu+y/eFOHTD0ckmX639tP6jD k4Pr4r4ESYQUzzMbhrqzY+ZNTmJVa1SDvrg58v4w5FNcGIGG9bevzbzog5vizPyMnCrP aXFP1ZME/AOrZPiqNlCKU32HIpt8pfLeNm+CsQZ5kBXKHVc6S4Ga8MV1AChkgYdykvk1 4JplxFaqR43Cxk3NoA7ueg6cCPiubfo05Bqi7fn9wQOSkObUOPAuJoYRoJbRpU++cBiY F1Hmr8e8uGjTIMmzsNhpwSGNt2sAFVlPSSQ3qQ1BZy5mQTs14RY9FasMDvj2wlr8UQuC bjug== 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=az+3j+x28e0MvEnutvjaU0xgwYkokn4xM04tjgXdKPA=; fh=P5zBB1N/HVmDFriWCJ6Qffp6bP+zgT4BB6XzwIQk2no=; b=CHoHcrFcdkn8xtQ3PQpFRHefuGXSZ3hU3RRYpfHhrZF216/9jxeEJatFtGdc1Wn/4u v9w7X3gujvGLHiusV0XxFOM8epeXc4rTDMVlRW8/r+D9jJxvE94+3x6Sr15Nc8feqeJB LoW0Zwl18816p8V0cWi4+R2LqRGdlLEn0oILkCfDBxORmfZ19soU5Hq7E/mWkrOt1dmx 6uWK9JzXmYAvFpGAnoQS9G+QG3HYh8FjvGd7PHdfba15C/88HzRHQPbS1f2XeWT9Apdc CUOQ6iPmSenCUU6rzu8k4HrD8qPUxVS+bMpfyRfgV6ww6P+pjBX+sDi0Iuf/WOnU6RVi Wt8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=phbhpdMh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id u18-20020a170903125200b001d0c6fd313fsi5767928plh.157.2023.12.14.10.04.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 10:04:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=phbhpdMh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id C0CB88183F27; Thu, 14 Dec 2023 10:04:15 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1444134AbjLNSDp (ORCPT + 99 others); Thu, 14 Dec 2023 13:03:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235614AbjLNSDn (ORCPT ); Thu, 14 Dec 2023 13:03:43 -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 CBA1910A; Thu, 14 Dec 2023 10:03:49 -0800 (PST) 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=az+3j+x28e0MvEnutvjaU0xgwYkokn4xM04tjgXdKPA=; b=phbhpdMhqApnRG8+xq5SsWLNms MNH+uNHn31DAvev+yUe5VGnPqUaT9bPvubmCX3om2ul0kSEB34STohtRy7PXweQ4YPCipcktJSMEO EBmq3tDRmt/HEh2JuB5zU7YMY+rQShiO7J5+Z0TXUhAfd7WWhZG5STwBTj2gxUJ9dTu2ipDGzRQgg dT15U01Mg3344Q2FfLVMrKt74o4PXNfCDyX/lfc30yk8prE2s4X4N+PrCMYciv5V+Bgw52q1Hrg9u 3qABnwM119UdNsI38XnYsRQ6trF/eq3eQX7ofT+05+xvQecv/9GT3PQyQELGxIppvwV6yuwfsmlCH Z178ezDA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:42168) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rDq3l-0001pA-0r; Thu, 14 Dec 2023 18:03:45 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1rDq3n-0002l5-AY; Thu, 14 Dec 2023 18:03:47 +0000 Date: Thu, 14 Dec 2023 18:03:47 +0000 From: "Russell King (Oracle)" To: Jonathan Cameron Cc: 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, acpica-devel@lists.linuxfoundation.org, linux-csky@vger.kernel.org, linux-doc@vger.kernel.org, linux-ia64@vger.kernel.org, linux-parisc@vger.kernel.org, Salil Mehta , Jean-Philippe Brucker , jianyong.wu@arm.com, justin.he@arm.com, James Morse Subject: Re: [PATCH RFC v3 07/21] ACPI: Rename acpi_processor_hotadd_init and remove pre-processor guards Message-ID: References: <20231214174337.000042a4@Huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231214174337.000042a4@Huawei.com> Sender: Russell King (Oracle) X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 14 Dec 2023 10:04:15 -0800 (PST) On Thu, Dec 14, 2023 at 05:43:37PM +0000, Jonathan Cameron wrote: > On Wed, 13 Dec 2023 12:49:47 +0000 > Russell King (Oracle) wrote: > > > From: James Morse > > > > acpi_processor_hotadd_init() will make a CPU present by mapping it > > based on its hardware id. > > > > 'hotadd_init' is ambiguous once there are two different behaviours > > for cpu hotplug. This is for toggling the _STA present bit. Subsequent > > patches will add support for toggling the _STA enabled bit, named > > acpi_processor_make_enabled(). > > > > Rename it acpi_processor_make_present() to make it clear this is > > for CPUs that were not previously present. > > > > Expose the function prototypes it uses to allow the preprocessor > > guards to be removed. The IS_ENABLED() check will let the compiler > > dead-code elimination pass remove this if it isn't going to be > > used. > > > > Signed-off-by: James Morse > > Tested-by: Miguel Luis > > Tested-by: Vishnu Pajjuri > > Tested-by: Jianyong Wu > > --- > > Outstanding comments: > > https://lore.kernel.org/r/20230914151720.00007105@Huawei.com > > If it's not caused a build warning yet, chances are high this is fine. > > Reviewed-by: Jonathan Cameron > > > https://lore.kernel.org/r/b8f430c1-c30f-191f-18c6-f750fa6ba476@redhat.com > > For this comment, we use IS_ENABLED() in multiple places in the kernel in > > this way, and it isn't a problem. Yes, for both of these comments, I think they aren't something that needs any action - these patches have been published in my tree since October, and that is subject to the kernel build bot which hasn't found any issues. So, I'll add your r-b, add my s-o-b, and remove the "outstanding comments" from this patch. Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!