From d4b83ba11cf227705986265fab0744060c02608b Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Fri, 31 Oct 2025 08:48:18 +0000 Subject: rust_binder: use compat_ptr_ioctl Binder always treats the ioctl argument as a pointer. In this scenario, the idiomatic way to implement compat_ioctl is to use compat_ptr_ioctl. Thus update Rust Binder to do that. Signed-off-by: Alice Ryhl Acked-by: Carlos Llamas Link: https://patch.msgid.link/20251031-binder-compatptrioctl-v2-1-3d05b5cc058e@google.com Signed-off-by: Greg Kroah-Hartman --- drivers/android/binder/process.rs | 9 --------- 1 file changed, 9 deletions(-) (limited to 'drivers/android/binder/process.rs') diff --git a/drivers/android/binder/process.rs b/drivers/android/binder/process.rs index 7607353a5e92..27323070f30f 100644 --- a/drivers/android/binder/process.rs +++ b/drivers/android/binder/process.rs @@ -1623,15 +1623,6 @@ impl Process { } } - pub(crate) fn compat_ioctl( - this: ArcBorrow<'_, Process>, - file: &File, - cmd: u32, - arg: usize, - ) -> Result { - Self::ioctl(this, file, cmd, arg) - } - pub(crate) fn mmap( this: ArcBorrow<'_, Process>, _file: &File, -- cgit v1.2.3