mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
The `tpm` module in the `devices` crate is disabled on riscv64 (see commit0042447fb"devices: Disable tpm module for riscv64"), and every use of `tpm` in the device manager is already gated behind `#[cfg(not(target_arch = "riscv64"))]`. However, the import itself was merged into the unconditional `use devices::{...}` line in commit025e782e5"vmm: trim qualified paths", which broke the riscv64 build: error[E0432]: unresolved import `devices::tpm` --> vmm/src/device_manager.rs:70:83 Split the `tpm` import out into its own line gated with `#[cfg(not(target_arch = "riscv64"))]`, matching all of its usages. Signed-off-by: Gauthier Jolly <contact@gjolly.fr>