aboutsummaryrefslogtreecommitdiff
path: root/rust/qemu-api
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-02-09 23:47:35 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-04-25 17:00:41 +0200
commit12d1a768bdfea6e27a3a829228840d72507613a1 (patch)
tree1293456896e507c4dcb859197ccafa0719aa7f65 /rust/qemu-api
parentf1fa787b92c52d1034de164d2a26771ff969454e (diff)
downloadqemu-12d1a768bdfea6e27a3a829228840d72507613a1.zip
qemu-12d1a768bdfea6e27a3a829228840d72507613a1.tar.gz
qemu-12d1a768bdfea6e27a3a829228840d72507613a1.tar.bz2
qom: Have class_init() take a const data argument
Mechanical change using gsed, then style manually adapted to pass checkpatch.pl script. Suggested-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20250424194905.82506-4-philmd@linaro.org>
Diffstat (limited to 'rust/qemu-api')
-rw-r--r--rust/qemu-api/src/qom.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/qemu-api/src/qom.rs b/rust/qemu-api/src/qom.rs
index 03fe624..f385cb7 100644
--- a/rust/qemu-api/src/qom.rs
+++ b/rust/qemu-api/src/qom.rs
@@ -227,7 +227,7 @@ unsafe extern "C" fn rust_instance_post_init<T: ObjectImpl>(obj: *mut bindings::
unsafe extern "C" fn rust_class_init<T: ObjectType + ObjectImpl>(
klass: *mut ObjectClass,
- _data: *mut c_void,
+ _data: *const c_void,
) {
let mut klass = NonNull::new(klass)
.unwrap()