From: Zhao Liu Date: Sat, 20 Sep 2025 16:05:18 +0000 (+0800) Subject: rust/hpet: Clean up type mismatch for num_timers property X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4f09cf54faad32d41dfb5ccdd4c0e7871b636274;p=thirdparty%2Fqemu.git 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 Signed-off-by: Paolo Bonzini Link: https://lore.kernel.org/r/20250920160520.3699591-11-zhao1.liu@intel.com --- diff --git a/rust/hw/timer/hpet/src/device.rs b/rust/hw/timer/hpet/src/device.rs index 3cfbe9c32bb..fce75415579 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!(