diff options
| author | Zhao Liu <zhao1.liu@intel.com> | 2025-09-21 00:05:18 +0800 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-09-22 17:17:19 +0200 |
| commit | 4f09cf54faad32d41dfb5ccdd4c0e7871b636274 (patch) | |
| tree | 361db92de342057cad0fe65cc00aea3b901ffb1c /rust/hw/timer/hpet/src/device.rs | |
| parent | a8f080215f79d211c4be0f896ad5f32dbc3b7c03 (diff) | |
| download | focaccia-qemu-4f09cf54faad32d41dfb5ccdd4c0e7871b636274.tar.gz focaccia-qemu-4f09cf54faad32d41dfb5ccdd4c0e7871b636274.zip | |
rust/hpet: Clean up type mismatch for num_timers property
Now `num_timers` is `usize` other than `u8`. Although the type field in `declare_properties` macro hasn't been used, it's better to explicitly point this out and clean up this before doing other property work. Signed-off-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Link: https://lore.kernel.org/r/20250920160520.3699591-11-zhao1.liu@intel.com
Diffstat (limited to 'rust/hw/timer/hpet/src/device.rs')
| -rw-r--r-- | rust/hw/timer/hpet/src/device.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/hw/timer/hpet/src/device.rs b/rust/hw/timer/hpet/src/device.rs index 3cfbe9c32b..fce7541557 100644 --- a/rust/hw/timer/hpet/src/device.rs +++ b/rust/hw/timer/hpet/src/device.rs @@ -909,7 +909,7 @@ declare_properties! { HPETState, num_timers, unsafe { &qdev_prop_usize }, - u8, + usize, default = HPET_MIN_TIMERS ), define_property!( |