Re: [PATCH RFC 01/20] rust_binder: define a Rust binder driver

From: Greg Kroah-Hartman
Date: Wed Nov 01 2023 - 14:11:45 EST


On Wed, Nov 01, 2023 at 06:01:31PM +0000, Alice Ryhl wrote:
> From: Wedson Almeida Filho <wedsonaf@xxxxxxxxx>
>
> Define the Rust binder driver, and set up the helpers for making C types
> accessible from Rust.
>
> Signed-off-by: Wedson Almeida Filho <wedsonaf@xxxxxxxxx>
> Co-developed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
> Signed-off-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
> ---
> 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?