]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
rust/hpet: Clean up type mismatch for num_timers property
authorZhao Liu <zhao1.liu@intel.com>
Sat, 20 Sep 2025 16:05:18 +0000 (00:05 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 22 Sep 2025 15:17:19 +0000 (17:17 +0200)
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
rust/hw/timer/hpet/src/device.rs

index 3cfbe9c32bb18003e832f78632a3fbfc6a98e074..fce75415579ddbb229c9d6c92ef2d7abc21748da 100644 (file)
@@ -909,7 +909,7 @@ declare_properties! {
         HPETState,
         num_timers,
         unsafe { &qdev_prop_usize },
-        u8,
+        usize,
         default = HPET_MIN_TIMERS
     ),
     define_property!(