From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2C3DE1DE4F6; Thu, 14 Aug 2025 05:55:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755150950; cv=none; b=BqWPL00T2EFk6GTIJtCjpdjQeQLoHKSc1fEYLKB8ITbzNhIiPAAiY01BExflyUj8xQayHhvsUv0cDoq1FOAwHbdXA4oT+INRdcjPww5Y6qfXpueEM4K8m1cjuoklVnTqPT78nCpYvbh1GbTGulEvhznWrpnQbVN9lT87aEeklME= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755150950; c=relaxed/simple; bh=epSLKE+81yx2bqgLT97GRaHzH4spHuRzyCMTHW14WX4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=f2xKyOhcZcQvINvf2wLsUSAecI3XoGeJrzxRkkKhWnjmpcIeKx4rG5e2+L0wt/p41DrZ3b18mHbofoWPApRE+0Bm2hshoOa/p4JrNfYLwSqXKPGdYw7qp7re5PV+hpRcEblgiwf/hPpmp0SC3NZ60CKsX/wAgHGnZeQ04FZC2OU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RB9EXGPY; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="RB9EXGPY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10955C4CEEF; Thu, 14 Aug 2025 05:55:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755150949; bh=epSLKE+81yx2bqgLT97GRaHzH4spHuRzyCMTHW14WX4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RB9EXGPYRdeGETXqTidkjThZqO+y52y1fNGxG6+UgZwZKoOy2Fm3KsOk3ZKUghj/H h4IJmkOG8W4woH6CkgLOzDUC+7fadQ9xzqEdQcIAjGfX4vRvtjM8QBN9pdh9zXKH+l OHGT9aqnLLBOvDXyzgocDhHD4mRcOD3kK0yjTdto= Date: Thu, 14 Aug 2025 07:55:46 +0200 From: Greg Kroah-Hartman To: Areej Cc: rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , Viresh Kumar , Tamir Duberstein , Xiangfei Ding Subject: Re: [PATCH] rust: lib: add if_cfg! macro for conditional compilation Message-ID: <2025081411-skimming-roundworm-dc2b@gregkh> References: <20250813203826.3145553-1-areejhamid8560@gmail.com> Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250813203826.3145553-1-areejhamid8560@gmail.com> On Thu, Aug 14, 2025 at 01:38:26AM +0500, Areej wrote: > Add a new if_cfg! macro to simplify conditional compilation using > cfg attributes. This macro expands to paired #[cfg(cond)] and > #[cfg(not(cond))] blocks, allowing compile-time selection between > code branches in both expression and statement contexts. Nit, trailing whitespace in your text :( > > Suggested-by: Benno Lossin > Link: https://github.com/Rust-for-Linux/linux/issues/1183 > Signed-off-by: Areej Hamid From: line does not match up with this text :( thanks, greg k-h