From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f195.google.com (mail-qk1-f195.google.com [209.85.222.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3134633B947 for ; Thu, 15 Jan 2026 08:40:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768466441; cv=none; b=LhS7qxvP2wP6fhf323STqU//HwMTrUtiTlGuJPD3b6AivZUOfSEVmJZwhs3jcOhG0W2kdzZst0EcDgw0M2tl80FDimTW4QBp791iLwqQrqmnI6bWm3Vhe/pJJ/EDJNRvC7IMWDxvC41rfoNQExDrcYbZN/ya3rW93S79L5ZBQpY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768466441; c=relaxed/simple; bh=kGAjDZzXN4M/Us+cwgsQzxcZ0zrYKWPTy1HSPmM0J2I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gjvTIubJRSE6+9v9/kyIkwjyGINgtGAggUhUHjH4Oh96AAAltFe8lSkj99A5UYT3+7AY3Wvv3bkmLsfsWYy30HaqYmAw1/B3fF/NRcc/PDPE8RRMk6EKEchhJnexYAlPxghwnTD0tjYS83pvjN8MmdiaVkG4crbvBjBm9cvQ1BI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=CTsFDnHu; arc=none smtp.client-ip=209.85.222.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="CTsFDnHu" Received: by mail-qk1-f195.google.com with SMTP id af79cd13be357-8c530866cf0so65875585a.1 for ; Thu, 15 Jan 2026 00:40:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768466439; x=1769071239; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :feedback-id:from:to:cc:subject:date:message-id:reply-to; bh=MMFj9gQvn0V+NVRRKsqf5Eg6BpjQZxX0IqjKremmDdc=; b=CTsFDnHuyto/ZUtIPByPVikfRnCgoSMcygMfyk440aMVgUruAYRaebcg9VIzs0VaJ0 BEKAkeJ1r53tgallMAqw7TBzCsqDDT8GJZF9vSrGBXzfvVdl1L3begTZWi4rjilDjyYO n5byGXGhbSD7lWLW67rTWVfEVH/MotjGmAExAV30OJ5/IeWeY8pruzIuoOZ20RNsSY9T wH48ppJTVODK0rU3cXeo6Bj9fPqApwDaxW6sVaNKGGtDfZk1Xr7Wma42vpit7CnhVDEz dNQZsLjuabACw/aggfcEz1sLm3hoRYvuvXusF+Eud37tJ4P8lkVZKZOuDhil3+RtKw84 gHDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768466439; x=1769071239; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :feedback-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=MMFj9gQvn0V+NVRRKsqf5Eg6BpjQZxX0IqjKremmDdc=; b=H0PD/00A/MUuczUAV4WX24dTwwVo5W3MY14jRWQIHfHnLr1y+nyI17xh5EJBkRDBq9 xfSNf2Dcxsk7qii4JNDRLqITe1YtllkjmBa4YO9ZddDipTOq2mPBj3f1VWvrU70nAl9t mxjfhEFjtzKGERFcZd6pBg1jNm57J4C7cU2sQP8Z+t2ijav+cO/daTMgQXwNGVZ8CzrJ N1RtzDt9GwyhYuZYKtP2yAiH4NlfC4RPg9edATEM2y8EG4YyI6Z1CjEGiQzZtLco7ttK MUVrJDQ27wo4QFIV2AlJwFjJJ3Ny1Nt5SeAVSN8lwjb6jrKWYBKDapNBZd6GQsJSstcJ /Ypw== X-Forwarded-Encrypted: i=1; AJvYcCVHbKpPEXpG5uQwsTOyAUntxQiTCYholPiJl7xC4znmlDfeFsmmwHVbcX9RBIhcqPnYuT6kVTOQkQ==@vger.kernel.org X-Gm-Message-State: AOJu0Yyho1GcWUap7lksCTjFUv7IK7UCM5DjZ2ZohfxuMEb4JS1Sd/4+ QpKGvLfBfJpQRDWqyuxQuk6DKNIdVcC1rwzRl6hyqsDUTDj7i+oGKku5Rbq4A2ABet+V1Q== X-Gm-Gg: AY/fxX6kQYCsbJ+U5poziy5uVvYNY4HMvIQi8rkHKNCBjBgWpnsyJJStgm0NQjeJH2W hv5FFskqul1Jn1wJGVO5i1DQyA/lr6/A7MgNnwJAhiankby3LskNIhiI98BuqH7JPHR1NGsZv0R F8cg4SN+B03a2TvaPMB7UNa7IbXUzMfOmIoeaBLqkiERaMpDVa9vAQrozZI+7bhEN2vI+LWDsqw EssS8oZNNRP00c78zDXgQhxZFxQiOrFtRWIAXptAyho+Bo5FkSoZ8e0youIIFTU0BeTVwQEm2GC 4MuiWmw67RfBh5uSySM6VgqWMdQASiCG7re0bgp5e79UuqOX4VZ6dVuBn6NjJ4GxdB19IK8mWO3 O7r+uh2tJtxCIX3/0F+BRnx8LMjRCn5e0yMYvPCT1ff2Xx8VRCCkC8qovNc1hL2jePJ+ts79nBm ajqVTlHgn5QHMTAe6wNLhYMHMss+Y23H1rSv73WwFmNUC8uO6exWJ5pxatCMqktRX24HMH05CFr 69XHfI/3im8KQg= X-Received: by 2002:a05:620a:45a8:b0:8c5:2032:3766 with SMTP id af79cd13be357-8c52fb26dd6mr717196885a.35.1768466438971; Thu, 15 Jan 2026 00:40:38 -0800 (PST) Received: from fauth-a1-smtp.messagingengine.com (fauth-a1-smtp.messagingengine.com. [103.168.172.200]) by smtp.gmail.com with ESMTPSA id af79cd13be357-8c530aab8f1sm343318785a.23.2026.01.15.00.40.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jan 2026 00:40:38 -0800 (PST) Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfauth.phl.internal (Postfix) with ESMTP id D1B16F40068; Thu, 15 Jan 2026 03:40:37 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Thu, 15 Jan 2026 03:40:37 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduvdehiedtucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkfhggtggugfgjsehtkeertddttdejnecuhfhrohhmpeeuohhquhhn ucfhvghnghcuoegsohhquhhnrdhfvghnghesghhmrghilhdrtghomheqnecuggftrfgrth htvghrnhepvefghfeuveekudetgfevudeuudejfeeltdfhgfehgeekkeeigfdukefhgfeg leefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepsg hoqhhunhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqieelvdeghedtieeg qddujeejkeehheehvddqsghoqhhunhdrfhgvnhhgpeepghhmrghilhdrtghomhesfhhigi hmvgdrnhgrmhgvpdhnsggprhgtphhtthhopedvuddpmhhouggvpehsmhhtphhouhhtpdhr tghpthhtohepmhhighhuvghlrdhojhgvuggrrdhsrghnughonhhishesghhmrghilhdrtg homhdprhgtphhtthhopegrtghouhhrsghothesnhhvihguihgrrdgtohhmpdhrtghpthht ohepuggrkhhrsehkvghrnhgvlhdrohhrghdprhgtphhtthhopegrlhhitggvrhihhhhlse hgohhoghhlvgdrtghomhdprhgtphhtthhopegurghnihgvlhdrrghlmhgvihgurgestgho lhhlrggsohhrrgdrtghomhdprhgtphhtthhopehojhgvuggrsehkvghrnhgvlhdrohhrgh dprhgtphhtthhopehgrghrhiesghgrrhihghhuohdrnhgvthdprhgtphhtthhopegsjhho rhhnfegpghhhsehprhhothhonhhmrghilhdrtghomhdprhgtphhtthhopehlohhsshhinh eskhgvrhhnvghlrdhorhhg X-ME-Proxy: Feedback-ID: iad51458e:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 15 Jan 2026 03:40:37 -0500 (EST) Date: Thu, 15 Jan 2026 16:40:35 +0800 From: Boqun Feng To: Miguel Ojeda Cc: Alexandre Courbot , Danilo Krummrich , Alice Ryhl , Daniel Almeida , Miguel Ojeda , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Trevor Gross , "Rafael J. Wysocki" , Viresh Kumar , Will Deacon , Peter Zijlstra , Mark Rutland , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v3 5/7] rust: sync: refcount: always inline functions using build_assert with arguments Message-ID: References: <20251208-io-build-assert-v3-0-98aded02c1ea@nvidia.com> <20251208-io-build-assert-v3-5-98aded02c1ea@nvidia.com> Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Thu, Jan 15, 2026 at 08:49:05AM +0100, Miguel Ojeda wrote: > On Mon, Dec 8, 2025 at 3:47 AM Alexandre Courbot wrote: > > > > `build_assert` relies on the compiler to optimize out its error path. > > Functions using it with its arguments must thus always be inlined, > > otherwise the error path of `build_assert` might not be optimized out, > > triggering a build error. > > > > Cc: stable@vger.kernel.org > > Fixes: bb38f35b35f9 ("rust: implement `kernel::sync::Refcount`") > > Reviewed-by: Daniel Almeida > > Signed-off-by: Alexandre Courbot > > Boqun et al.: do you want to pick this one or should I take it with > your Acked-by? > Acked-by: Boqun Feng Going via rust-next seems more appropriate to me, thanks! Regards, Boqun > Thanks! > > Cheers, > Miguel