mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-08 10:25:20 +02:00
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:
parent
9de0b6bca4
commit
bee37573f9
|
@ -391,12 +391,18 @@ unsafe extern "C" fn rust_binder_flush(
|
||||||
}
|
}
|
||||||
|
|
||||||
#[no_mangle]
|
#[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
|
0
|
||||||
}
|
}
|
||||||
|
|
||||||
#[no_mangle]
|
#[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
|
// SAFETY: The caller ensures that the pointer is valid and exclusive for the duration in which
|
||||||
// this method is called.
|
// this method is called.
|
||||||
let m = unsafe { SeqFile::from_raw(ptr) };
|
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]
|
#[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
|
0
|
||||||
}
|
}
|
||||||
|
|
||||||
#[no_mangle]
|
#[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
|
0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user