Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1266759rdb; Mon, 19 Feb 2024 09:16:14 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUdY4wIGFU/Cky9NLBV4k1QNOVtRSR7flP91Ok8BZ6cXy8vwytzRjdlV/rQF/eVRyeP8lhYIbsv+sHbC1qPBJHlMnjMljsODKBSusSi/A== X-Google-Smtp-Source: AGHT+IEUBgHibhQm3n+GU3fiU1RAgdiBzSFGaUyhhu5aE/UjqkCp9+FTypdliy+D7whyjhGghMPa X-Received: by 2002:a17:906:5f93:b0:a3e:e5c2:dd1 with SMTP id a19-20020a1709065f9300b00a3ee5c20dd1mr182478eju.2.1708362974452; Mon, 19 Feb 2024 09:16:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708362974; cv=pass; d=google.com; s=arc-20160816; b=suAXVGFE7DVQqg9h0I0N5xhsYiqmju2Y0yzVkwSYY8zFFZanqqRdYncBfUAfXrG/1z c7XwlxGe7V6X0QXX+uw33pXi+6j1lbm+OyjWGrQONYld5NlcUSNkW7g5v3VsEShjFjUt C2eno1xAexPxuP7BFp8iMWPxny7lXUtV/k4IIcyPYJ1uWlNf/faVGnxUM2XLG7XOCmXY t3BlZK40V+yxsg1fkH2NkJaniswiMomXOtDUjkeMqfD5C7sybPVOdwEcGOyu6qqLtN/X owiIyLRLW4DmXtFIDv8CUQZqwnl6oKMNCQIY1wyCC/VRYCXrMHZhbwnDeslpKxyV9X0a KJMg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=cq/bJydinATbNz9JhwbFaWM5CLzy2p99qxbRF0XWmWM=; fh=f+82KrWJ1QQFdtGMOomguIYGRrdQi852VyKB2CMgnVY=; b=VkmHsCpruyjS6CVehHS8VvM8+gWf/xUFpYiX04EHvlP6UodKkAstG4ETg3xw+rSxzG Oo+32ylGy7cD4vrvl8gzg3gYrEykPMluOus78X3bzedU/ZppIQLd/Ouwk1kSatZkFlmQ wNk5YIV7QqF8PnsAlmt8bkskCIpRSBJXQ4f7uoimMzUfrhVH00jmkcqGvY7LA8tyHhJ8 UC3nUbCylAMYjc9VAJtxAMq/jI/7u3PXf3Oio8mNocZVeiqxKxDu0RhK52QdiKweFdr9 Jt9Pc3YkMSDjRRPhQNz90cj5IZ2bt8TI0xXZAM/x1gW4nxq1ayh/rp2FGYXI30NPcx4c Nm4Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=o+iLHWZ4; 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-71740-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71740-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id lu20-20020a170906fad400b00a3ec680ee34si530785ejb.469.2024.02.19.09.16.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 09:16:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71740-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=o+iLHWZ4; 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-71740-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71740-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 3720C1F250FD for ; Mon, 19 Feb 2024 17:16:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C833446C4; Mon, 19 Feb 2024 17:16:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="o+iLHWZ4"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="zzFnjUCt" 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 433F9374D3; Mon, 19 Feb 2024 17:16:05 +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=1708362967; cv=none; b=HvGwzdgUis4SmfJ8qpWs8Yw3/8p0JWiaseyjvWnWgwKsr3Y+aZSHNV2pB6meQhIMsXtip/jA1hYINQDNFtnDoNfXgZJHKTmrGYS+atwES2ByUemYU/BeDjoMbs51AUscpWquZWd+UniN6ZDtzCudX80m14OLIe6W6l5gRoM99U4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708362967; c=relaxed/simple; bh=ii4cgt1E3hEDo18xbhUscZeD0SUd3PhL42zCQYJSoqY=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=VsJROyrE4ozU8MQDPGLaM+NOwrBtzuTXNFeu6pIeTiOgNLtqW6TdOPNX8k3ND0QhJlqsurmWbcPaQUm7/gYQcXXAOnJ/w3g8cvPmxkC37hIYMMGbSb96X9+UEw6Tes1amuJyKT6AE4BxzUrctHUkvTcweP0+m4YgbmjN+j7Y68M= 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=o+iLHWZ4; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=zzFnjUCt; 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 Date: Mon, 19 Feb 2024 17:16:03 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1708362964; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cq/bJydinATbNz9JhwbFaWM5CLzy2p99qxbRF0XWmWM=; b=o+iLHWZ4ZqJflLSPxvnPsQgcJyzKr+hgI0xHShkbgCPDnnxizoZZt2g+/2iiihKg8w6DgY NShRHFzYDSMzEvmwgrr2+sjNeem1fROZS50V1NIuDt6GBcv5QGB/VOIMAyqwLI84sNXYqn OZuQv3p1yOzCTPOlIzNtJjpQyc7b+vSSiVekend7g8AkYBqtcgsusZcEvpwo4ZERKvlqmu RZIW1J6fiEqzpUJ7rvDlGtCG+IqNwHeC4KoJKOqJkzeZowNc0dFdSqRwKcc2HswvDp2hc7 6+PAfc7SHHdLLCb85btHoVRW+yz4WlidmwMPM1Yb3zUDLcaegzirJrVseI6DMw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708362964; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cq/bJydinATbNz9JhwbFaWM5CLzy2p99qxbRF0XWmWM=; b=zzFnjUCtxcxl4ZjG0kVIAbFbFSP3Ya5D6UVCd5sdLPdn1fgddft3V3cD7XY18N/+0lCKwb o/7/YXuozChWBTAw== From: "tip-bot2 for Alexey Dobriyan" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: smp/core] smp: Make __smp_processor_id() 0-argument macro Cc: Alexey Dobriyan , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <0037d1f2-8153-4b33-b43e-f4b6ecd710ac@p183> References: <0037d1f2-8153-4b33-b43e-f4b6ecd710ac@p183> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <170836296349.398.972337790717931242.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the smp/core branch of tip: Commit-ID: b57b4126dd3bb69db876ae7b271307ab7e0458b9 Gitweb: https://git.kernel.org/tip/b57b4126dd3bb69db876ae7b271307ab7e0= 458b9 Author: Alexey Dobriyan AuthorDate: Mon, 05 Feb 2024 12:39:30 +03:00 Committer: Thomas Gleixner CommitterDate: Mon, 19 Feb 2024 18:05:47 +01:00 smp: Make __smp_processor_id() 0-argument macro smp_processor_id family of macros never accepted any arguments. #define __smp_processor_id(x) works by accident (see C99 6.10.3 =C2=A74). __smp_processor_id() gets 1 (empty) argument and passes it down to raw_smp_processor_id() which doesn't accept arguments. Signed-off-by: Alexey Dobriyan Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/0037d1f2-8153-4b33-b43e-f4b6ecd710ac@p183 --- include/linux/smp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/smp.h b/include/linux/smp.h index e87520d..cc51700 100644 --- a/include/linux/smp.h +++ b/include/linux/smp.h @@ -261,7 +261,7 @@ static inline int get_boot_cpu_id(void) * regular asm read for the stable. */ #ifndef __smp_processor_id -#define __smp_processor_id(x) raw_smp_processor_id(x) +#define __smp_processor_id() raw_smp_processor_id() #endif =20 #ifdef CONFIG_DEBUG_PREEMPT