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 A5C00288CA3; Wed, 16 Jul 2025 20:07:50 +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=1752696470; cv=none; b=eWMdntsVgmM6jVItnleBkxRboN0T/eKdwCTwV9qnmTCzZLAlelDn9WXEbKMdpBjjVrbJ0COtHYRg1vrwrKBMAd7JFsmaY4secGs+pqtKwqtZQnmEqSpksI4crqBe0I3eHtXR+YLL/aruV7j88/REtkTUXEDbzdAoL/EQIT8LSO0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752696470; c=relaxed/simple; bh=fAIgMVKK2KkM5ZGHECNMLFdHJy4OxdfxT7hvIN4/5/U=; h=Mime-Version:Content-Type:Date:Message-Id:From:Subject:Cc:To: References:In-Reply-To; b=IwT9Pu6jX9NhPVBSTrdkzRFxJxQar0FZUe1q8+Fs6LdVX2tz/pEjgmETAyyXCImytWy720nMwM/TeWJrT5zngRo9Du/7s6iPx+HulFYcQkKrgXkHMfy+eyMdirPan3GwbLzF/A9lXu+wX6V0J9hhJ+H5i8s83bfOnu73lfVJotA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rn35v6TS; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rn35v6TS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B9B98C4CEF1; Wed, 16 Jul 2025 20:07:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1752696470; bh=fAIgMVKK2KkM5ZGHECNMLFdHJy4OxdfxT7hvIN4/5/U=; h=Date:From:Subject:Cc:To:References:In-Reply-To:From; b=rn35v6TSJFR8GzDo7g77/ZCJC3MUq5pZXU1AFRtQWRHY9rstJdp1ZuljauRWizVnS OnrZ7lKT5PbpF3i9tA55xpfazSYLiDwsAplH6Xdy40jjgeD5Bya5u67QMYrrL25L4L Zxi6rqmZTyNm/CPXC6yyS81HMJuKmfmWgrO8ds64FgCtjy2jmEVKmYvDjJ5mOnm3Hs jKXBVqX5L4pPfmVnfH/8aulUmfXJCptyxT5I4snOb5UpLmMHPZauljMjDA2WeOb6kL pxHMPD8JgLDNtIgA8RRhtNBn0ggAdgqtOFh16aG0w1lynSMmfBhBxr0xX3PjRDWNnD BazS5wCBEl4dg== Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 16 Jul 2025 22:07:45 +0200 Message-Id: From: "Danilo Krummrich" Subject: Re: [PATCH v9] rust: kernel: add support for bits/genmask macros Cc: "Miguel Ojeda" , "Alex Gaynor" , "Boqun Feng" , "Gary Guo" , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , "Benno Lossin" , "Andreas Hindborg" , "Alice Ryhl" , "Trevor Gross" , , , "Alexandre Courbot" To: "Daniel Almeida" References: <20250714-topics-tyr-genmask2-v9-1-9e6422cbadb6@collabora.com> In-Reply-To: <20250714-topics-tyr-genmask2-v9-1-9e6422cbadb6@collabora.com> On Tue Jul 15, 2025 at 1:29 AM CEST, Daniel Almeida wrote: > In light of bindgen being unable to generate bindings for macros, and > owing to the widespread use of these macros in drivers, manually define > the bit and genmask C macros in Rust. Reviewed-by: Danilo Krummrich