mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
build: fix warnings from latest nightly (1.91)
The underlying problem currently causes unrelated PRs to fail. This commit fixes that. Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com
This commit is contained in:
committed by
Alyssa Ross
parent
a132001021
commit
c34baac649
@@ -211,7 +211,7 @@ impl MsixConfig {
|
||||
}
|
||||
|
||||
pub fn read_table(&self, offset: u64, data: &mut [u8]) {
|
||||
assert!((data.len() == 4 || data.len() == 8));
|
||||
assert!(data.len() == 4 || data.len() == 8);
|
||||
|
||||
let index: usize = (offset / MSIX_TABLE_ENTRIES_MODULO) as usize;
|
||||
let modulo_offset = offset % MSIX_TABLE_ENTRIES_MODULO;
|
||||
@@ -264,7 +264,7 @@ impl MsixConfig {
|
||||
}
|
||||
|
||||
pub fn write_table(&mut self, offset: u64, data: &[u8]) {
|
||||
assert!((data.len() == 4 || data.len() == 8));
|
||||
assert!(data.len() == 4 || data.len() == 8);
|
||||
|
||||
let index: usize = (offset / MSIX_TABLE_ENTRIES_MODULO) as usize;
|
||||
let modulo_offset = offset % MSIX_TABLE_ENTRIES_MODULO;
|
||||
@@ -360,7 +360,7 @@ impl MsixConfig {
|
||||
}
|
||||
|
||||
pub fn read_pba(&mut self, offset: u64, data: &mut [u8]) {
|
||||
assert!((data.len() == 4 || data.len() == 8));
|
||||
assert!(data.len() == 4 || data.len() == 8);
|
||||
|
||||
let index: usize = (offset / MSIX_PBA_ENTRIES_MODULO) as usize;
|
||||
let modulo_offset = offset % MSIX_PBA_ENTRIES_MODULO;
|
||||
|
||||
Reference in New Issue
Block a user