summary refs log tree commit diff stats
path: root/rust/system
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-09-08 12:50:05 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2025-09-17 19:00:58 +0200
commit7c83e501565a57560aa1d87109819f46effeb7fc (patch)
treec84ad362e34164ef765bb80dd78a657a2c737e25 /rust/system
parentefe8d07383e22e39e4dafbc08855956a459b395f (diff)
downloadfocaccia-qemu-7c83e501565a57560aa1d87109819f46effeb7fc.tar.gz
focaccia-qemu-7c83e501565a57560aa1d87109819f46effeb7fc.zip
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>
Diffstat (limited to 'rust/system')
-rw-r--r--rust/system/src/memory.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/rust/system/src/memory.rs b/rust/system/src/memory.rs
index 02aa3af7b1..4b3316bf76 100644
--- a/rust/system/src/memory.rs
+++ b/rust/system/src/memory.rs
@@ -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,