Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1476090rbb; Mon, 26 Feb 2024 10:19:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXNO+mMAyX8rDK+ctzy4hY/qP4G36j5cuAh0giutL6IuisLO9i4G8vJV+/3VnWz4IBrzbBsB5ZA2yKS6u5ml0grXkIH6SGacdZwZ2V8Ew== X-Google-Smtp-Source: AGHT+IHilGnE6KAOeOMp7idmSyAhZQVwULZLnYUV1pT1Tw3VXCXMlCrRzacSlOPCKPszEbPdWABJ X-Received: by 2002:a05:622a:1b9f:b0:42d:dd8a:e63c with SMTP id bp31-20020a05622a1b9f00b0042ddd8ae63cmr9506202qtb.5.1708971580918; Mon, 26 Feb 2024 10:19:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708971580; cv=pass; d=google.com; s=arc-20160816; b=yeFGPQBgfbsutakkwAZpOxDA0VBfKr2PLwG2C0hQ4DsxXosr2N+attfP8t+xrPiKpS mbLrkY6TNj67bqfTdW90VU61Dk2t+kHIRoI5YYwAIZFWFqK1V1D+CC7SczEPhFyLBliU dq/D7d5cwpJXdlD1zUSeN5tAueJWwIAtezI9E4nldqadlajZjDGnOD8c5PtRpoLbbD8/ rNiwCQeCb1bOwTt6mScHQ/NQWBOWK7djAxziGD+mOd2r7ilSyfh0rj5M3CGuiDkBuhcs nSBV7DvjKNXEIPMp1GghTE2rAyXP5Nnc9rjjWy+MSY0EfoAXlpiiolJOirw3azX2PJAi UK9g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=Jp20KoVGhhuk462r1NDh+rcZQEgIkTFGl1UxvwRBJaw=; fh=NlI13rhIPaPT1MBkfYZ4c1kq9IjyZTD7zF2w0oHXxEM=; b=0LLRAmnUmNMmjWd+S/h8x4u/j/gsDmTAto0o1u7VJAzJEWftn1KSPH3lN9Ey1fO/7n NohOtppoXtWHcWfiOKSk79c2poh51kyhCV4hohx+Pg/SeifMMUeoihhxHbFdmTrPaRbR +gJfjJlwflpeweHj0nbSwfThfHeUc8RzYUk6yQMEOv83PwGXgyRV6zWRxGAMYKgvTWuL MHNSDR0xe5YImAML296SHiZu7XusVvHotRq/YHaOoRnLnlBJUo0/WLIUtnyKRNIeBVcM hm/4gZeT45stVYBjuVywzK+MowOLvLoTIkP1JdtdN0oCOGyVWBmY0zXKYm8FhVE+i0CY 9nZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=cGgoFCLf; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-82128-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82128-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id i15-20020ac8488f000000b0042e3fff1872si5497125qtq.107.2024.02.26.10.19.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 10:19:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82128-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=cGgoFCLf; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-82128-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82128-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A845E1C25960 for ; Mon, 26 Feb 2024 18:19:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0E75C12F366; Mon, 26 Feb 2024 18:19:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="cGgoFCLf"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="R9JB9LDB" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A767412E1D5; Mon, 26 Feb 2024 18:19:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708971575; cv=none; b=K8WQjCyhLYCYQCzHw7/RDaDB7OFG5VNcNrN1XEtIEVFCLTJZ9Vt2PJiQPU/k2eOertTiNVRMh61Z0A3BQsq9JIvTByDfdvsjOdYherWsZz7K8cjb7mRZ7pSQlfmQSP1k/6SE5koq1M5MMVIT+YGNXcPmT3h+UlkidknwadWHDRU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708971575; c=relaxed/simple; bh=Z/5vyQkhSyY8T3YX1ooj4Fr7eQCk9ePPjokpVbkSqFM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=NhbEmNVF2Ocl8ZtHgrmmGQ2ujxlVSpJrATLsJQQgaf1I1kt10+jK01z1k/wJqzwF6crmVjQgjKMI4cpCRwNGkXiO74vigHLh/sDxqulYTW72IvqlMcspRzBttmi8aNIIArFfJfpevYf8Gq8qjJ1Hc0PIVn0KjnkIH6bh39PxsaQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=cGgoFCLf; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=R9JB9LDB; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1708971569; 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=Jp20KoVGhhuk462r1NDh+rcZQEgIkTFGl1UxvwRBJaw=; b=cGgoFCLfQcqJ1fg68sh454LSjikqBCUVAWYFAU4O/KZKlJhgwii0CGSisqn7oBGT5YVDmF cC/y/wMth3aVBotgTt6wxehD+e60oU0d+cTPH14wM0a9yi07KF7+0J2REehdrN2UTrrZlQ +VRSLQ1YqBUacySwFXC7NZhbROGiwGn2CpLfbhOwAF4+kTZtSg4UAnG49OPC5uXBkv1Ueo aRAg8J1bkHgTwaHTvVLfsbxy/RTuzgrAvBcP5EcErr9w/ctH+Wjz+wWU5QPVD8Whm8COHq 4cF3hSHKCsXlqJWTO5dcS3bWYz9Z5/ZG12E08VDOnSjY9JSt2+zz006q7kgl5w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708971569; 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=Jp20KoVGhhuk462r1NDh+rcZQEgIkTFGl1UxvwRBJaw=; b=R9JB9LDBVcIFfUTLLMSYBP7+YDFdXrdV1gD034EG9WW0b5726XFh9fOnvaik1VCNtq+v/d JPS/bDs0hfJP7RCw== To: tip-bot2 for Ingo Molnar , linux-tip-commits@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Ingo Molnar , x86@kernel.org Subject: Re: [tip: x86/apic] smp: Provide 'setup_max_cpus' definition on UP too In-Reply-To: <170894808668.398.2149303099223176501.tip-bot2@tip-bot2> References: <170894808668.398.2149303099223176501.tip-bot2@tip-bot2> Date: Mon, 26 Feb 2024 19:19:29 +0100 Message-ID: <87o7c39jgu.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Mon, Feb 26 2024 at 11:48, tip-bot2 for Ingo Molnar wrote: > --- a/include/linux/smp.h > +++ b/include/linux/smp.h > @@ -218,6 +218,8 @@ smp_call_function_any(const struct cpumask *mask, smp_call_func_t func, > static inline void kick_all_cpus_sync(void) { } > static inline void wake_up_all_idle_cpus(void) { } > > +static const unsigned int setup_max_cpus = 0; Oops. I missed that when looking at the patch. This is in a header file and will be instantiated a gazillion times where ever the header is included. It want's to be a define, no? Thanks, tglx --- --- a/include/linux/smp.h +++ b/include/linux/smp.h @@ -218,7 +218,7 @@ smp_call_function_any(const struct cpuma static inline void kick_all_cpus_sync(void) { } static inline void wake_up_all_idle_cpus(void) { } -static const unsigned int setup_max_cpus = 0; +#define setup_max_cpus (0) #ifdef CONFIG_UP_LATE_INIT extern void __init up_late_init(void);