Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp948994rdb; Fri, 1 Dec 2023 03:07:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IFQ8EdcoJz5DlcApSgMqQEEutjqKTdmrn5bcPPYmNXqy6b8zqnNj93LtJjaJ3K6n2t2AqK6 X-Received: by 2002:a17:902:8e8c:b0:1cc:6cc3:d9eb with SMTP id bg12-20020a1709028e8c00b001cc6cc3d9ebmr23039795plb.68.1701428822209; Fri, 01 Dec 2023 03:07:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701428822; cv=none; d=google.com; s=arc-20160816; b=HEiza7BjLaYhDdrRrlRlpo/9ZQv893//gl9D6CbOt41ptwdX31/clMe7dLUMOgHrV4 Sy4ZKH8+lm0g2CRZGPs5T2tWsqG9xrjxWcMf6qQAI6lNoFIKh2gni1AYI+g7DlGeOHJd zZD0d6WopfQ4Il2/8KACpge+GKwx/g3uhOlOkXZtN5nKTEV953amp8Lwbvk0vc/7zaGg iYcnDLrHP3FlseybW/s2yqHFAsLCqoM0vQ9ldXariOF0moOk38vgfoSijxxbnxv4hywC Uf6lsS/vyQJthDSXVMFOXx/pOg5Psiod83dEXgGCO/q6nndjy5erPHOlyl2Y7kgWMR80 U9aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=HEhlj+ipjqr4tEgJOcMvjQsGJg7PSMW3Lo0ITUjqyJ8=; fh=ZtO6xXTevf4FXjDJS2/Oa1dwcBM0mTwC/gz/5NKRqJk=; b=iUjV6C6rOtu/rs+VhdJMDxxQjMHUrsX0KxKj5rPsnL7KnVoLcT3LGNJ/wPbXsjVBTs cMYWWmS256ljGyEpw5GiuoGwqI0G4fpXFb1CufvJyX5caf8TO6yBZTwIsFsJwtPeIT49 zsNyX2++X8A/aDAeECodLaFg+BkoAsh+PVVkuDKhzsiReAwY4nItu7E+j1VKP+eoyrcW I3iax6yLGIXwD/PI7XHyaT/uJfvT4pqx+zUXr+Pq5/OLriqcLJ0Bg6ARye5UXdZYC8/P hkH5coQTI8fqz/DMo5KrQZ1D49C6UNNq6CPLmgLZuX14xLcHLPNWmb2Vzu6oCfDVh2SG MqcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=gVfDLjU5; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id k9-20020a170902c40900b001cf97206e86si950048plk.75.2023.12.01.03.06.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 03:07:02 -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=pass header.i=@linutronix.de header.s=2020 header.b=gVfDLjU5; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id AFC0980E06BD; Fri, 1 Dec 2023 03:06:39 -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 S1378465AbjLALG3 (ORCPT + 99 others); Fri, 1 Dec 2023 06:06:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378447AbjLALG1 (ORCPT ); Fri, 1 Dec 2023 06:06:27 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BFB2197; Fri, 1 Dec 2023 03:06:33 -0800 (PST) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1701428792; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=HEhlj+ipjqr4tEgJOcMvjQsGJg7PSMW3Lo0ITUjqyJ8=; b=gVfDLjU5umc+p3JXfSXFKIMVGVVvh/YAfNpBHT1q4t9H27RaW8vqhGxIzPvK5LwXvQwvdF /JYPTDKNgMJUwy1VQmekKDtiuw9J5MRT8kLobRdLxKlvOUfGx43e57Db2Cd7dAx9syetOZ BU7cmbjv5BmHUc0EAy6VO+z0aR26jT/u8M8FH2BQ6+zo9e37Okp4KeSLznfNh/tj+3D+nn JUnzrC6xa7Oy2ZtOmEpsPXJWO6wneo3/X5sumqAOekkfTiY5vVbLzAykjFEs+lfH/gjvHp 2hQwTTxf7jJz2QGhGaXroHm9dcH/i6GePiLaIo9jyy0ijxHr/8RoxXDlbrf0jw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1701428792; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=HEhlj+ipjqr4tEgJOcMvjQsGJg7PSMW3Lo0ITUjqyJ8=; b=supcOG+ERH+rcQKMhNStZbjQi0qWHuaxf3SWtVLs0rM9jaVZ7Iy5x6/vAzCqSSHennIM26 dvRnrytMPd0gRKCA== To: Russell King , 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 , Jean-Philippe Brucker , jianyong.wu@arm.com, justin.he@arm.com, James Morse , Greg Kroah-Hartman , "Rafael J. Wysocki" , Paul Walmsley , Palmer Dabbelt , Albert Ou Subject: Re: [PATCH 08/21] drivers: base: Implement weak arch_unregister_cpu() In-Reply-To: References: Date: Fri, 01 Dec 2023 12:06:31 +0100 Message-ID: <87sf4mxjuw.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,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: 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]); Fri, 01 Dec 2023 03:06:39 -0800 (PST) On Tue, Nov 21 2023 at 13:44, Russell King wrote: > --- > An open question remains from the RFC v2 posting: should we provide a > __weak stub for !HOTPLUG_CPU as well, since in later patches ACPI may > reference this if the compiler doesn't optimise as we expect? You mean: extern void foo(void); if (!IS_ENABLED(CONFIG_FOO)) foo(); The kernel uses this pattern for years and if someday a compiler starts to fail to eliminate the call to 'foo()' for CONFIG_FOO=n then you already get hundreds linkage fails today. So adding one more in later patches won't matter much :)