mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-31 14:23:53 -06:00
rust/vmstate: Remove unnecessary unsafe
Remove the `unsafe` block of vmsd, because vmsd (passed to vmstate_struct) is defined in Rust side now, and it doesn't need `unsafe`. Signed-off-by: Zhao Liu <zhao1.liu@intel.com> Link: https://lore.kernel.org/r/20250318130219.1799170-2-zhao1.liu@intel.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
e16354b7f2
commit
ea8a7ceba3
1 changed files with 1 additions and 1 deletions
|
@ -447,7 +447,7 @@ macro_rules! vmstate_struct {
|
||||||
},
|
},
|
||||||
size: ::core::mem::size_of::<$type>(),
|
size: ::core::mem::size_of::<$type>(),
|
||||||
flags: $crate::bindings::VMStateFlags::VMS_STRUCT,
|
flags: $crate::bindings::VMStateFlags::VMS_STRUCT,
|
||||||
vmsd: unsafe { $vmsd },
|
vmsd: $vmsd,
|
||||||
..$crate::zeroable::Zeroable::ZERO $(
|
..$crate::zeroable::Zeroable::ZERO $(
|
||||||
.with_varray_flag($crate::call_func_with_field!(
|
.with_varray_flag($crate::call_func_with_field!(
|
||||||
$crate::vmstate::vmstate_varray_flag,
|
$crate::vmstate::vmstate_varray_flag,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue