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 81D4B18B0D for ; Wed, 1 Nov 2023 18:09:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="upGNc57i" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 720CAC433C8; Wed, 1 Nov 2023 18:09:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1698862163; bh=AvHKWIKlJcqu+ewg1Khjlldp2ZWZLbpzH+38P5Wpzn0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=upGNc57ijylvIBXYPlNM9YMxzjpz9uYFphE/1uKHi5f8MdOQ9YfgjXqbScEvGROge P39hh/B4nHV/RRVJOrJQFPW0+GNrQbYiwGYIp5wbf38EmYtG2XMqbuMvRWNSkTYCSM 5KN2GeJ1GjzuamTPXt77lEC6Yx0mYM3oty2qdJ1M= Date: Wed, 1 Nov 2023 19:09:20 +0100 From: Greg Kroah-Hartman To: Alice Ryhl Cc: Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Carlos Llamas , Suren Baghdasaryan , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Matt Gilbride , Jeffrey Vander Stoep , Matthew Maurer Subject: Re: [PATCH RFC 01/20] rust_binder: define a Rust binder driver Message-ID: <2023110108-overarch-dumpster-5452@gregkh> References: <20231101-rust-binder-v1-0-08ba9197f637@google.com> <20231101-rust-binder-v1-1-08ba9197f637@google.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: <20231101-rust-binder-v1-1-08ba9197f637@google.com> On Wed, Nov 01, 2023 at 06:01:31PM +0000, Alice Ryhl wrote: > From: Wedson Almeida Filho > > Define the Rust binder driver, and set up the helpers for making C types > accessible from Rust. > > Signed-off-by: Wedson Almeida Filho > Co-developed-by: Alice Ryhl > Signed-off-by: Alice Ryhl > --- > drivers/android/Kconfig | 11 +++++++++++ > drivers/android/Makefile | 1 + > drivers/android/rust_binder.rs | 21 +++++++++++++++++++++ > include/uapi/linux/android/binder.h | 30 ++++++++++++++++-------------- > rust/bindings/bindings_helper.h | 1 + > 5 files changed, 50 insertions(+), 14 deletions(-) > > diff --git a/drivers/android/Kconfig b/drivers/android/Kconfig > index 07aa8ae0a058..fcfd25c9a016 100644 > --- a/drivers/android/Kconfig > +++ b/drivers/android/Kconfig > @@ -13,6 +13,17 @@ config ANDROID_BINDER_IPC > Android process, using Binder to identify, invoke and pass arguments > between said processes. > > +config ANDROID_BINDER_IPC_RUST > + bool "Android Binder IPC Driver in Rust" > + depends on MMU && RUST Can RUST even build on non-mmu systems?