rust: do not inline do_init_io
This is now possible since the hwcore integration tests do not link the system crate anymore. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Link: https://lore.kernel.org/r/20250908105005.2119297-34-pbonzini@redhat.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
efe8d07383
commit
7c83e50156
1 changed files with 0 additions and 5 deletions
|
|
@ -136,11 +136,6 @@ unsafe impl Send for MemoryRegion {}
|
|||
unsafe impl Sync for MemoryRegion {}
|
||||
|
||||
impl MemoryRegion {
|
||||
// inline to ensure that it is not included in tests, which only
|
||||
// link to hwcore and qom. FIXME: inlining is actually the opposite
|
||||
// of what we want, since this is the type-erased version of the
|
||||
// init_io function below. Look into splitting the qemu_api crate.
|
||||
#[inline(always)]
|
||||
unsafe fn do_init_io(
|
||||
slot: *mut bindings::MemoryRegion,
|
||||
owner: *mut bindings::Object,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue