build: Bump bitflags to 2.4.1

This is resolve the following clippy error:

warning: &-masking with zero
  --> devices/src/lib.rs:26:1
   |
26 | / bitflags! {
27 | |     pub struct AcpiNotificationFlags: u8 {
28 | |         const NO_DEVICES_CHANGED = 0;
29 | |         const CPU_DEVICES_CHANGED = 0b1;
...  |
33 | |     }
34 | | }
   | |_^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bad_bit_mask
   = note: `#[warn(clippy::bad_bit_mask)]` on by default
   = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)

Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
Bo Chen
2024-01-09 15:50:09 -08:00
committed by Bo Chen
parent 98b28d5866
commit 87d765a168
4 changed files with 35 additions and 22 deletions

28
Cargo.lock generated
View File

@@ -80,6 +80,12 @@ version = "1.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]]
name = "bitflags"
version = "2.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "327762f6e5a765692301e5bb513e0d9fef63be86bbc14528052b1cd3e6f03e07"
[[package]]
name = "block_util"
version = "0.1.0"
@@ -123,7 +129,7 @@ version = "4.0.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4d63b9e9c07271b9957ad22c173bae2a4d9a81127680962039296abcd2f8251d"
dependencies = [
"bitflags",
"bitflags 1.3.2",
"clap_lex",
"is-terminal",
"once_cell",
@@ -227,7 +233,7 @@ dependencies = [
"acpi_tables",
"anyhow",
"arch",
"bitflags",
"bitflags 2.4.1",
"byteorder",
"hypervisor",
"libc",
@@ -282,7 +288,7 @@ version = "4.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "20df693c700404f7e19d4d6fae6b15215d2913c27955d2b9d6f2c0f537511cd0"
dependencies = [
"bitflags",
"bitflags 1.3.2",
"libc",
]
@@ -335,7 +341,7 @@ version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32c95766e0414f8bfc1d07055574c621b67739466d6ba516c4fef8e99d30d2e6"
dependencies = [
"bitflags",
"bitflags 1.3.2",
"cfg-if",
"log",
"managed",
@@ -448,7 +454,7 @@ version = "0.5.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7ba34abb5175052fc1a2227a10d2275b7386c9990167de9786c0b88d8b062330"
dependencies = [
"bitflags",
"bitflags 1.3.2",
"libc",
]
@@ -963,7 +969,7 @@ version = "0.2.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a"
dependencies = [
"bitflags",
"bitflags 1.3.2",
]
[[package]]
@@ -1020,7 +1026,7 @@ version = "0.36.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a3807b5d10909833d3e9acd1eb5fb988f79376ff10fce42937de71a449c4c588"
dependencies = [
"bitflags",
"bitflags 1.3.2",
"errno",
"io-lifetimes",
"libc",
@@ -1149,7 +1155,7 @@ version = "0.9.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "269343e64430067a14937ae0e3c4ec604c178fb896dde0964b1acd22b3e2eeb1"
dependencies = [
"bitflags",
"bitflags 1.3.2",
"libc",
"libssh2-sys",
"parking_lot",
@@ -1363,7 +1369,7 @@ version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c9b791c5b0717a0558888a4cf7240cea836f39a99cb342e12ce633dcaa078072"
dependencies = [
"bitflags",
"bitflags 1.3.2",
"libc",
"vm-memory",
"vmm-sys-util",
@@ -1543,7 +1549,7 @@ dependencies = [
"anyhow",
"arc-swap",
"arch",
"bitflags",
"bitflags 2.4.1",
"block_util",
"clap",
"devices",
@@ -1590,7 +1596,7 @@ version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cc06a16ee8ebf0d9269aed304030b0d20a866b8b3dd3d4ce532596ac567a0d24"
dependencies = [
"bitflags",
"bitflags 1.3.2",
"libc",
"serde",
"serde_derive",

View File

@@ -8,7 +8,7 @@ edition = "2021"
acpi_tables = { path = "../acpi_tables" }
anyhow = "1.0.66"
arch = { path = "../arch" }
bitflags = "1.3.2"
bitflags = "2.4.1"
byteorder = "1.4.3"
hypervisor = { path = "../hypervisor" }
libc = "0.2.138"

25
fuzz/Cargo.lock generated
View File

@@ -71,6 +71,12 @@ version = "1.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]]
name = "bitflags"
version = "2.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "327762f6e5a765692301e5bb513e0d9fef63be86bbc14528052b1cd3e6f03e07"
[[package]]
name = "block_util"
version = "0.1.0"
@@ -117,7 +123,7 @@ version = "4.0.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4d63b9e9c07271b9957ad22c173bae2a4d9a81127680962039296abcd2f8251d"
dependencies = [
"bitflags",
"bitflags 1.3.2",
"clap_lex",
"is-terminal",
"once_cell",
@@ -137,7 +143,7 @@ dependencies = [
[[package]]
name = "cloud-hypervisor"
version = "28.0.0"
version = "28.3.0"
dependencies = [
"anyhow",
"api_client",
@@ -240,7 +246,7 @@ dependencies = [
"acpi_tables",
"anyhow",
"arch",
"bitflags",
"bitflags 2.4.1",
"byteorder",
"hypervisor",
"libc",
@@ -262,7 +268,7 @@ version = "4.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "20df693c700404f7e19d4d6fae6b15215d2913c27955d2b9d6f2c0f537511cd0"
dependencies = [
"bitflags",
"bitflags 1.3.2",
"libc",
]
@@ -292,6 +298,7 @@ name = "event_monitor"
version = "0.1.0"
dependencies = [
"libc",
"once_cell",
"serde",
"serde_json",
]
@@ -379,7 +386,7 @@ version = "0.5.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7ba34abb5175052fc1a2227a10d2275b7386c9990167de9786c0b88d8b062330"
dependencies = [
"bitflags",
"bitflags 1.3.2",
"libc",
]
@@ -675,7 +682,7 @@ version = "0.36.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a3807b5d10909833d3e9acd1eb5fb988f79376ff10fce42937de71a449c4c588"
dependencies = [
"bitflags",
"bitflags 1.3.2",
"errno",
"io-lifetimes",
"libc",
@@ -971,7 +978,7 @@ version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c9b791c5b0717a0558888a4cf7240cea836f39a99cb342e12ce633dcaa078072"
dependencies = [
"bitflags",
"bitflags 1.3.2",
"libc",
"vm-memory",
"vmm-sys-util",
@@ -1098,7 +1105,7 @@ dependencies = [
"anyhow",
"arc-swap",
"arch",
"bitflags",
"bitflags 2.4.1",
"block_util",
"clap",
"devices",
@@ -1143,7 +1150,7 @@ version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cc06a16ee8ebf0d9269aed304030b0d20a866b8b3dd3d4ce532596ac567a0d24"
dependencies = [
"bitflags",
"bitflags 1.3.2",
"libc",
"serde",
"serde_derive",

View File

@@ -17,7 +17,7 @@ acpi_tables = { path = "../acpi_tables" }
anyhow = "1.0.66"
arc-swap = "1.5.1"
arch = { path = "../arch" }
bitflags = "1.3.2"
bitflags = "2.4.1"
block_util = { path = "../block_util" }
clap = "4.0.29"
devices = { path = "../devices" }