ANDROID: rust_binder: add missing void arguments to binderfs files

These functions were missing the last argument which is an unused void
pointer. This is incorrect and was caught due to a CFI failure. To fix
this, add the missing parameter to the functions.

Bug: 335105888
Change-Id: If1f0589a9f66e4080a457027d3643c39144de6b9
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
This commit is contained in:
Alice Ryhl 2024-04-16 11:02:39 +00:00
parent 9de0b6bca4
commit bee37573f9

View File

@ -391,12 +391,18 @@ unsafe extern "C" fn rust_binder_flush(
}
#[no_mangle]
unsafe extern "C" fn rust_binder_stats_show(_: *mut seq_file) -> core::ffi::c_int {
unsafe extern "C" fn rust_binder_stats_show(
_: *mut seq_file,
_: *mut core::ffi::c_void,
) -> core::ffi::c_int {
0
}
#[no_mangle]
unsafe extern "C" fn rust_binder_state_show(ptr: *mut seq_file) -> core::ffi::c_int {
unsafe extern "C" fn rust_binder_state_show(
ptr: *mut seq_file,
_: *mut core::ffi::c_void,
) -> core::ffi::c_int {
// SAFETY: The caller ensures that the pointer is valid and exclusive for the duration in which
// this method is called.
let m = unsafe { SeqFile::from_raw(ptr) };
@ -407,12 +413,18 @@ unsafe extern "C" fn rust_binder_state_show(ptr: *mut seq_file) -> core::ffi::c_
}
#[no_mangle]
unsafe extern "C" fn rust_binder_transactions_show(_: *mut seq_file) -> core::ffi::c_int {
unsafe extern "C" fn rust_binder_transactions_show(
_: *mut seq_file,
_: *mut core::ffi::c_void,
) -> core::ffi::c_int {
0
}
#[no_mangle]
unsafe extern "C" fn rust_binder_transaction_log_show(_: *mut seq_file) -> core::ffi::c_int {
unsafe extern "C" fn rust_binder_transaction_log_show(
_: *mut seq_file,
_: *mut core::ffi::c_void,
) -> core::ffi::c_int {
0
}