diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-05-02 10:35:49 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-05-06 16:02:04 +0200 |
| commit | b134a09ffab3b918979007cf40f603e5b54ed597 (patch) | |
| tree | 5272bd8852bc433ae6e2045a5b30f69c8ccda17c /rust/hw/timer | |
| parent | 5df3fe062fb0be9a6689dc0336087b214dd30e5c (diff) | |
| download | focaccia-qemu-b134a09ffab3b918979007cf40f603e5b54ed597.tar.gz focaccia-qemu-b134a09ffab3b918979007cf40f603e5b54ed597.zip | |
rust: remove offset_of replacement
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'rust/hw/timer')
| -rw-r--r-- | rust/hw/timer/hpet/src/hpet.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/hw/timer/hpet/src/hpet.rs b/rust/hw/timer/hpet/src/hpet.rs index b7a1be05de..719343a20c 100644 --- a/rust/hw/timer/hpet/src/hpet.rs +++ b/rust/hw/timer/hpet/src/hpet.rs @@ -183,7 +183,7 @@ fn timer_handler(timer_cell: &BqlRefCell<HPETTimer>) { /// HPET Timer Abstraction #[repr(C)] -#[derive(Debug, qemu_api_macros::offsets)] +#[derive(Debug)] pub struct HPETTimer { /// timer N index within the timer block (`HPETState`) #[doc(alias = "tn")] @@ -523,7 +523,7 @@ impl HPETTimer { /// HPET Event Timer Block Abstraction #[repr(C)] -#[derive(qemu_api_macros::Object, qemu_api_macros::offsets)] +#[derive(qemu_api_macros::Object)] pub struct HPETState { parent_obj: ParentField<SysBusDevice>, iomem: MemoryRegion, |