[INFO] cloning repository https://github.com/redox-os/drivers [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/redox-os/drivers" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fredox-os%2Fdrivers", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fredox-os%2Fdrivers'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 37a2234afdeb4ced5c95cf447ee74d5e77e53055 [INFO] checking redox-os/drivers against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fredox-os%2Fdrivers" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/redox-os/drivers on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-0-tc1/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/redox-os/drivers [INFO] finished tweaking git repo https://github.com/redox-os/drivers [INFO] tweaked toml for git repo https://github.com/redox-os/drivers written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/redox-os/drivers already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Updating git repository `https://gitlab.redox-os.org/redox-os/mio.git` [INFO] [stderr] Updating git repository `https://gitlab.redox-os.org/redox-os/orbclient.git` [INFO] [stderr] Updating git repository `https://gitlab.redox-os.org/redox-os/redox-daemon.git` [INFO] [stderr] Updating git repository `https://github.com/rw-vanc/acpi.git` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Updating git repository `https://gitlab.redox-os.org/rosehuds/fdt.git` [INFO] [stderr] Updating git repository `https://gitlab.redox-os.org/redox-os/rehid.git` [INFO] [stderr] Updating git repository `https://gitlab.redox-os.org/redox-os/redox-scheme.git` [INFO] [stderr] Updating git repository `https://gitlab.redox-os.org/redox-os/partitionlib.git` [INFO] [stderr] warning: Patch `mio v0.6.14 (https://gitlab.redox-os.org/redox-os/mio.git?branch=redox-unix#c9a70849)` was not used in the crate graph. [INFO] [stderr] Check that the patched package version and available features are compatible [INFO] [stderr] with the dependency requirements. If the patch has a different version from [INFO] [stderr] what is locked in the Cargo.lock file, run `cargo update` to use the new [INFO] [stderr] version. This may also occur with an optional dependency that is not enabled. [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded termion v4.0.2 [INFO] [stderr] Downloaded paw-raw v1.0.0 [INFO] [stderr] Downloaded redox_event v0.4.1 [INFO] [stderr] Downloaded pci_types v0.10.0 [INFO] [stderr] Downloaded paw-attributes v1.0.2 [INFO] [stderr] Downloaded paw v1.0.0 [INFO] [stderr] Downloaded gpt v3.1.0 [INFO] [stderr] Downloaded ransid v0.4.9 [INFO] [stderr] Downloaded vte v0.3.3 [INFO] [stderr] Downloaded redox-log v0.1.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 196b4fee035d261bf8dc8f1f22dc0485af736e9b1231633e67a0f7b7f3f2807e [INFO] running `Command { std: "docker" "start" "-a" "196b4fee035d261bf8dc8f1f22dc0485af736e9b1231633e67a0f7b7f3f2807e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "196b4fee035d261bf8dc8f1f22dc0485af736e9b1231633e67a0f7b7f3f2807e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "196b4fee035d261bf8dc8f1f22dc0485af736e9b1231633e67a0f7b7f3f2807e", kill_on_drop: false }` [INFO] [stdout] 196b4fee035d261bf8dc8f1f22dc0485af736e9b1231633e67a0f7b7f3f2807e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a82286b2f47ae897198e00554532ffda80e3a2511f513d574b1536d7e9e5fa0c [INFO] running `Command { std: "docker" "start" "-a" "a82286b2f47ae897198e00554532ffda80e3a2511f513d574b1536d7e9e5fa0c", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] warning: Patch `mio v0.6.14 (https://gitlab.redox-os.org/redox-os/mio.git?branch=redox-unix#c9a70849)` was not used in the crate graph. [INFO] [stderr] Check that the patched package version and available features are compatible [INFO] [stderr] with the dependency requirements. If the patch has a different version from [INFO] [stderr] what is locked in the Cargo.lock file, run `cargo update` to use the new [INFO] [stderr] version. This may also occur with an optional dependency that is not enabled. [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking numtoa v0.1.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Checking redox_syscall v0.5.3 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking bit_field v0.10.2 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling thiserror v1.0.62 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Compiling unicode-segmentation v1.11.0 [INFO] [stderr] Checking unicode-width v0.1.13 [INFO] [stderr] Checking paw-raw v1.0.0 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Checking plain v0.2.3 [INFO] [stderr] Compiling syn v2.0.71 [INFO] [stderr] Checking libredox v0.1.3 [INFO] [stderr] Checking termion v4.0.2 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Checking redox-daemon v0.1.3 (https://gitlab.redox-os.org/redox-os/redox-daemon.git#31ab115c) [INFO] [stderr] Checking redox_event v0.4.1 [INFO] [stderr] Checking fdt v0.1.0 (https://gitlab.redox-os.org/rosehuds/fdt.git#73586076) [INFO] [stderr] Checking pci_types v0.10.0 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Compiling version-compare v0.1.1 [INFO] [stderr] Compiling sdl2 v0.35.2 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling sdl2-sys v0.35.2 [INFO] [stderr] Compiling orbclient v0.3.47 (https://gitlab.redox-os.org/redox-os/orbclient.git#563f1457) [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking smallvec v0.6.14 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking crc-catalog v2.4.0 [INFO] [stderr] Checking owning_ref v0.3.3 [INFO] [stderr] Checking crc v3.2.1 [INFO] [stderr] Checking uuid v1.10.0 [INFO] [stderr] Checking redox-scheme v0.2.1 (https://gitlab.redox-os.org/redox-os/redox-scheme.git#79d9d54f) [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Checking crossbeam-channel v0.4.4 [INFO] [stderr] Checking parking_lot_core v0.2.14 [INFO] [stderr] Checking gpt v3.1.0 [INFO] [stderr] Checking driver-network v0.1.0 (/opt/rustwide/workdir/net/driver-network) [INFO] [stderr] Checking parking_lot v0.4.8 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking chashmap v2.2.2 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Checking wyz v0.5.1 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Checking crossbeam-queue v0.3.11 [INFO] [stderr] Checking winnow v0.5.40 [INFO] [stderr] Checking utf8parse v0.1.1 [INFO] [stderr] Checking spinning_top v0.2.5 [INFO] [stderr] Checking vte v0.3.3 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Checking ransid v0.4.9 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Checking instant v0.1.13 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Checking ux v0.1.6 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking fdt v0.1.5 [INFO] [stderr] Checking base64 v0.11.0 [INFO] [stderr] Checking lived v0.1.0 (/opt/rustwide/workdir/storage/lived) [INFO] [stderr] Checking pcspkrd v0.1.0 (/opt/rustwide/workdir/audio/pcspkrd) [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Compiling thiserror-impl v1.0.62 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling paw-attributes v1.0.2 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Compiling scroll_derive v0.10.5 [INFO] [stderr] Checking paw v1.0.0 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Checking scroll v0.10.2 [INFO] [stderr] Checking aml v0.16.3 (https://github.com/rw-vanc/acpi.git?branch=cumulative#e4eb9389) [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking partitionlib v0.1.0 (https://gitlab.redox-os.org/redox-os/partitionlib.git#9e48718a) [INFO] [stderr] Checking driver-block v0.1.0 (/opt/rustwide/workdir/storage/driver-block) [INFO] [stderr] Checking structopt v0.3.26 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking toml v0.5.11 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking toml_datetime v0.6.6 [INFO] [stderr] Checking serde_spanned v0.6.6 [INFO] [stderr] Checking toml_edit v0.19.15 [INFO] [stderr] Checking redox-log v0.1.3 [INFO] [stderr] Checking common v0.1.0 (/opt/rustwide/workdir/common) [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking inputd v0.1.0 (/opt/rustwide/workdir/inputd) [INFO] [stderr] Checking alxd v0.1.0 (/opt/rustwide/workdir/net/alxd) [INFO] [stdout] warning: unused macro definition: `goto_out` [INFO] [stdout] --> net/alxd/src/device/mod.rs:1728:22 [INFO] [stdout] | [INFO] [stdout] 1728 | macro_rules! goto_out { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking fbcond v0.1.0 (/opt/rustwide/workdir/graphics/fbcond) [INFO] [stdout] warning: unused variable: `stride` [INFO] [stdout] --> graphics/fbcond/src/scheme.rs:84:55 [INFO] [stdout] | [INFO] [stdout] 84 | fn resize(&mut self, width: usize, height: usize, stride: usize) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stride` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stride` [INFO] [stdout] --> graphics/fbcond/src/scheme.rs:84:55 [INFO] [stdout] | [INFO] [stdout] 84 | fn resize(&mut self, width: usize, height: usize, stride: usize) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stride` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `resize` is never used [INFO] [stdout] --> graphics/fbcond/src/display.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl Display { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn resize(&mut self, width: usize, height: usize) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `resize` is never used [INFO] [stdout] --> graphics/fbcond/src/scheme.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 42 | impl FbconScheme { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 84 | fn resize(&mut self, width: usize, height: usize, stride: usize) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `resize` is never used [INFO] [stdout] --> graphics/fbcond/src/text.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl TextScreen { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn resize(&mut self, width: usize, height: usize) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `resize` is never used [INFO] [stdout] --> graphics/fbcond/src/display.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl Display { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn resize(&mut self, width: usize, height: usize) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `resize` is never used [INFO] [stdout] --> graphics/fbcond/src/scheme.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 42 | impl FbconScheme { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 84 | fn resize(&mut self, width: usize, height: usize, stride: usize) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `resize` is never used [INFO] [stdout] --> graphics/fbcond/src/text.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl TextScreen { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn resize(&mut self, width: usize, height: usize) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking vesad v0.1.0 (/opt/rustwide/workdir/graphics/vesad) [INFO] [stderr] Checking sb16d v0.1.0 (/opt/rustwide/workdir/audio/sb16d) [INFO] [stdout] warning: value assigned to `val` is never read [INFO] [stdout] --> net/alxd/src/device/mod.rs:671:6 [INFO] [stdout] | [INFO] [stdout] 671 | val = self.read(WOL0); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `err` is never read [INFO] [stdout] --> net/alxd/src/device/mod.rs:1129:6 [INFO] [stdout] | [INFO] [stdout] 1129 | err = self.read_phy_reg(MII_BMSR, &mut bmsr); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `val` is never read [INFO] [stdout] --> net/alxd/src/device/mod.rs:1284:6 [INFO] [stdout] | [INFO] [stdout] 1284 | val = self.read(DMA); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking pcid v0.1.0 (/opt/rustwide/workdir/pcid) [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking bcm2835-sdhcid v0.1.0 (/opt/rustwide/workdir/storage/bcm2835-sdhcid) [INFO] [stderr] Checking ps2d v0.1.0 (/opt/rustwide/workdir/ps2d) [INFO] [stdout] warning: unused import: `node::FdtNode` [INFO] [stdout] --> storage/bcm2835-sdhcid/src/main.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use fdt::{Fdt, node::FdtNode}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Mutex` and `self` [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{sync::{Mutex, RwLock}, time::{self, Duration}, thread}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:439:13 [INFO] [stdout] | [INFO] [stdout] 439 | d = ( ((d & 0xff) << 8)| h); [INFO] [stdout] | ^^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 439 - d = ( ((d & 0xff) << 8)| h); [INFO] [stdout] 439 + d = ((d & 0xff) << 8)| h; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:539:20 [INFO] [stdout] | [INFO] [stdout] 539 | err |= ((reg_val & 0x2000) << 6); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 539 - err |= ((reg_val & 0x2000) << 6); [INFO] [stdout] 539 + err |= (reg_val & 0x2000) << 6; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:540:20 [INFO] [stdout] | [INFO] [stdout] 540 | err |= ((reg_val & 0x4000) << 8); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 540 - err |= ((reg_val & 0x4000) << 8); [INFO] [stdout] 540 + err |= (reg_val & 0x4000) << 8; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:541:20 [INFO] [stdout] | [INFO] [stdout] 541 | err |= ((reg_val & 0x8000) << 8); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 541 - err |= ((reg_val & 0x8000) << 8); [INFO] [stdout] 541 + err |= (reg_val & 0x8000) << 8; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TryFrom` [INFO] [stdout] --> storage/bcm2835-sdhcid/src/scheme.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | use std::convert::{TryFrom}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc` and `Mutex` [INFO] [stdout] --> storage/bcm2835-sdhcid/src/scheme.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::os::unix::io::AsRawFd` [INFO] [stdout] --> ps2d/src/state.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::unix::io::AsRawFd; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str` [INFO] [stdout] --> ps2d/src/state.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::str; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `asm_const` has been stable since 1.82.0-nightly and no longer requires an attribute to enable [INFO] [stdout] --> ps2d/src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(asm_const)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `node::FdtNode` [INFO] [stdout] --> storage/bcm2835-sdhcid/src/main.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use fdt::{Fdt, node::FdtNode}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Mutex` and `self` [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{sync::{Mutex, RwLock}, time::{self, Duration}, thread}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:439:13 [INFO] [stdout] | [INFO] [stdout] 439 | d = ( ((d & 0xff) << 8)| h); [INFO] [stdout] | ^^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 439 - d = ( ((d & 0xff) << 8)| h); [INFO] [stdout] 439 + d = ((d & 0xff) << 8)| h; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:539:20 [INFO] [stdout] | [INFO] [stdout] 539 | err |= ((reg_val & 0x2000) << 6); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 539 - err |= ((reg_val & 0x2000) << 6); [INFO] [stdout] 539 + err |= (reg_val & 0x2000) << 6; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:540:20 [INFO] [stdout] | [INFO] [stdout] 540 | err |= ((reg_val & 0x4000) << 8); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 540 - err |= ((reg_val & 0x4000) << 8); [INFO] [stdout] 540 + err |= (reg_val & 0x4000) << 8; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:541:20 [INFO] [stdout] | [INFO] [stdout] 541 | err |= ((reg_val & 0x8000) << 8); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 541 - err |= ((reg_val & 0x8000) << 8); [INFO] [stdout] 541 + err |= (reg_val & 0x8000) << 8; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TryFrom` [INFO] [stdout] --> storage/bcm2835-sdhcid/src/scheme.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | use std::convert::{TryFrom}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc` and `Mutex` [INFO] [stdout] --> storage/bcm2835-sdhcid/src/scheme.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Io` [INFO] [stdout] --> storage/bcm2835-sdhcid/src/scheme.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | Io, SchemeBlockMut, Stat, MODE_DIR, MODE_FILE, O_DIRECTORY, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:41:32 [INFO] [stdout] | [INFO] [stdout] 41 | pub(crate) unsafe fn wait_msec(mut n: usize) { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `cnt` is never read [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:385:17 [INFO] [stdout] | [INFO] [stdout] 385 | let mut cnt: i32 = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:417:41 [INFO] [stdout] | [INFO] [stdout] 417 | if (x & 0x8000_0000) == 0 { x <<= 1; s -= 1; } [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `d` is never read [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:421:17 [INFO] [stdout] | [INFO] [stdout] 421 | let mut d = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reg_val` [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:602:17 [INFO] [stdout] | [INFO] [stdout] 602 | let mut reg_val: usize = 0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reg_val` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:602:13 [INFO] [stdout] | [INFO] [stdout] 602 | let mut reg_val: usize = 0; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reg_val` [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:657:17 [INFO] [stdout] | [INFO] [stdout] 657 | let mut reg_val: usize = 0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reg_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:657:13 [INFO] [stdout] | [INFO] [stdout] 657 | let mut reg_val: usize = 0; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `C0_SPI_MODE_EN` is never used [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:81:7 [INFO] [stdout] | [INFO] [stdout] 81 | const C0_SPI_MODE_EN: u32 = 0x0010_0000; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `C0_HCTL_HS_EN` is never used [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:82:7 [INFO] [stdout] | [INFO] [stdout] 82 | const C0_HCTL_HS_EN: u32 = 0x0000_0004; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `C1_SRST_DATA` is never used [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:85:7 [INFO] [stdout] | [INFO] [stdout] 85 | const C1_SRST_DATA: u32 = 0x0400_0000; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `C1_SRST_CMD` is never used [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:86:7 [INFO] [stdout] | [INFO] [stdout] 86 | const C1_SRST_CMD: u32 = 0x0200_0000; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `C1_TOUNIT_DIS` is never used [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:88:7 [INFO] [stdout] | [INFO] [stdout] 88 | const C1_TOUNIT_DIS: u32 = 0x000f_0000; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `C1_CLK_GENSEL` is never used [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:90:7 [INFO] [stdout] | [INFO] [stdout] 90 | const C1_CLK_GENSEL: u32 = 0x0000_0020; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HOST_SPEC_V3` is never used [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:107:7 [INFO] [stdout] | [INFO] [stdout] 107 | const HOST_SPEC_V3: u32 = 2; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HOST_SPEC_V1` is never used [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:109:7 [INFO] [stdout] | [INFO] [stdout] 109 | const HOST_SPEC_V1: u32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Io` [INFO] [stdout] --> storage/bcm2835-sdhcid/src/scheme.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | Io, SchemeBlockMut, Stat, MODE_DIR, MODE_FILE, O_DIRECTORY, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:41:32 [INFO] [stdout] | [INFO] [stdout] 41 | pub(crate) unsafe fn wait_msec(mut n: usize) { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `cnt` is never read [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:385:17 [INFO] [stdout] | [INFO] [stdout] 385 | let mut cnt: i32 = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:417:41 [INFO] [stdout] | [INFO] [stdout] 417 | if (x & 0x8000_0000) == 0 { x <<= 1; s -= 1; } [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `d` is never read [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:421:17 [INFO] [stdout] | [INFO] [stdout] 421 | let mut d = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reg_val` [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:602:17 [INFO] [stdout] | [INFO] [stdout] 602 | let mut reg_val: usize = 0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reg_val` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:602:13 [INFO] [stdout] | [INFO] [stdout] 602 | let mut reg_val: usize = 0; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reg_val` [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:657:17 [INFO] [stdout] | [INFO] [stdout] 657 | let mut reg_val: usize = 0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reg_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:657:13 [INFO] [stdout] | [INFO] [stdout] 657 | let mut reg_val: usize = 0; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::os::unix::io::AsRawFd` [INFO] [stdout] --> ps2d/src/state.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::unix::io::AsRawFd; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str` [INFO] [stdout] --> ps2d/src/state.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::str; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `asm_const` has been stable since 1.82.0-nightly and no longer requires an attribute to enable [INFO] [stdout] --> ps2d/src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(asm_const)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `C0_SPI_MODE_EN` is never used [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:81:7 [INFO] [stdout] | [INFO] [stdout] 81 | const C0_SPI_MODE_EN: u32 = 0x0010_0000; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `C0_HCTL_HS_EN` is never used [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:82:7 [INFO] [stdout] | [INFO] [stdout] 82 | const C0_HCTL_HS_EN: u32 = 0x0000_0004; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `C1_SRST_DATA` is never used [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:85:7 [INFO] [stdout] | [INFO] [stdout] 85 | const C1_SRST_DATA: u32 = 0x0400_0000; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `C1_SRST_CMD` is never used [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:86:7 [INFO] [stdout] | [INFO] [stdout] 86 | const C1_SRST_CMD: u32 = 0x0200_0000; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `C1_TOUNIT_DIS` is never used [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:88:7 [INFO] [stdout] | [INFO] [stdout] 88 | const C1_TOUNIT_DIS: u32 = 0x000f_0000; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `C1_CLK_GENSEL` is never used [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:90:7 [INFO] [stdout] | [INFO] [stdout] 90 | const C1_CLK_GENSEL: u32 = 0x0000_0020; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HOST_SPEC_V3` is never used [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:107:7 [INFO] [stdout] | [INFO] [stdout] 107 | const HOST_SPEC_V3: u32 = 2; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HOST_SPEC_V1` is never used [INFO] [stdout] --> storage/bcm2835-sdhcid/src/sd/mod.rs:109:7 [INFO] [stdout] | [INFO] [stdout] 109 | const HOST_SPEC_V1: u32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `config` and `next` are never used [INFO] [stdout] --> ps2d/src/controller.rs:199:8 [INFO] [stdout] | [INFO] [stdout] 116 | impl Ps2 { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 199 | fn config(&mut self) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 289 | pub fn next(&mut self) -> Option<(bool, u8)> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `goto_out` [INFO] [stdout] --> net/alxd/src/device/mod.rs:1728:22 [INFO] [stdout] | [INFO] [stdout] 1728 | macro_rules! goto_out { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ps2` is never read [INFO] [stdout] --> ps2d/src/state.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct Ps2d char> { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 26 | ps2: Ps2, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `irq` is never used [INFO] [stdout] --> ps2d/src/state.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 45 | impl char> Ps2d { [INFO] [stdout] | ------------------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn irq(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RELATIVE_PACKET` is never used [INFO] [stdout] --> ps2d/src/vm.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | pub const RELATIVE_PACKET: u32 = 0x00010000; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> ps2d/src/controller.rs:249:17 [INFO] [stdout] | [INFO] [stdout] 249 | x.write(data); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 249 | let _ = x.write(data); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `val` is never read [INFO] [stdout] --> net/alxd/src/device/mod.rs:671:6 [INFO] [stdout] | [INFO] [stdout] 671 | val = self.read(WOL0); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `err` is never read [INFO] [stdout] --> net/alxd/src/device/mod.rs:1129:6 [INFO] [stdout] | [INFO] [stdout] 1129 | err = self.read_phy_reg(MII_BMSR, &mut bmsr); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `val` is never read [INFO] [stdout] --> net/alxd/src/device/mod.rs:1284:6 [INFO] [stdout] | [INFO] [stdout] 1284 | val = self.read(DMA); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `config` and `next` are never used [INFO] [stdout] --> ps2d/src/controller.rs:199:8 [INFO] [stdout] | [INFO] [stdout] 116 | impl Ps2 { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 199 | fn config(&mut self) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 289 | pub fn next(&mut self) -> Option<(bool, u8)> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ps2` is never read [INFO] [stdout] --> ps2d/src/state.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct Ps2d char> { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 26 | ps2: Ps2, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `irq` is never used [INFO] [stdout] --> ps2d/src/state.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 45 | impl char> Ps2d { [INFO] [stdout] | ------------------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn irq(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RELATIVE_PACKET` is never used [INFO] [stdout] --> ps2d/src/vm.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | pub const RELATIVE_PACKET: u32 = 0x00010000; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> ps2d/src/controller.rs:249:17 [INFO] [stdout] | [INFO] [stdout] 249 | x.write(data); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 249 | let _ = x.write(data); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking xhcid v0.1.0 (/opt/rustwide/workdir/xhcid) [INFO] [stderr] Checking virtio-core v0.1.0 (/opt/rustwide/workdir/virtio-core) [INFO] [stderr] Checking ixgbed v1.0.0 (/opt/rustwide/workdir/net/ixgbed) [INFO] [stderr] Checking ac97d v0.1.0 (/opt/rustwide/workdir/audio/ac97d) [INFO] [stderr] Checking rtl8139d v0.1.0 (/opt/rustwide/workdir/net/rtl8139d) [INFO] [stderr] Checking ided v0.1.0 (/opt/rustwide/workdir/storage/ided) [INFO] [stdout] warning: unused import: `Result` [INFO] [stdout] --> audio/ac97d/src/main.rs:9:39 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::{ErrorKind, Read, Write, Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> audio/ac97d/src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> audio/ac97d/src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PciBar` [INFO] [stdout] --> audio/ac97d/src/main.rs:17:22 [INFO] [stdout] | [INFO] [stdout] 17 | use pcid_interface::{PciBar, PciFunctionHandle}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EventFlags` [INFO] [stdout] --> audio/ac97d/src/main.rs:18:15 [INFO] [stdout] | [INFO] [stdout] 18 | use syscall::{EventFlags, Packet, SchemeBlockMut}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> audio/ac97d/src/device.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> net/ixgbed/src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::Infallible` [INFO] [stdout] --> net/ixgbed/src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::convert::Infallible; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Result` [INFO] [stdout] --> net/ixgbed/src/main.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{Read, Result, Write}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> net/ixgbed/src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `syscall::EventFlags` [INFO] [stdout] --> net/ixgbed/src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use syscall::EventFlags; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:11:51 [INFO] [stdout] | [INFO] [stdout] 11 | pub const IXGBE_CTRL_RST_MASK: u32 = (IXGBE_CTRL_LNK_RST | IXGBE_CTRL_RST); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 11 - pub const IXGBE_CTRL_RST_MASK: u32 = (IXGBE_CTRL_LNK_RST | IXGBE_CTRL_RST); [INFO] [stdout] 11 + pub const IXGBE_CTRL_RST_MASK: u32 = IXGBE_CTRL_LNK_RST | IXGBE_CTRL_RST; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:22:51 [INFO] [stdout] | [INFO] [stdout] 22 | pub const IXGBE_AUTOC_LMS_MASK: u32 = (0x7 << IXGBE_AUTOC_LMS_SHIFT); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 22 - pub const IXGBE_AUTOC_LMS_MASK: u32 = (0x7 << IXGBE_AUTOC_LMS_SHIFT); [INFO] [stdout] 22 + pub const IXGBE_AUTOC_LMS_MASK: u32 = 0x7 << IXGBE_AUTOC_LMS_SHIFT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:23:51 [INFO] [stdout] | [INFO] [stdout] 23 | pub const IXGBE_AUTOC_LMS_10G_SERIAL: u32 = (0x3 << IXGBE_AUTOC_LMS_SHIFT); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 23 - pub const IXGBE_AUTOC_LMS_10G_SERIAL: u32 = (0x3 << IXGBE_AUTOC_LMS_SHIFT); [INFO] [stdout] 23 + pub const IXGBE_AUTOC_LMS_10G_SERIAL: u32 = 0x3 << IXGBE_AUTOC_LMS_SHIFT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:26:51 [INFO] [stdout] | [INFO] [stdout] 26 | pub const IXGBE_AUTOC_10G_XAUI: u32 = (0x0 << IXGBE_AUTOC_10G_PMA_PMD_SHIFT); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 26 - pub const IXGBE_AUTOC_10G_XAUI: u32 = (0x0 << IXGBE_AUTOC_10G_PMA_PMD_SHIFT); [INFO] [stdout] 26 + pub const IXGBE_AUTOC_10G_XAUI: u32 = 0x0 << IXGBE_AUTOC_10G_PMA_PMD_SHIFT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | (0x03C00 + (i * 4)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 40 - (0x03C00 + (i * 4)) [INFO] [stdout] 40 + 0x03C00 + (i * 4) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | (0x0CC00 + (i * 4)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 118 - (0x0CC00 + (i * 4)) [INFO] [stdout] 118 + 0x0CC00 + (i * 4) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 127 | (0x06000 + (i * 0x40)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 127 - (0x06000 + (i * 0x40)) [INFO] [stdout] 127 + 0x06000 + (i * 0x40) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:130:5 [INFO] [stdout] | [INFO] [stdout] 130 | (0x06004 + (i * 0x40)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 130 - (0x06004 + (i * 0x40)) [INFO] [stdout] 130 + 0x06004 + (i * 0x40) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:133:5 [INFO] [stdout] | [INFO] [stdout] 133 | (0x06008 + (i * 0x40)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 133 - (0x06008 + (i * 0x40)) [INFO] [stdout] 133 + 0x06008 + (i * 0x40) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 136 | (0x06028 + (i * 0x40)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 136 - (0x06028 + (i * 0x40)) [INFO] [stdout] 136 + 0x06028 + (i * 0x40) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:153:5 [INFO] [stdout] | [INFO] [stdout] 153 | (0x06010 + (i * 0x40)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 153 - (0x06010 + (i * 0x40)) [INFO] [stdout] 153 + 0x06010 + (i * 0x40) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 156 | (0x06018 + (i * 0x40)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 156 - (0x06018 + (i * 0x40)) [INFO] [stdout] 156 + 0x06018 + (i * 0x40) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:211:5 [INFO] [stdout] | [INFO] [stdout] 211 | (0x00900 + (i * 4)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 211 - (0x00900 + (i * 4)) [INFO] [stdout] 211 + 0x00900 + (i * 4) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> net/rtl8139d/src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Infallible` [INFO] [stdout] --> net/rtl8139d/src/main.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use std::convert::{Infallible, TryInto}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Result` [INFO] [stdout] --> net/rtl8139d/src/main.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::{Read, Result, Write}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> net/rtl8139d/src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `syscall::EventFlags` [INFO] [stdout] --> net/rtl8139d/src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use syscall::EventFlags; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EventQueue` [INFO] [stdout] --> virtio-core/src/transport.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use event::{EventQueue, RawEventQueue}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PciBar` [INFO] [stdout] --> storage/ided/src/main.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use pcid_interface::{PciBar, PciFunctionHandle}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ErrorKind` [INFO] [stdout] --> storage/ided/src/main.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | io::{ErrorKind, Read, Write}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Event`, `Packet`, and `flag::EVENT_READ` [INFO] [stdout] --> storage/ided/src/main.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | data::{Event, Packet}, error::{Error, ENODEV}, flag::EVENT_READ, io::Io, scheme::SchemeBlockMut, EAGAIN, EINTR, EWOULDBLOCK [INFO] [stdout] | ^^^^^ ^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> audio/ac97d/src/main.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | let mut event_queue = EventQueue::::new().expect("ac97d: Could not create event queue."); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking rtl8168d v0.1.0 (/opt/rustwide/workdir/net/rtl8168d) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> net/ixgbed/src/main.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | let mut event_queue = EventQueue::::new().expect("ixgbed: Could not create event queue."); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pkt_info` and `hdr_info` are never read [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:227:9 [INFO] [stdout] | [INFO] [stdout] 226 | pub struct ixgbe_adv_rx_desc_wb_lower_lo_dword_hs_rss { [INFO] [stdout] | ------------------------------------------ fields in this struct [INFO] [stdout] 227 | pub pkt_info: u16, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 228 | /* RSS, Pkt type */ [INFO] [stdout] 229 | pub hdr_info: u16, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ixgbe_adv_rx_desc_wb_lower_lo_dword_hs_rss` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `data` and `hs_rss` are never read [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:236:9 [INFO] [stdout] | [INFO] [stdout] 235 | pub union ixgbe_adv_rx_desc_wb_lower_lo_dword { [INFO] [stdout] | ----------------------------------- fields in this union [INFO] [stdout] 236 | pub data: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 237 | pub hs_rss: ixgbe_adv_rx_desc_wb_lower_lo_dword_hs_rss, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ixgbe_adv_rx_desc_wb_lower_lo_dword` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ip_id` and `csum` are never read [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:243:9 [INFO] [stdout] | [INFO] [stdout] 242 | pub struct ixgbe_adv_rx_desc_wb_lower_hi_dword_csum_ip { [INFO] [stdout] | ------------------------------------------- fields in this struct [INFO] [stdout] 243 | pub ip_id: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 244 | /* IP id */ [INFO] [stdout] 245 | pub csum: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ixgbe_adv_rx_desc_wb_lower_hi_dword_csum_ip` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `rss` and `csum_ip` are never read [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:252:9 [INFO] [stdout] | [INFO] [stdout] 251 | pub union ixgbe_adv_rx_desc_wb_lower_hi_dword { [INFO] [stdout] | ----------------------------------- fields in this union [INFO] [stdout] 252 | pub rss: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 253 | /* RSS Hash */ [INFO] [stdout] 254 | pub csum_ip: ixgbe_adv_rx_desc_wb_lower_hi_dword_csum_ip, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ixgbe_adv_rx_desc_wb_lower_hi_dword` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `lo_dword` and `hi_dword` are never read [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:260:9 [INFO] [stdout] | [INFO] [stdout] 259 | pub struct ixgbe_adv_rx_desc_wb_lower { [INFO] [stdout] | -------------------------- fields in this struct [INFO] [stdout] 260 | pub lo_dword: ixgbe_adv_rx_desc_wb_lower_lo_dword, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 261 | pub hi_dword: ixgbe_adv_rx_desc_wb_lower_hi_dword, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ixgbe_adv_rx_desc_wb_lower` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `vlan` is never read [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:271:9 [INFO] [stdout] | [INFO] [stdout] 266 | pub struct ixgbe_adv_rx_desc_wb_upper { [INFO] [stdout] | -------------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 271 | pub vlan: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ixgbe_adv_rx_desc_wb_upper` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `lower` is never read [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:278:9 [INFO] [stdout] | [INFO] [stdout] 277 | pub struct ixgbe_adv_rx_desc_wb { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] 278 | pub lower: ixgbe_adv_rx_desc_wb_lower, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ixgbe_adv_rx_desc_wb` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `capability` [INFO] [stdout] --> net/rtl8139d/src/main.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | ... let capability = match pcid_handle.feature_info(PciFeature::Msi).expect("rtl8139d: failed to retrieve the MSI capability structure ... [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_capability` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `rsvd` and `nxtseq_seed` are never read [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:303:9 [INFO] [stdout] | [INFO] [stdout] 302 | pub struct ixgbe_adv_tx_desc_wb { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 303 | pub rsvd: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 304 | /* Reserved */ [INFO] [stdout] 305 | pub nxtseq_seed: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ixgbe_adv_tx_desc_wb` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> net/rtl8139d/src/main.rs:204:9 [INFO] [stdout] | [INFO] [stdout] 204 | let mut event_queue = EventQueue::::new().expect("rtl8139d: Could not create event queue."); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TSD_TOK` is never used [INFO] [stdout] --> net/rtl8139d/src/device.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const TSD_TOK: u32 = 1 << 15; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RCR_RBLEN_8K` is never used [INFO] [stdout] --> net/rtl8139d/src/device.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | const RCR_RBLEN_8K: u32 = 0b00 << 11; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RCR_RBLEN_16K` is never used [INFO] [stdout] --> net/rtl8139d/src/device.rs:27:7 [INFO] [stdout] | [INFO] [stdout] 27 | const RCR_RBLEN_16K: u32 = 0b01 << 11; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RCR_RBLEN_32K` is never used [INFO] [stdout] --> net/rtl8139d/src/device.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 28 | const RCR_RBLEN_32K: u32 = 0b10 << 11; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RCR_RBLEN_MASK` is never used [INFO] [stdout] --> net/rtl8139d/src/device.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | const RCR_RBLEN_MASK: u32 = 0b11 << 11; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RCR_AER` is never used [INFO] [stdout] --> net/rtl8139d/src/device.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | const RCR_AER: u32 = 1 << 5; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RCR_AR` is never used [INFO] [stdout] --> net/rtl8139d/src/device.rs:32:7 [INFO] [stdout] | [INFO] [stdout] 32 | const RCR_AR: u32 = 1 << 4; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ihdad v0.1.0 (/opt/rustwide/workdir/audio/ihdad) [INFO] [stdout] warning: unused import: `scheme::SchemeBlockMut` [INFO] [stdout] --> storage/ided/src/main.rs:16:78 [INFO] [stdout] | [INFO] [stdout] 16 | data::{Event, Packet}, error::{Error, ENODEV}, flag::EVENT_READ, io::Io, scheme::SchemeBlockMut, EAGAIN, EINTR, EWOULDBLOCK [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> net/rtl8168d/src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Infallible` [INFO] [stdout] --> net/rtl8168d/src/main.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | use std::convert::{Infallible, TryInto}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Result` [INFO] [stdout] --> net/rtl8168d/src/main.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{Read, Result, Write}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> net/rtl8168d/src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `syscall::EventFlags` [INFO] [stdout] --> net/rtl8168d/src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use syscall::EventFlags; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking vboxd v0.1.0 (/opt/rustwide/workdir/vboxd) [INFO] [stdout] warning: fields `phys`, `size`, and `flags` are never read [INFO] [stdout] --> storage/ided/src/ide.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 36 | struct PrdtEntry { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 37 | phys: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 38 | size: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 39 | flags: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> virtio-core/src/transport.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | for event in event_queue.map(Result::unwrap) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Result` [INFO] [stdout] --> audio/ihdad/src/main.rs:11:39 [INFO] [stdout] | [INFO] [stdout] 11 | use std::io::{ErrorKind, Read, Write, Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EventFlags` [INFO] [stdout] --> audio/ihdad/src/main.rs:14:39 [INFO] [stdout] | [INFO] [stdout] 14 | use syscall::{Packet, SchemeBlockMut, EventFlags}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> audio/ihdad/src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> virtio-core/src/transport.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let mut event_queue = RawEventQueue::new().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> audio/ihdad/src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr` [INFO] [stdout] --> audio/ihdad/src/hda/stream.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::ptr; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Result` [INFO] [stdout] --> vboxd/src/main.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::{Result, Read, Write}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PciBar` [INFO] [stdout] --> vboxd/src/main.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | use pcid_interface::{PciBar, PciFunctionHandle}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `syscall::flag::EventFlags` [INFO] [stdout] --> vboxd/src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use syscall::flag::EventFlags; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking toml v0.7.8 [INFO] [stdout] warning: unused variable: `phys` [INFO] [stdout] --> virtio-core/src/transport.rs:281:17 [INFO] [stdout] | [INFO] [stdout] 281 | phys, [INFO] [stdout] | ^^^^ help: try ignoring the field: `phys: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> virtio-core/src/transport.rs:283:17 [INFO] [stdout] | [INFO] [stdout] 283 | size, [INFO] [stdout] | ^^^^ help: try ignoring the field: `size: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `phys` [INFO] [stdout] --> virtio-core/src/transport.rs:292:17 [INFO] [stdout] | [INFO] [stdout] 292 | phys, [INFO] [stdout] | ^^^^ help: try ignoring the field: `phys: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> virtio-core/src/transport.rs:294:17 [INFO] [stdout] | [INFO] [stdout] 294 | size, [INFO] [stdout] | ^^^^ help: try ignoring the field: `size: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `capability` [INFO] [stdout] --> net/rtl8168d/src/main.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | ... let capability = match pcid_handle.feature_info(PciFeature::Msi).expect("rtl8168d: failed to retrieve the MSI capability structure ... [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_capability` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> net/rtl8168d/src/main.rs:199:9 [INFO] [stdout] | [INFO] [stdout] 199 | let mut event_queue = EventQueue::::new().expect("rtl8168d: Could not create event queue."); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `size` and `version` are never read [INFO] [stdout] --> vboxd/src/main.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 27 | struct VboxVmmDev { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 28 | size: Mmio, [INFO] [stdout] | ^^^^ [INFO] [stdout] 29 | version: Mmio, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `result` is never read [INFO] [stdout] --> vboxd/src/main.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 36 | struct VboxHeader { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 44 | result: Mmio, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `features` is never read [INFO] [stdout] --> vboxd/src/main.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 51 | struct VboxGetMouse { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 52 | header: VboxHeader, [INFO] [stdout] 53 | features: Mmio, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> vboxd/src/main.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 74 | struct VboxSetMouse { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 77 | x: Mmio, [INFO] [stdout] | ^ [INFO] [stdout] 78 | y: Mmio, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `events` is never read [INFO] [stdout] --> vboxd/src/main.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 97 | struct VboxAckEvents { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 98 | header: VboxHeader, [INFO] [stdout] 99 | events: Mmio, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bpp` and `eventack` are never read [INFO] [stdout] --> vboxd/src/main.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 138 | struct VboxDisplayChange { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 142 | bpp: Mmio, [INFO] [stdout] | ^^^ [INFO] [stdout] 143 | eventack: Mmio, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `read`, `width`, and `height` are never used [INFO] [stdout] --> vboxd/src/bga.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl Bga { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | fn read(&mut self, index: u16) -> u16 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn width(&mut self) -> u16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn height(&mut self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking nvmed v0.1.0 (/opt/rustwide/workdir/storage/nvmed) [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking virtio-blkd v0.1.0 (/opt/rustwide/workdir/storage/virtio-blkd) [INFO] [stdout] warning: unused variable: `codec` [INFO] [stdout] --> audio/ihdad/src/hda/device.rs:607:27 [INFO] [stdout] | [INFO] [stdout] 607 | pub fn dump_codec(&self, codec:u8) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_codec` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> storage/virtio-blkd/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> storage/virtio-blkd/src/main.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRawFd` and `RawFd` [INFO] [stdout] --> storage/virtio-blkd/src/main.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | use std::os::fd::{FromRawFd, RawFd}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `libredox::flag` [INFO] [stdout] --> storage/virtio-blkd/src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use libredox::flag; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Packet` and `SchemeBlockMut` [INFO] [stdout] --> storage/virtio-blkd/src/main.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | use syscall::{Packet, SchemeBlockMut}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> storage/virtio-blkd/src/scheme.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> storage/nvmed/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> storage/nvmed/src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ErrorKind`, `Read`, and `Write` [INFO] [stdout] --> storage/nvmed/src/main.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::{ErrorKind, Read, Write}; [INFO] [stdout] | ^^^^^^^^^ ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRawFd` and `RawFd` [INFO] [stdout] --> storage/nvmed/src/main.rs:7:25 [INFO] [stdout] | [INFO] [stdout] 7 | use std::os::unix::io::{FromRawFd, RawFd}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mutex` [INFO] [stdout] --> storage/nvmed/src/main.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `libredox::flag` [INFO] [stdout] --> storage/nvmed/src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use libredox::flag; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CallRequest` [INFO] [stdout] --> storage/nvmed/src/main.rs:14:20 [INFO] [stdout] | [INFO] [stdout] 14 | use redox_scheme::{CallRequest, RequestKind, SignalBehavior, Socket, V2}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Event`, `Mmio`, `PAGE_SIZE`, `Packet`, and `SchemeBlockMut` [INFO] [stdout] --> storage/nvmed/src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | Event, Mmio, Packet, Result, SchemeBlockMut, [INFO] [stdout] | ^^^^^ ^^^^ ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] 17 | PAGE_SIZE, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr` [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ptr; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicUsize` and `Ordering` [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:5:47 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::atomic::{AtomicU16, AtomicU64, AtomicUsize, Ordering}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EINVAL` [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:12:37 [INFO] [stdout] | [INFO] [stdout] 12 | use syscall::error::{Error, Result, EINVAL, EIO}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> storage/nvmed/src/nvme/identify.rs:125:15 [INFO] [stdout] | [INFO] [stdout] 125 | match ((self.0 >> 24) & 0b11) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 125 - match ((self.0 >> 24) & 0b11) { [INFO] [stdout] 125 + match (self.0 >> 24) & 0b11 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Io`, `SEEK_CUR`, `SEEK_END`, and `SEEK_SET` [INFO] [stdout] --> storage/nvmed/src/scheme.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | Error, Io, Result, Stat, EACCES, EBADF, EINVAL, EISDIR, ENOENT, ENOLCK, EOVERFLOW, MODE_DIR, [INFO] [stdout] | ^^ [INFO] [stdout] 12 | MODE_FILE, O_DIRECTORY, O_STAT, SEEK_CUR, SEEK_END, SEEK_SET, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `corbsize_bytes` is assigned to, but never used [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | let mut corbsize_bytes: usize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_corbsize_bytes` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `corbsize` is assigned to, but never used [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:99:17 [INFO] [stdout] | [INFO] [stdout] 99 | let mut corbsize: u8 = 0; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_corbsize` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `corbsize` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | corbsize = 2; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `corbsize_bytes` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | corbsize_bytes = 1024; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `corbsize` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | corbsize = 1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `corbsize_bytes` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | corbsize_bytes = 64; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `corbsize` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | corbsize = 0; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `corbsize_bytes` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | corbsize_bytes = 8; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rirbsize_bytes` is assigned to, but never used [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:230:17 [INFO] [stdout] | [INFO] [stdout] 230 | let mut rirbsize_bytes: usize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_rirbsize_bytes` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rirbsize` is assigned to, but never used [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:231:17 [INFO] [stdout] | [INFO] [stdout] 231 | let mut rirbsize: u8 = 0; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_rirbsize` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rirbsize` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:234:13 [INFO] [stdout] | [INFO] [stdout] 234 | rirbsize = 2; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rirbsize_bytes` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:235:13 [INFO] [stdout] | [INFO] [stdout] 235 | rirbsize_bytes = 2048; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rirbsize` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:239:13 [INFO] [stdout] | [INFO] [stdout] 239 | rirbsize = 1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rirbsize_bytes` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:240:13 [INFO] [stdout] | [INFO] [stdout] 240 | rirbsize_bytes = 128; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rirbsize` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:244:13 [INFO] [stdout] | [INFO] [stdout] 244 | rirbsize = 0; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rirbsize_bytes` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:245:13 [INFO] [stdout] | [INFO] [stdout] 245 | rirbsize_bytes = 16; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `capability` [INFO] [stdout] --> audio/ihdad/src/main.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | ... let capability = match pcid_handle.feature_info(PciFeature::Msi).expect("ihdad: failed to retrieve the MSI capability structure fro... [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_capability` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> audio/ihdad/src/main.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | let mut event_queue = EventQueue::::new().expect("ihdad: Could not create event queue."); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking virtio-gpud v0.1.0 (/opt/rustwide/workdir/graphics/virtio-gpud) [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> storage/virtio-blkd/src/main.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking virtio-netd v0.1.0 (/opt/rustwide/workdir/net/virtio-netd) [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> pcid/src/cfg_access/mod.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct Mcfg { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 97 | // base sdt fields [INFO] [stdout] 98 | name: [u8; 4], [INFO] [stdout] | ^^^^ [INFO] [stdout] 99 | length: u32, [INFO] [stdout] 100 | revision: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 101 | checksum: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 102 | oem_id: [u8; 6], [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 103 | oem_table_id: [u8; 8], [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 104 | oem_revision: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 105 | creator_id: [u8; 4], [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 106 | creator_revision: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Mcfg` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> pcid/src/config.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct DriverConfig { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 15 | pub name: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DriverConfig` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cid` [INFO] [stdout] --> storage/nvmed/src/nvme/cmd.rs:118:25 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn get_features(cid: u16, ptr: usize, fid: u8) -> Self { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cid` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comp` [INFO] [stdout] --> storage/nvmed/src/nvme/identify.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 195 | let comp = self [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_comp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:245:13 [INFO] [stdout] | [INFO] [stdout] 245 | let mut regs: &mut NvmeRegs = regs_guard.deref_mut(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:261:13 [INFO] [stdout] | [INFO] [stdout] 261 | let mut buffer = self.buffer.get_mut().unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:262:13 [INFO] [stdout] | [INFO] [stdout] 262 | let mut buffer_prp = self.buffer_prp.get_mut().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comp` [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:525:13 [INFO] [stdout] | [INFO] [stdout] 525 | let comp = self [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_comp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> pcid/src/cfg_access/mod.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct Mcfg { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 97 | // base sdt fields [INFO] [stdout] 98 | name: [u8; 4], [INFO] [stdout] | ^^^^ [INFO] [stdout] 99 | length: u32, [INFO] [stdout] 100 | revision: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 101 | checksum: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 102 | oem_id: [u8; 6], [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 103 | oem_table_id: [u8; 8], [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 104 | oem_revision: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 105 | creator_id: [u8; 4], [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 106 | creator_revision: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Mcfg` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> pcid/src/config.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct DriverConfig { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 15 | pub name: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DriverConfig` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comp` [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:562:13 [INFO] [stdout] | [INFO] [stdout] 562 | let comp = self [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_comp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> storage/virtio-blkd/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> storage/virtio-blkd/src/main.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRawFd` and `RawFd` [INFO] [stdout] --> storage/virtio-blkd/src/main.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | use std::os::fd::{FromRawFd, RawFd}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `libredox::flag` [INFO] [stdout] --> storage/virtio-blkd/src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use libredox::flag; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Packet` and `SchemeBlockMut` [INFO] [stdout] --> storage/virtio-blkd/src/main.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | use syscall::{Packet, SchemeBlockMut}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> storage/virtio-blkd/src/scheme.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `msi_info` is never read [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:94:11 [INFO] [stdout] | [INFO] [stdout] 94 | Msi { msi_info: MsiInfo, log2_multiple_message_enabled: u8 }, [INFO] [stdout] | --- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_intx`, `is_msi`, and `is_msix` are never used [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 98 | impl InterruptMethod { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] 99 | fn is_intx(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | fn is_msi(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | fn is_msix(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `info` is never read [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 122 | pub struct MappedMsixRegs { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 123 | pub info: MsixInfo, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `nssr`, `cmbloc`, and `cmbsz` are never read [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:145:5 [INFO] [stdout] | [INFO] [stdout] 128 | pub struct NvmeRegs { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 145 | nssr: Mmio, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | cmbloc: Mmio, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 156 | /// Controller memory buffer size [INFO] [stdout] 157 | cmbsz: Mmio, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `AtomicCmdId` is never used [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:172:10 [INFO] [stdout] | [INFO] [stdout] 172 | pub type AtomicCmdId = AtomicU16; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pcid_interface`, `next_sqid`, `next_cqid`, and `next_avail_submission_epoch` are never read [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:176:5 [INFO] [stdout] | [INFO] [stdout] 174 | pub struct Nvme { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 175 | interrupt_method: Mutex, [INFO] [stdout] 176 | pcid_interface: Mutex, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | next_sqid: AtomicSqId, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 191 | next_cqid: AtomicCqId, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 192 | [INFO] [stdout] 193 | next_avail_submission_epoch: AtomicU64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `FullSqHandling` is never used [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:199:10 [INFO] [stdout] | [INFO] [stdout] 199 | pub enum FullSqHandling { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_features` is never used [INFO] [stdout] --> storage/nvmed/src/nvme/cmd.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl NvmeCmd { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn get_features(cid: u16, ptr: usize, fid: u8) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `vid` and `ssvid` are never read [INFO] [stdout] --> storage/nvmed/src/nvme/identify.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct IdentifyControllerData { [INFO] [stdout] | ---------------------- fields in this struct [INFO] [stdout] 9 | /// PCI vendor ID, always the same as in the PCI function header. [INFO] [stdout] 10 | pub vid: u16, [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | /// PCI subsystem vendor ID. [INFO] [stdout] 12 | pub ssvid: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IdentifyControllerData` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> storage/nvmed/src/nvme/identify.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct IdentifyNamespaceData { [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 29 | pub nuse: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 30 | [INFO] [stdout] 31 | pub nsfeat: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 32 | pub nlbaf: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 33 | pub flbas: u8, [INFO] [stdout] 34 | pub mc: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 35 | [INFO] [stdout] 36 | pub dpc: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 37 | pub dps: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 38 | pub nmic: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 39 | pub rescap: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 40 | // 32 [INFO] [stdout] 41 | pub fpi: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 42 | pub dlfeat: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 43 | pub nawun: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 44 | [INFO] [stdout] 45 | pub nawupf: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 46 | pub nacwu: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 47 | // 40 [INFO] [stdout] 48 | pub nabsn: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 49 | pub nabo: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 50 | [INFO] [stdout] 51 | pub nabspf: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 52 | pub noiob: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 53 | // 48 [INFO] [stdout] 54 | pub nvmcap: u128, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 55 | // 64 [INFO] [stdout] 56 | pub npwg: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 57 | pub npwa: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 58 | pub npdg: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 59 | pub npda: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 60 | // 72 [INFO] [stdout] 61 | pub nows: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub anagrpid: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 66 | pub _rsvd2: [u8; 3], [INFO] [stdout] 67 | pub nsattr: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub nvmsetid: u16, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 71 | pub endgid: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 72 | pub nguid: [u8; 16], [INFO] [stdout] | ^^^^^ [INFO] [stdout] 73 | pub eui64: u64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub vendor_specific: [u8; 3712], [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IdentifyNamespaceData` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `has_metadata_after_data` is never used [INFO] [stdout] --> storage/nvmed/src/nvme/identify.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl IdentifyNamespaceData { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn has_metadata_after_data(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Best`, `Better`, `Good`, and `Degraded` are never constructed [INFO] [stdout] --> storage/nvmed/src/nvme/identify.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 105 | pub enum RelativePerformance { [INFO] [stdout] | ------------------- variants in this enum [INFO] [stdout] 106 | Best = 0b00, [INFO] [stdout] | ^^^^ [INFO] [stdout] 107 | Better, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 108 | Good, [INFO] [stdout] | ^^^^ [INFO] [stdout] 109 | Degraded, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RelativePerformance` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `relative_performance`, `is_available`, and `metadata_size` are never used [INFO] [stdout] --> storage/nvmed/src/nvme/identify.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 123 | impl LbaFormat { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 124 | pub fn relative_performance(&self) -> RelativePerformance { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | pub fn is_available(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | pub fn metadata_size(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> storage/nvmed/src/nvme/queues.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct NvmeCmd { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 10 | /// Opcode [INFO] [stdout] 11 | pub opcode: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | /// Flags [INFO] [stdout] 13 | pub flags: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub nsid: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub mptr: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | /// Data pointer [INFO] [stdout] 23 | pub dptr: [u64; 2], [INFO] [stdout] | ^^^^ [INFO] [stdout] 24 | /// Command dword 10 [INFO] [stdout] 25 | pub cdw10: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 26 | /// Command dword 11 [INFO] [stdout] 27 | pub cdw11: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 28 | /// Command dword 12 [INFO] [stdout] 29 | pub cdw12: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 30 | /// Command dword 13 [INFO] [stdout] 31 | pub cdw13: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 32 | /// Command dword 14 [INFO] [stdout] 33 | pub cdw14: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 34 | /// Command dword 15 [INFO] [stdout] 35 | pub cdw15: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NvmeCmd` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `command_specific` is never read [INFO] [stdout] --> storage/nvmed/src/nvme/queues.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct NvmeComp { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 42 | pub command_specific: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NvmeComp` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `complete_spin` is never used [INFO] [stdout] --> storage/nvmed/src/nvme/queues.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 57 | impl NvmeCompQueue { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 91 | fn complete_spin(&mut self, cmd_opt: Option<(u16, NvmeCmd)>) -> (u16, NvmeComp) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_empty` is never used [INFO] [stdout] --> storage/nvmed/src/nvme/queues.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 110 | impl NvmeCmdQueue { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking amlserde v0.0.1 (/opt/rustwide/workdir/amlserde) [INFO] [stdout] warning: 38 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> storage/virtio-blkd/src/main.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Notification`, `Rsvd2`, and `Rsvd3` are never constructed [INFO] [stdout] --> xhcid/src/driver_interface.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 168 | enum InterruptUsageBits { [INFO] [stdout] | ------------------ variants in this enum [INFO] [stdout] 169 | Periodic, [INFO] [stdout] 170 | Notification, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 171 | Rsvd2, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 172 | Rsvd3, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inner` is never read [INFO] [stdout] --> xhcid/src/driver_interface.rs:706:5 [INFO] [stdout] | [INFO] [stdout] 705 | pub struct TransferWriteStream<'a> { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 706 | inner: TransferStream<'a>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inner` is never read [INFO] [stdout] --> xhcid/src/driver_interface.rs:709:5 [INFO] [stdout] | [INFO] [stdout] 708 | pub struct TransferReadStream<'a> { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 709 | inner: TransferStream<'a>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bytes_to_transfer`, `bytes_transferred`, `bytes_per_transfer`, and `endp_handle` are never read [INFO] [stdout] --> xhcid/src/driver_interface.rs:712:5 [INFO] [stdout] | [INFO] [stdout] 711 | struct TransferStream<'a> { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 712 | bytes_to_transfer: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 713 | bytes_transferred: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 714 | bytes_per_transfer: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 715 | endp_handle: &'a mut XhciEndpHandle, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `kind` is never read [INFO] [stdout] --> xhcid/src/usb/bos.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct BosDevDescriptorBase { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] 17 | pub len: u8, [INFO] [stdout] 18 | pub kind: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BosDevDescriptorBase` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> xhcid/src/usb/config.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct OtherSpeedConfig { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 19 | pub length: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 20 | pub kind: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | pub total_length: u16, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 22 | pub interfaces: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 23 | pub configuration_value: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | pub configuration_str: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 25 | pub attributes: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 26 | pub max_power: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OtherSpeedConfig` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeviceQualifier` is never constructed [INFO] [stdout] --> xhcid/src/usb/device.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct DeviceQualifier { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ty` is never used [INFO] [stdout] --> xhcid/src/usb/endpoint.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 25 | impl EndpointDescriptor { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] 26 | fn ty(self) -> EndpointTy { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `bitmaps` is never read [INFO] [stdout] --> xhcid/src/usb/hub.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct HubDescriptor { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | bitmaps: [u8; 64] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HubDescriptor` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Reserved` is never constructed [INFO] [stdout] --> xhcid/src/usb/setup.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum ReqType { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 41 | Reserved = 3, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USB_SETUP_DIR_SHIFT` is never used [INFO] [stdout] --> xhcid/src/usb/setup.rs:90:11 [INFO] [stdout] | [INFO] [stdout] 90 | pub const USB_SETUP_DIR_SHIFT: u8 = 7; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Result` [INFO] [stdout] --> audio/ac97d/src/main.rs:9:39 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::{ErrorKind, Read, Write, Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> audio/ac97d/src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> audio/ac97d/src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PciBar` [INFO] [stdout] --> audio/ac97d/src/main.rs:17:22 [INFO] [stdout] | [INFO] [stdout] 17 | use pcid_interface::{PciBar, PciFunctionHandle}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EventFlags` [INFO] [stdout] --> audio/ac97d/src/main.rs:18:15 [INFO] [stdout] | [INFO] [stdout] 18 | use syscall::{EventFlags, Packet, SchemeBlockMut}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> audio/ac97d/src/device.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Result` [INFO] [stdout] --> audio/ihdad/src/main.rs:11:39 [INFO] [stdout] | [INFO] [stdout] 11 | use std::io::{ErrorKind, Read, Write, Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EventFlags` [INFO] [stdout] --> audio/ihdad/src/main.rs:14:39 [INFO] [stdout] | [INFO] [stdout] 14 | use syscall::{Packet, SchemeBlockMut, EventFlags}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> audio/ihdad/src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> audio/ihdad/src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr` [INFO] [stdout] --> audio/ihdad/src/hda/stream.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::ptr; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> net/ixgbed/src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::Infallible` [INFO] [stdout] --> net/ixgbed/src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::convert::Infallible; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Result` [INFO] [stdout] --> net/ixgbed/src/main.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{Read, Result, Write}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> net/ixgbed/src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `syscall::EventFlags` [INFO] [stdout] --> net/ixgbed/src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use syscall::EventFlags; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:11:51 [INFO] [stdout] | [INFO] [stdout] 11 | pub const IXGBE_CTRL_RST_MASK: u32 = (IXGBE_CTRL_LNK_RST | IXGBE_CTRL_RST); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 11 - pub const IXGBE_CTRL_RST_MASK: u32 = (IXGBE_CTRL_LNK_RST | IXGBE_CTRL_RST); [INFO] [stdout] 11 + pub const IXGBE_CTRL_RST_MASK: u32 = IXGBE_CTRL_LNK_RST | IXGBE_CTRL_RST; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:22:51 [INFO] [stdout] | [INFO] [stdout] 22 | pub const IXGBE_AUTOC_LMS_MASK: u32 = (0x7 << IXGBE_AUTOC_LMS_SHIFT); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 22 - pub const IXGBE_AUTOC_LMS_MASK: u32 = (0x7 << IXGBE_AUTOC_LMS_SHIFT); [INFO] [stdout] 22 + pub const IXGBE_AUTOC_LMS_MASK: u32 = 0x7 << IXGBE_AUTOC_LMS_SHIFT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:23:51 [INFO] [stdout] | [INFO] [stdout] 23 | pub const IXGBE_AUTOC_LMS_10G_SERIAL: u32 = (0x3 << IXGBE_AUTOC_LMS_SHIFT); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 23 - pub const IXGBE_AUTOC_LMS_10G_SERIAL: u32 = (0x3 << IXGBE_AUTOC_LMS_SHIFT); [INFO] [stdout] 23 + pub const IXGBE_AUTOC_LMS_10G_SERIAL: u32 = 0x3 << IXGBE_AUTOC_LMS_SHIFT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:26:51 [INFO] [stdout] | [INFO] [stdout] 26 | pub const IXGBE_AUTOC_10G_XAUI: u32 = (0x0 << IXGBE_AUTOC_10G_PMA_PMD_SHIFT); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 26 - pub const IXGBE_AUTOC_10G_XAUI: u32 = (0x0 << IXGBE_AUTOC_10G_PMA_PMD_SHIFT); [INFO] [stdout] 26 + pub const IXGBE_AUTOC_10G_XAUI: u32 = 0x0 << IXGBE_AUTOC_10G_PMA_PMD_SHIFT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | (0x03C00 + (i * 4)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 40 - (0x03C00 + (i * 4)) [INFO] [stdout] 40 + 0x03C00 + (i * 4) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | (0x0CC00 + (i * 4)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 118 - (0x0CC00 + (i * 4)) [INFO] [stdout] 118 + 0x0CC00 + (i * 4) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 127 | (0x06000 + (i * 0x40)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 127 - (0x06000 + (i * 0x40)) [INFO] [stdout] 127 + 0x06000 + (i * 0x40) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:130:5 [INFO] [stdout] | [INFO] [stdout] 130 | (0x06004 + (i * 0x40)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 130 - (0x06004 + (i * 0x40)) [INFO] [stdout] 130 + 0x06004 + (i * 0x40) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:133:5 [INFO] [stdout] | [INFO] [stdout] 133 | (0x06008 + (i * 0x40)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 133 - (0x06008 + (i * 0x40)) [INFO] [stdout] 133 + 0x06008 + (i * 0x40) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 136 | (0x06028 + (i * 0x40)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 136 - (0x06028 + (i * 0x40)) [INFO] [stdout] 136 + 0x06028 + (i * 0x40) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:153:5 [INFO] [stdout] | [INFO] [stdout] 153 | (0x06010 + (i * 0x40)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 153 - (0x06010 + (i * 0x40)) [INFO] [stdout] 153 + 0x06010 + (i * 0x40) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 156 | (0x06018 + (i * 0x40)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 156 - (0x06018 + (i * 0x40)) [INFO] [stdout] 156 + 0x06018 + (i * 0x40) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:211:5 [INFO] [stdout] | [INFO] [stdout] 211 | (0x00900 + (i * 4)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 211 - (0x00900 + (i * 4)) [INFO] [stdout] 211 + 0x00900 + (i * 4) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> audio/ac97d/src/main.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | let mut event_queue = EventQueue::::new().expect("ac97d: Could not create event queue."); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking usbctl v0.1.0 (/opt/rustwide/workdir/usbctl) [INFO] [stderr] Checking usbhubd v0.1.0 (/opt/rustwide/workdir/usbhubd) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> net/ixgbed/src/main.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | let mut event_queue = EventQueue::::new().expect("ixgbed: Could not create event queue."); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pkt_info` and `hdr_info` are never read [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:227:9 [INFO] [stdout] | [INFO] [stdout] 226 | pub struct ixgbe_adv_rx_desc_wb_lower_lo_dword_hs_rss { [INFO] [stdout] | ------------------------------------------ fields in this struct [INFO] [stdout] 227 | pub pkt_info: u16, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 228 | /* RSS, Pkt type */ [INFO] [stdout] 229 | pub hdr_info: u16, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ixgbe_adv_rx_desc_wb_lower_lo_dword_hs_rss` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `data` and `hs_rss` are never read [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:236:9 [INFO] [stdout] | [INFO] [stdout] 235 | pub union ixgbe_adv_rx_desc_wb_lower_lo_dword { [INFO] [stdout] | ----------------------------------- fields in this union [INFO] [stdout] 236 | pub data: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 237 | pub hs_rss: ixgbe_adv_rx_desc_wb_lower_lo_dword_hs_rss, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ixgbe_adv_rx_desc_wb_lower_lo_dword` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ip_id` and `csum` are never read [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:243:9 [INFO] [stdout] | [INFO] [stdout] 242 | pub struct ixgbe_adv_rx_desc_wb_lower_hi_dword_csum_ip { [INFO] [stdout] | ------------------------------------------- fields in this struct [INFO] [stdout] 243 | pub ip_id: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 244 | /* IP id */ [INFO] [stdout] 245 | pub csum: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ixgbe_adv_rx_desc_wb_lower_hi_dword_csum_ip` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `rss` and `csum_ip` are never read [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:252:9 [INFO] [stdout] | [INFO] [stdout] 251 | pub union ixgbe_adv_rx_desc_wb_lower_hi_dword { [INFO] [stdout] | ----------------------------------- fields in this union [INFO] [stdout] 252 | pub rss: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 253 | /* RSS Hash */ [INFO] [stdout] 254 | pub csum_ip: ixgbe_adv_rx_desc_wb_lower_hi_dword_csum_ip, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ixgbe_adv_rx_desc_wb_lower_hi_dword` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `lo_dword` and `hi_dword` are never read [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:260:9 [INFO] [stdout] | [INFO] [stdout] 259 | pub struct ixgbe_adv_rx_desc_wb_lower { [INFO] [stdout] | -------------------------- fields in this struct [INFO] [stdout] 260 | pub lo_dword: ixgbe_adv_rx_desc_wb_lower_lo_dword, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 261 | pub hi_dword: ixgbe_adv_rx_desc_wb_lower_hi_dword, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ixgbe_adv_rx_desc_wb_lower` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `vlan` is never read [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:271:9 [INFO] [stdout] | [INFO] [stdout] 266 | pub struct ixgbe_adv_rx_desc_wb_upper { [INFO] [stdout] | -------------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 271 | pub vlan: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ixgbe_adv_rx_desc_wb_upper` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking usbscsid v0.1.0 (/opt/rustwide/workdir/storage/usbscsid) [INFO] [stdout] warning: field `lower` is never read [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:278:9 [INFO] [stdout] | [INFO] [stdout] 277 | pub struct ixgbe_adv_rx_desc_wb { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] 278 | pub lower: ixgbe_adv_rx_desc_wb_lower, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ixgbe_adv_rx_desc_wb` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `codec` [INFO] [stdout] --> audio/ihdad/src/hda/device.rs:607:27 [INFO] [stdout] | [INFO] [stdout] 607 | pub fn dump_codec(&self, codec:u8) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_codec` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `rsvd` and `nxtseq_seed` are never read [INFO] [stdout] --> net/ixgbed/src/ixgbe.rs:303:9 [INFO] [stdout] | [INFO] [stdout] 302 | pub struct ixgbe_adv_tx_desc_wb { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 303 | pub rsvd: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 304 | /* Reserved */ [INFO] [stdout] 305 | pub nxtseq_seed: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ixgbe_adv_tx_desc_wb` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::VecDeque` [INFO] [stdout] --> usbhubd/src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::VecDeque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> usbhubd/src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Read` and `Write` [INFO] [stdout] --> usbhubd/src/main.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ConfigureEndpointsReq`, `EndpDirection`, and `EndpointTy` [INFO] [stdout] --> usbhubd/src/main.rs:6:35 [INFO] [stdout] | [INFO] [stdout] 6 | use xhcid_interface::{plain, usb, ConfigureEndpointsReq, DevDesc, DeviceReqData, EndpDirection, EndpointTy, PortReqRecipient, PortReqTy, ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conf_desc` [INFO] [stdout] --> usbhubd/src/main.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | let (conf_desc, conf_num, if_desc) = desc [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conf_desc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conf_num` [INFO] [stdout] --> usbhubd/src/main.rs:46:21 [INFO] [stdout] | [INFO] [stdout] 46 | let (conf_desc, conf_num, if_desc) = desc [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conf_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `if_desc` [INFO] [stdout] --> usbhubd/src/main.rs:46:31 [INFO] [stdout] | [INFO] [stdout] 46 | let (conf_desc, conf_num, if_desc) = desc [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_if_desc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `corbsize_bytes` is assigned to, but never used [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | let mut corbsize_bytes: usize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_corbsize_bytes` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `corbsize` is assigned to, but never used [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:99:17 [INFO] [stdout] | [INFO] [stdout] 99 | let mut corbsize: u8 = 0; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_corbsize` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `corbsize` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | corbsize = 2; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `corbsize_bytes` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | corbsize_bytes = 1024; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `corbsize` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | corbsize = 1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `corbsize_bytes` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | corbsize_bytes = 64; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `corbsize` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | corbsize = 0; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `corbsize_bytes` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | corbsize_bytes = 8; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rirbsize_bytes` is assigned to, but never used [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:230:17 [INFO] [stdout] | [INFO] [stdout] 230 | let mut rirbsize_bytes: usize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_rirbsize_bytes` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rirbsize` is assigned to, but never used [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:231:17 [INFO] [stdout] | [INFO] [stdout] 231 | let mut rirbsize: u8 = 0; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_rirbsize` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rirbsize` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:234:13 [INFO] [stdout] | [INFO] [stdout] 234 | rirbsize = 2; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rirbsize_bytes` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:235:13 [INFO] [stdout] | [INFO] [stdout] 235 | rirbsize_bytes = 2048; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rirbsize` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:239:13 [INFO] [stdout] | [INFO] [stdout] 239 | rirbsize = 1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rirbsize_bytes` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:240:13 [INFO] [stdout] | [INFO] [stdout] 240 | rirbsize_bytes = 128; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rirbsize` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:244:13 [INFO] [stdout] | [INFO] [stdout] 244 | rirbsize = 0; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rirbsize_bytes` is never read [INFO] [stdout] --> audio/ihdad/src/hda/cmdbuff.rs:245:13 [INFO] [stdout] | [INFO] [stdout] 245 | rirbsize_bytes = 16; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `capability` [INFO] [stdout] --> audio/ihdad/src/main.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | ... let capability = match pcid_handle.feature_info(PciFeature::Msi).expect("ihdad: failed to retrieve the MSI capability structure fro... [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_capability` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> audio/ihdad/src/main.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | let mut event_queue = EventQueue::::new().expect("ihdad: Could not create event queue."); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops` [INFO] [stdout] --> storage/usbscsid/src/scsi/mod.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{mem, ops}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SenseKey` [INFO] [stdout] --> storage/usbscsid/src/scsi/mod.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | use cmds::{SenseKey, StandardInquiryData}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `opcodes::Opcode` [INFO] [stdout] --> storage/usbscsid/src/scsi/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use opcodes::Opcode; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cmp` [INFO] [stdout] --> storage/usbscsid/src/scheme.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{cmp, str}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ENOENT` [INFO] [stdout] --> storage/usbscsid/src/scheme.rs:9:50 [INFO] [stdout] | [INFO] [stdout] 9 | use syscall::error::{EACCES, EBADF, EINVAL, EIO, ENOENT, ENOSYS}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SEEK_CUR`, `SEEK_END`, and `SEEK_SET` [INFO] [stdout] --> storage/usbscsid/src/scheme.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | use syscall::flag::{SEEK_CUR, SEEK_END, SEEK_SET}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> amlserde/src/lib.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | name: &String, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops` [INFO] [stdout] --> storage/usbscsid/src/scsi/mod.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{mem, ops}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SenseKey` [INFO] [stdout] --> storage/usbscsid/src/scsi/mod.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | use cmds::{SenseKey, StandardInquiryData}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `opcodes::Opcode` [INFO] [stdout] --> storage/usbscsid/src/scsi/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use opcodes::Opcode; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cmp` [INFO] [stdout] --> storage/usbscsid/src/scheme.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{cmp, str}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ENOENT` [INFO] [stdout] --> storage/usbscsid/src/scheme.rs:9:50 [INFO] [stdout] | [INFO] [stdout] 9 | use syscall::error::{EACCES, EBADF, EINVAL, EIO, ENOENT, ENOSYS}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SEEK_CUR`, `SEEK_END`, and `SEEK_SET` [INFO] [stdout] --> storage/usbscsid/src/scheme.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | use syscall::flag::{SEEK_CUR, SEEK_END, SEEK_SET}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::VecDeque` [INFO] [stdout] --> usbhubd/src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::VecDeque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> usbhubd/src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Read` and `Write` [INFO] [stdout] --> usbhubd/src/main.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ConfigureEndpointsReq`, `EndpDirection`, and `EndpointTy` [INFO] [stdout] --> usbhubd/src/main.rs:6:35 [INFO] [stdout] | [INFO] [stdout] 6 | use xhcid_interface::{plain, usb, ConfigureEndpointsReq, DevDesc, DeviceReqData, EndpDirection, EndpointTy, PortReqRecipient, PortReqTy, ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> amlserde/src/lib.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | name: &String, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking acpid v0.1.0 (/opt/rustwide/workdir/acpid) [INFO] [stdout] warning: unused imports: `TryFrom` and `TryInto` [INFO] [stdout] --> xhcid/src/main.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use std::convert::{TryFrom, TryInto}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> xhcid/src/main.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use std::fs::{self, File}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::future::Future` [INFO] [stdout] --> xhcid/src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::future::Future; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> xhcid/src/main.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::{self, Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsRawFd` [INFO] [stdout] --> xhcid/src/main.rs:8:25 [INFO] [stdout] | [INFO] [stdout] 8 | use std::os::unix::io::{AsRawFd, FromRawFd, RawFd}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::pin::Pin` [INFO] [stdout] --> xhcid/src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::pin::Pin; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> xhcid/src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Event` and `RawEventQueue` [INFO] [stdout] --> xhcid/src/main.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | use event::{Event, RawEventQueue}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `syscall::flag::EventFlags` [INFO] [stdout] --> xhcid/src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use syscall::flag::EventFlags; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BosAnyDevDesc`, `BosSuperSpeedDesc`, and `bos_capability_descs` [INFO] [stdout] --> xhcid/src/usb/mod.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | pub use self::bos::{bos_capability_descs, BosAnyDevDesc, BosDescriptor, BosSuperSpeedDesc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::hub::*` [INFO] [stdout] --> xhcid/src/usb/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use self::hub::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SetupReq` [INFO] [stdout] --> xhcid/src/usb/mod.rs:10:30 [INFO] [stdout] | [INFO] [stdout] 10 | pub use self::setup::{Setup, SetupReq}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::future::Future` [INFO] [stdout] --> xhcid/src/xhci/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::future::Future; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::pin::Pin` [INFO] [stdout] --> xhcid/src/xhci/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::pin::Pin; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Weak` [INFO] [stdout] --> xhcid/src/xhci/mod.rs:7:41 [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::{Arc, Mutex, MutexGuard, Weak}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AtomicBool` [INFO] [stdout] --> xhcid/src/xhci/mod.rs:8:25 [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::atomic::{AtomicBool, AtomicUsize}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `sync::atomic` and `task` [INFO] [stdout] --> xhcid/src/xhci/mod.rs:10:32 [INFO] [stdout] | [INFO] [stdout] 10 | use std::{mem, process, slice, sync::atomic, task, thread}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PciFeature` [INFO] [stdout] --> xhcid/src/xhci/mod.rs:25:41 [INFO] [stdout] | [INFO] [stdout] 25 | use pcid_interface::{PciFunctionHandle, PciFeature}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conf_desc` [INFO] [stdout] --> usbhubd/src/main.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | let (conf_desc, conf_num, if_desc) = desc [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conf_desc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conf_num` [INFO] [stdout] --> usbhubd/src/main.rs:46:21 [INFO] [stdout] | [INFO] [stdout] 46 | let (conf_desc, conf_num, if_desc) = desc [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conf_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `if_desc` [INFO] [stdout] --> usbhubd/src/main.rs:46:31 [INFO] [stdout] | [INFO] [stdout] 46 | let (conf_desc, conf_num, if_desc) = desc [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_if_desc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::BTreeMap` [INFO] [stdout] --> xhcid/src/xhci/irq_reactor.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::BTreeMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicUsize` and `self` [INFO] [stdout] --> xhcid/src/xhci/irq_reactor.rs:7:25 [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::atomic::{self, AtomicUsize}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `io`, `mem`, and `thread` [INFO] [stdout] --> xhcid/src/xhci/irq_reactor.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | use std::{io, mem, task, thread}; [INFO] [stdout] | ^^ ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::Stream` [INFO] [stdout] --> xhcid/src/xhci/irq_reactor.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use futures::Stream; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EventQueue` and `Event` [INFO] [stdout] --> xhcid/src/xhci/irq_reactor.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | use event::{Event, EventQueue, RawEventQueue}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::num::NonZeroU8` [INFO] [stdout] --> xhcid/src/xhci/operational.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::num::NonZeroU8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice` [INFO] [stdout] --> xhcid/src/xhci/operational.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::slice; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::CapabilityRegs` [INFO] [stdout] --> xhcid/src/xhci/operational.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use super::CapabilityRegs; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `smallvec` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | use smallvec::{smallvec, SmallVec}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EEXIST`, `ENXIO`, `EOPNOTSUPP`, `EOVERFLOW`, `EPERM`, `O_CREAT`, and `O_RDONLY` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:16:58 [INFO] [stdout] | [INFO] [stdout] 16 | Error, Result, Stat, EACCES, EBADF, EBADFD, EBADMSG, EEXIST, EINVAL, EIO, EISDIR, ENOENT, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | ENOSYS, ENOTDIR, ENXIO, EOPNOTSUPP, EOVERFLOW, EPERM, EPROTO, ESPIPE, MODE_CHR, MODE_DIR, [INFO] [stdout] | ^^^^^ ^^^^^^^^^^ ^^^^^^^^^ ^^^^^ [INFO] [stdout] 18 | MODE_FILE, O_CREAT, O_DIRECTORY, O_RDONLY, O_RDWR, O_STAT, O_WRONLY, SEEK_CUR, SEEK_END, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ENDPOINT_CONTEXT_STATUS_MASK`, `InputContext`, and `StreamContext` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | InputContext, SlotState, StreamContext, StreamContextArray, StreamContextType, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] 27 | ENDPOINT_CONTEXT_STATUS_MASK, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::doorbell::Doorbell` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | use super::doorbell::Doorbell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::operational::OperationalRegs` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | use super::operational::OperationalRegs; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::runtime::RuntimeRegs` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | use super::runtime::RuntimeRegs; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ENDP_ATTR_TY_MASK` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:36:40 [INFO] [stdout] | [INFO] [stdout] 36 | use super::usb::endpoint::{EndpointTy, ENDP_ATTR_TY_MASK}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Interrupter` [INFO] [stdout] --> xhcid/src/xhci/mod.rs:49:21 [INFO] [stdout] | [INFO] [stdout] 49 | use self::runtime::{Interrupter, RuntimeRegs}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TrbType` [INFO] [stdout] --> xhcid/src/xhci/mod.rs:50:55 [INFO] [stdout] | [INFO] [stdout] 50 | use self::trb::{TransferKind, Trb, TrbCompletionCode, TrbType}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRawFd` and `RawFd` [INFO] [stdout] --> acpid/src/main.rs:8:34 [INFO] [stdout] | [INFO] [stdout] 8 | use std::os::unix::io::{AsRawFd, FromRawFd, RawFd}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::dmar::Dmar` [INFO] [stdout] --> acpid/src/acpi.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use self::dmar::Dmar; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config_desc` [INFO] [stdout] --> storage/usbscsid/src/protocol/bot.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | config_desc: &ConfDesc, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_config_desc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dev_desc` [INFO] [stdout] --> storage/usbscsid/src/protocol/mod.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | dev_desc: &DevDesc, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dev_desc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRawFd` and `RawFd` [INFO] [stdout] --> acpid/src/main.rs:8:34 [INFO] [stdout] | [INFO] [stdout] 8 | use std::os::unix::io::{AsRawFd, FromRawFd, RawFd}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::dmar::Dmar` [INFO] [stdout] --> acpid/src/acpi.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use self::dmar::Dmar; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hci` [INFO] [stdout] --> xhcid/src/main.rs:38:24 [INFO] [stdout] | [INFO] [stdout] 38 | async fn handle_packet(hci: Arc, packet: Packet) -> Packet { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_hci` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `packet` [INFO] [stdout] --> xhcid/src/main.rs:38:40 [INFO] [stdout] | [INFO] [stdout] 38 | async fn handle_packet(hci: Arc, packet: Packet) -> Packet { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config_desc` [INFO] [stdout] --> storage/usbscsid/src/protocol/bot.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | config_desc: &ConfDesc, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_config_desc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dev_desc` [INFO] [stdout] --> storage/usbscsid/src/protocol/mod.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | dev_desc: &DevDesc, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dev_desc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max_lun` is never read [INFO] [stdout] --> storage/usbscsid/src/protocol/bot.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 85 | pub struct BulkOnlyTransport<'a> { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 91 | max_lun: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REPORT_SUPP_OPCODES_CMD_LEN` is never used [INFO] [stdout] --> storage/usbscsid/src/scsi/mod.rs:23:7 [INFO] [stdout] | [INFO] [stdout] 23 | const REPORT_SUPP_OPCODES_CMD_LEN: u8 = 12; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MIN_REPORT_SUPP_OPCODES_ALLOC_LEN` is never used [INFO] [stdout] --> storage/usbscsid/src/scsi/mod.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | const MIN_REPORT_SUPP_OPCODES_ALLOC_LEN: u32 = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `obsolete_lba` is never read [INFO] [stdout] --> storage/usbscsid/src/scsi/cmds.rs:424:5 [INFO] [stdout] | [INFO] [stdout] 421 | pub struct ReadCapacity10 { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 424 | obsolete_lba: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ReadCapacity10` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max_lun` is never read [INFO] [stdout] --> storage/usbscsid/src/protocol/bot.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 85 | pub struct BulkOnlyTransport<'a> { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 91 | max_lun: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REPORT_SUPP_OPCODES_CMD_LEN` is never used [INFO] [stdout] --> storage/usbscsid/src/scsi/mod.rs:23:7 [INFO] [stdout] | [INFO] [stdout] 23 | const REPORT_SUPP_OPCODES_CMD_LEN: u8 = 12; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MIN_REPORT_SUPP_OPCODES_ALLOC_LEN` is never used [INFO] [stdout] --> storage/usbscsid/src/scsi/mod.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | const MIN_REPORT_SUPP_OPCODES_ALLOC_LEN: u32 = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `obsolete_lba` is never read [INFO] [stdout] --> storage/usbscsid/src/scsi/cmds.rs:424:5 [INFO] [stdout] | [INFO] [stdout] 421 | pub struct ReadCapacity10 { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 424 | obsolete_lba: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ReadCapacity10` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ahcid v0.1.0 (/opt/rustwide/workdir/storage/ahcid) [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking e1000d v0.1.0 (/opt/rustwide/workdir/net/e1000d) [INFO] [stdout] warning: unused imports: `TryFrom` and `TryInto` [INFO] [stdout] --> xhcid/src/main.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use std::convert::{TryFrom, TryInto}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> xhcid/src/main.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use std::fs::{self, File}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::future::Future` [INFO] [stdout] --> xhcid/src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::future::Future; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> xhcid/src/main.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::{self, Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsRawFd` [INFO] [stdout] --> xhcid/src/main.rs:8:25 [INFO] [stdout] | [INFO] [stdout] 8 | use std::os::unix::io::{AsRawFd, FromRawFd, RawFd}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::pin::Pin` [INFO] [stdout] --> xhcid/src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::pin::Pin; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> xhcid/src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Event` and `RawEventQueue` [INFO] [stdout] --> xhcid/src/main.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | use event::{Event, RawEventQueue}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `syscall::flag::EventFlags` [INFO] [stdout] --> xhcid/src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use syscall::flag::EventFlags; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BosAnyDevDesc`, `BosSuperSpeedDesc`, and `bos_capability_descs` [INFO] [stdout] --> xhcid/src/usb/mod.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | pub use self::bos::{bos_capability_descs, BosAnyDevDesc, BosDescriptor, BosSuperSpeedDesc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::hub::*` [INFO] [stdout] --> xhcid/src/usb/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use self::hub::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SetupReq` [INFO] [stdout] --> xhcid/src/usb/mod.rs:10:30 [INFO] [stdout] | [INFO] [stdout] 10 | pub use self::setup::{Setup, SetupReq}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::future::Future` [INFO] [stdout] --> xhcid/src/xhci/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::future::Future; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::pin::Pin` [INFO] [stdout] --> xhcid/src/xhci/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::pin::Pin; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Weak` [INFO] [stdout] --> xhcid/src/xhci/mod.rs:7:41 [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::{Arc, Mutex, MutexGuard, Weak}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AtomicBool` [INFO] [stdout] --> xhcid/src/xhci/mod.rs:8:25 [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::atomic::{AtomicBool, AtomicUsize}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `sync::atomic` and `task` [INFO] [stdout] --> xhcid/src/xhci/mod.rs:10:32 [INFO] [stdout] | [INFO] [stdout] 10 | use std::{mem, process, slice, sync::atomic, task, thread}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PciFeature` [INFO] [stdout] --> xhcid/src/xhci/mod.rs:25:41 [INFO] [stdout] | [INFO] [stdout] 25 | use pcid_interface::{PciFunctionHandle, PciFeature}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::BTreeMap` [INFO] [stdout] --> xhcid/src/xhci/irq_reactor.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::BTreeMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicUsize` and `self` [INFO] [stdout] --> xhcid/src/xhci/irq_reactor.rs:7:25 [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::atomic::{self, AtomicUsize}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `io`, `mem`, and `thread` [INFO] [stdout] --> xhcid/src/xhci/irq_reactor.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | use std::{io, mem, task, thread}; [INFO] [stdout] | ^^ ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::Stream` [INFO] [stdout] --> xhcid/src/xhci/irq_reactor.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use futures::Stream; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EventQueue` and `Event` [INFO] [stdout] --> xhcid/src/xhci/irq_reactor.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | use event::{Event, EventQueue, RawEventQueue}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::num::NonZeroU8` [INFO] [stdout] --> xhcid/src/xhci/operational.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::num::NonZeroU8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice` [INFO] [stdout] --> xhcid/src/xhci/operational.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::slice; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::CapabilityRegs` [INFO] [stdout] --> xhcid/src/xhci/operational.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use super::CapabilityRegs; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `smallvec` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | use smallvec::{smallvec, SmallVec}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EEXIST`, `ENXIO`, `EOPNOTSUPP`, `EOVERFLOW`, `EPERM`, `O_CREAT`, and `O_RDONLY` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:16:58 [INFO] [stdout] | [INFO] [stdout] 16 | Error, Result, Stat, EACCES, EBADF, EBADFD, EBADMSG, EEXIST, EINVAL, EIO, EISDIR, ENOENT, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | ENOSYS, ENOTDIR, ENXIO, EOPNOTSUPP, EOVERFLOW, EPERM, EPROTO, ESPIPE, MODE_CHR, MODE_DIR, [INFO] [stdout] | ^^^^^ ^^^^^^^^^^ ^^^^^^^^^ ^^^^^ [INFO] [stdout] 18 | MODE_FILE, O_CREAT, O_DIRECTORY, O_RDONLY, O_RDWR, O_STAT, O_WRONLY, SEEK_CUR, SEEK_END, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ENDPOINT_CONTEXT_STATUS_MASK`, `InputContext`, and `StreamContext` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | InputContext, SlotState, StreamContext, StreamContextArray, StreamContextType, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] 27 | ENDPOINT_CONTEXT_STATUS_MASK, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::doorbell::Doorbell` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | use super::doorbell::Doorbell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::operational::OperationalRegs` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | use super::operational::OperationalRegs; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::runtime::RuntimeRegs` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | use super::runtime::RuntimeRegs; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ENDP_ATTR_TY_MASK` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:36:40 [INFO] [stdout] | [INFO] [stdout] 36 | use super::usb::endpoint::{EndpointTy, ENDP_ATTR_TY_MASK}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Interrupter` [INFO] [stdout] --> xhcid/src/xhci/mod.rs:49:21 [INFO] [stdout] | [INFO] [stdout] 49 | use self::runtime::{Interrupter, RuntimeRegs}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TrbType` [INFO] [stdout] --> xhcid/src/xhci/mod.rs:50:55 [INFO] [stdout] | [INFO] [stdout] 50 | use self::trb::{TransferKind, Trb, TrbCompletionCode, TrbType}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> net/e1000d/src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::Infallible` [INFO] [stdout] --> net/e1000d/src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::convert::Infallible; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Result` [INFO] [stdout] --> net/e1000d/src/main.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{Read, Result, Write}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> net/e1000d/src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `syscall::EventFlags` [INFO] [stdout] --> net/e1000d/src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use syscall::EventFlags; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:261:17 [INFO] [stdout] | [INFO] [stdout] 261 | let mut int = &mut run.ints[0]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len_bytes` [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:461:13 [INFO] [stdout] | [INFO] [stdout] 461 | let len_bytes = match self.bytes.get(2..4) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_len_bytes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len_bytes` [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:461:13 [INFO] [stdout] | [INFO] [stdout] 461 | let len_bytes = match self.bytes.get(2..4) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_len_bytes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/mod.rs:551:21 [INFO] [stdout] | [INFO] [stdout] 551 | let mut ring = match self.address_device(&mut input, i, slot_ty, slot, speed).await { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/mod.rs:562:21 [INFO] [stdout] | [INFO] [stdout] 562 | let mut port_state = PortState { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/mod.rs:581:25 [INFO] [stdout] | [INFO] [stdout] 581 | let mut port_state = self.port_states.get_mut(&i).unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/mod.rs:592:25 [INFO] [stdout] | [INFO] [stdout] 592 | let mut port_state = self.port_states.get_mut(&i).unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hci` [INFO] [stdout] --> xhcid/src/main.rs:38:24 [INFO] [stdout] | [INFO] [stdout] 38 | async fn handle_packet(hci: Arc, packet: Packet) -> Packet { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_hci` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `packet` [INFO] [stdout] --> xhcid/src/main.rs:38:40 [INFO] [stdout] | [INFO] [stdout] 38 | async fn handle_packet(hci: Arc, packet: Packet) -> Packet { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slot_ty` [INFO] [stdout] --> xhcid/src/xhci/mod.rs:671:9 [INFO] [stdout] | [INFO] [stdout] 671 | slot_ty: u8, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_slot_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/mod.rs:675:13 [INFO] [stdout] | [INFO] [stdout] 675 | let mut ring = Ring::new(self.cap.ac64(), 16, true)?; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> net/e1000d/src/main.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | let mut event_queue = [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IMS_TXDW` is never used [INFO] [stdout] --> net/e1000d/src/device.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 29 | const IMS_TXDW: u32 = 1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IMS_TXQE` is never used [INFO] [stdout] --> net/e1000d/src/device.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | const IMS_TXQE: u32 = 1 << 1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IMS_LSC` is never used [INFO] [stdout] --> net/e1000d/src/device.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | const IMS_LSC: u32 = 1 << 2; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RCTL_MPE` is never used [INFO] [stdout] --> net/e1000d/src/device.rs:40:7 [INFO] [stdout] | [INFO] [stdout] 40 | const RCTL_MPE: u32 = 1 << 4; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `checksum`, `error`, and `special` are never read [INFO] [stdout] --> net/e1000d/src/device.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 60 | struct Rd { [INFO] [stdout] | -- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 63 | checksum: u16, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 64 | status: u8, [INFO] [stdout] 65 | error: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 66 | special: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rd` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RD_EOP` is never used [INFO] [stdout] --> net/e1000d/src/device.rs:69:7 [INFO] [stdout] | [INFO] [stdout] 69 | const RD_EOP: u8 = 1 << 1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TD_DD` is never used [INFO] [stdout] --> net/e1000d/src/device.rs:95:7 [INFO] [stdout] | [INFO] [stdout] 95 | const TD_DD: u8 = 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking bgad v0.1.0 (/opt/rustwide/workdir/graphics/bgad) [INFO] [stdout] warning: function `monotonic` is never used [INFO] [stdout] --> acpid/src/main.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn monotonic() -> (u64, u64) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `revision`, `checksum`, `oem_revision`, `creator_id`, and `creator_revision` are never read [INFO] [stdout] --> acpid/src/acpi.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct SdtHeader { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 37 | pub revision: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 38 | pub checksum: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub oem_revision: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 42 | pub creator_id: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 43 | pub creator_revision: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SdtHeader` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mut_aml_context` is never used [INFO] [stdout] --> acpid/src/acpi.rs:265:12 [INFO] [stdout] | [INFO] [stdout] 251 | impl AmlSymbols { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 265 | pub fn mut_aml_context(&mut self) -> &mut AmlContext { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `next_ctx` is never read [INFO] [stdout] --> acpid/src/acpi.rs:367:9 [INFO] [stdout] | [INFO] [stdout] 355 | pub struct AcpiContext { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 367 | pub next_ctx: RwLock, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_signature_from_index`, `get_index_from_signature`, and `aml_symbols_reset` are never used [INFO] [stdout] --> acpid/src/acpi.rs:488:12 [INFO] [stdout] | [INFO] [stdout] 370 | impl AcpiContext { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 488 | pub fn get_signature_from_index(&self, index: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 491 | pub fn get_index_from_signature(&self, signature: &SdtSignature) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 533 | pub fn aml_symbols_reset(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> acpid/src/acpi.rs:628:9 [INFO] [stdout] | [INFO] [stdout] 627 | pub struct FadtStruct { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 628 | pub header: SdtHeader, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 629 | pub firmware_ctrl: u32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 633 | reserved: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 634 | [INFO] [stdout] 635 | pub preferred_power_managament: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 636 | pub sci_interrupt: u16, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 637 | pub smi_command_port: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 638 | pub acpi_enable: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 639 | pub acpi_disable: u8, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 640 | pub s4_bios_req: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 641 | pub pstate_control: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 642 | pub pm1a_event_block: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 643 | pub pm1b_event_block: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 644 | pub pm1a_control_block: u32, [INFO] [stdout] 645 | pub pm1b_control_block: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 646 | pub pm2_control_block: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 647 | pub pm_timer_block: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 648 | pub gpe0_block: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 649 | pub gpe1_block: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 650 | pub pm1_event_length: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 651 | pub pm1_control_length: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 652 | pub pm2_control_length: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 653 | pub pm_timer_length: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 654 | pub gpe0_ength: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 655 | pub gpe1_length: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 656 | pub gpe1_base: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 657 | pub c_state_control: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 658 | pub worst_c2_latency: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 659 | pub worst_c3_latency: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 660 | pub flush_size: u16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 661 | pub flush_stride: u16, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 662 | pub duty_offset: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 663 | pub duty_width: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 664 | pub day_alarm: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 665 | pub month_alarm: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 666 | pub century: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 669 | pub boot_architecture_flags: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 670 | [INFO] [stdout] 671 | reserved2: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 672 | pub flags: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FadtStruct` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `address_space`, `bit_width`, `bit_offset`, `access_size`, and `address` are never read [INFO] [stdout] --> acpid/src/acpi.rs:679:5 [INFO] [stdout] | [INFO] [stdout] 678 | pub struct GenericAddressStructure { [INFO] [stdout] | ----------------------- fields in this struct [INFO] [stdout] 679 | address_space: u8, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 680 | bit_width: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 681 | bit_offset: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 682 | access_size: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 683 | address: u64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GenericAddressStructure` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> acpid/src/acpi.rs:690:9 [INFO] [stdout] | [INFO] [stdout] 688 | pub struct FadtAcpi2Struct { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 689 | // 12 byte structure; see below for details [INFO] [stdout] 690 | pub reset_reg: GenericAddressStructure, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 691 | [INFO] [stdout] 692 | pub reset_value: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 693 | reserved3: [u8; 3], [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 696 | pub x_firmware_control: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 699 | pub x_pm1a_event_block: GenericAddressStructure, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 700 | pub x_pm1b_event_block: GenericAddressStructure, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 701 | pub x_pm1a_control_block: GenericAddressStructure, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 702 | pub x_pm1b_control_block: GenericAddressStructure, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 703 | pub x_pm2_control_block: GenericAddressStructure, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 704 | pub x_pm_timer_block: GenericAddressStructure, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 705 | pub x_gpe0_block: GenericAddressStructure, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 706 | pub x_gpe1_block: GenericAddressStructure, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FadtAcpi2Struct` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Dsdt` and `Ssdt` are never constructed [INFO] [stdout] --> acpid/src/acpi.rs:782:5 [INFO] [stdout] | [INFO] [stdout] 781 | pub enum PossibleAmlTables { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 782 | Dsdt(Dsdt), [INFO] [stdout] | ^^^^ [INFO] [stdout] 783 | Ssdt(Ssdt), [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `try_new` is never used [INFO] [stdout] --> acpid/src/acpi.rs:786:12 [INFO] [stdout] | [INFO] [stdout] 785 | impl PossibleAmlTables { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 786 | pub fn try_new(inner: Sdt) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `sdt_header`, `host_addr_width`, and `flags` are never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct DmarStruct { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 25 | pub sdt_header: SdtHeader, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 26 | pub host_addr_width: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 27 | pub flags: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `remmapping_structs_area` is never used [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 38 | impl Dmar { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 39 | fn remmapping_structs_area(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `init`, `new`, and `iter` are never used [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl Dmar { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn init(acpi_ctx: &AcpiContext) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | fn new(sdt: Sdt) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn iter(&self) -> DmarIter<'_> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind`, `length`, `flags`, `segment`, and `base` are never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 112 | pub struct DmarDrhdHeader { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 113 | pub kind: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 114 | pub length: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 115 | [INFO] [stdout] 116 | pub flags: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 117 | pub _rsv: u8, [INFO] [stdout] 118 | pub segment: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 119 | pub base: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DmarDrhdHeader` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ty`, `len`, `enumeration_id`, and `start_bus_num` are never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct DeviceScopeHeader { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 126 | pub ty: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 127 | pub len: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 128 | pub _rsvd: u16, [INFO] [stdout] 129 | pub enumeration_id: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 130 | pub start_bus_num: u8, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DeviceScopeHeader` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `try_new` is never used [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 138 | impl DeviceScope { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 139 | pub fn try_new(raw: &[u8]) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `device_scope_area` and `map` are never used [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:193:12 [INFO] [stdout] | [INFO] [stdout] 185 | impl DmarDrhd { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 193 | pub fn device_scope_area(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | pub fn map(&self) -> DrhdPage { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind`, `length`, `segment`, `base`, and `limit` are never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:224:9 [INFO] [stdout] | [INFO] [stdout] 223 | pub struct DmarRmrrHeader { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 224 | pub kind: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 225 | pub length: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 226 | pub _rsv: u16, [INFO] [stdout] 227 | pub segment: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 228 | pub base: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 229 | pub limit: u64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DmarRmrrHeader` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind`, `length`, `flags`, and `segment` are never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:267:5 [INFO] [stdout] | [INFO] [stdout] 266 | pub struct DmarAtsrHeader { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 267 | kind: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 268 | length: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 269 | flags: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 270 | _rsv: u8, [INFO] [stdout] 271 | segment: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DmarAtsrHeader` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind`, `length`, `base`, and `domain` are never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:309:9 [INFO] [stdout] | [INFO] [stdout] 308 | pub struct DmarRhsa { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 309 | pub kind: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 310 | pub length: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 313 | pub base: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 314 | pub domain: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DmarRhsa` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind`, `length`, and `acpi_dev` are never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:332:9 [INFO] [stdout] | [INFO] [stdout] 331 | pub struct DmarAnddHeader { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 332 | pub kind: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 333 | pub length: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 336 | pub acpi_dev: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DmarAnddHeader` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind`, `length`, `flags`, and `seg_num` are never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:374:9 [INFO] [stdout] | [INFO] [stdout] 373 | pub struct DmarSatcHeader { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 374 | pub kind: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 375 | pub length: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 376 | [INFO] [stdout] 377 | pub flags: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 378 | pub _rsvd: u8, [INFO] [stdout] 379 | pub seg_num: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DmarSatcHeader` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:431:10 [INFO] [stdout] | [INFO] [stdout] 431 | Drhd(DmarDrhd), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DmarEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 431 | Drhd(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:432:10 [INFO] [stdout] | [INFO] [stdout] 432 | Rmrr(DmarRmrr), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DmarEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 432 | Rmrr(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:433:10 [INFO] [stdout] | [INFO] [stdout] 433 | Atsr(DmarAtsr), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DmarEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 433 | Atsr(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:434:10 [INFO] [stdout] | [INFO] [stdout] 434 | Rhsa(DmarRhsa), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DmarEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 434 | Rhsa(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:435:10 [INFO] [stdout] | [INFO] [stdout] 435 | Andd(DmarAndd), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DmarEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 435 | Andd(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:438:10 [INFO] [stdout] | [INFO] [stdout] 438 | Satc(DmarSatc), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DmarEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 438 | Satc(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:440:14 [INFO] [stdout] | [INFO] [stdout] 440 | TooShort(EntryType), [INFO] [stdout] | -------- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DmarEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 440 | TooShort(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:441:13 [INFO] [stdout] | [INFO] [stdout] 441 | Unknown(u16), [INFO] [stdout] | ------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DmarEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 441 | Unknown(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `map` is never used [INFO] [stdout] --> acpid/src/acpi/dmar/drhd.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl DrhdPage { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 12 | pub fn map(base_phys: usize) -> syscall::Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `sts`, `ctrl`, `data`, `addr`, and `log` are never read [INFO] [stdout] --> acpid/src/acpi/dmar/drhd.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct DrhdFault { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 45 | pub sts: Mmio, [INFO] [stdout] | ^^^ [INFO] [stdout] 46 | pub ctrl: Mmio, [INFO] [stdout] | ^^^^ [INFO] [stdout] 47 | pub data: Mmio, [INFO] [stdout] | ^^^^ [INFO] [stdout] 48 | pub addr: [Mmio; 2], [INFO] [stdout] | ^^^^ [INFO] [stdout] 49 | _rsv: [Mmio; 2], [INFO] [stdout] 50 | pub log: Mmio, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `en`, `low_base`, `low_limit`, `high_base`, and `high_limit` are never read [INFO] [stdout] --> acpid/src/acpi/dmar/drhd.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct DrhdProtectedMemory { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 55 | pub en: Mmio, [INFO] [stdout] | ^^ [INFO] [stdout] 56 | pub low_base: Mmio, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 57 | pub low_limit: Mmio, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 58 | pub high_base: Mmio, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 59 | pub high_limit: Mmio, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> acpid/src/acpi/dmar/drhd.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct DrhdInvalidation { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 64 | pub queue_head: Mmio, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 65 | pub queue_tail: Mmio, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 66 | pub queue_addr: Mmio, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 67 | _rsv: Mmio, [INFO] [stdout] 68 | pub cmpl_sts: Mmio, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 69 | pub cmpl_ctrl: Mmio, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 70 | pub cmpl_data: Mmio, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 71 | pub cmpl_addr: [Mmio; 2], [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> acpid/src/acpi/dmar/drhd.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 75 | pub struct DrhdPageRequest { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 76 | pub queue_head: Mmio, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 77 | pub queue_tail: Mmio, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 78 | pub queue_addr: Mmio, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 79 | _rsv: Mmio, [INFO] [stdout] 80 | pub sts: Mmio, [INFO] [stdout] | ^^^ [INFO] [stdout] 81 | pub ctrl: Mmio, [INFO] [stdout] | ^^^^ [INFO] [stdout] 82 | pub data: Mmio, [INFO] [stdout] | ^^^^ [INFO] [stdout] 83 | pub addr: [Mmio; 2], [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `base` and `mask` are never read [INFO] [stdout] --> acpid/src/acpi/dmar/drhd.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 87 | pub struct DrhdMtrrVariable { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 88 | pub base: Mmio, [INFO] [stdout] | ^^^^ [INFO] [stdout] 89 | pub mask: Mmio, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cap`, `def_type`, `fixed`, and `variable` are never read [INFO] [stdout] --> acpid/src/acpi/dmar/drhd.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 93 | pub struct DrhdMtrr { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 94 | pub cap: Mmio, [INFO] [stdout] | ^^^ [INFO] [stdout] 95 | pub def_type: Mmio, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 96 | pub fixed: [Mmio; 11], [INFO] [stdout] | ^^^^^ [INFO] [stdout] 97 | pub variable: [DrhdMtrrVariable; 10], [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> acpid/src/acpi/dmar/drhd.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 101 | pub struct Drhd { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 102 | pub version: Mmio, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 103 | _rsv: Mmio, [INFO] [stdout] 104 | pub cap: Mmio, [INFO] [stdout] | ^^^ [INFO] [stdout] 105 | pub ext_cap: Mmio, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 106 | pub gl_cmd: Mmio, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 107 | pub gl_sts: Mmio, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 108 | pub root_table: Mmio, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 109 | pub ctx_cmd: Mmio, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 110 | _rsv1: Mmio, [INFO] [stdout] 111 | pub fault: DrhdFault, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 112 | _rsv2: Mmio, [INFO] [stdout] 113 | pub pm: DrhdProtectedMemory, [INFO] [stdout] | ^^ [INFO] [stdout] 114 | pub invl: DrhdInvalidation, [INFO] [stdout] | ^^^^ [INFO] [stdout] 115 | _rsv3: Mmio, [INFO] [stdout] 116 | pub intr_table: Mmio, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 117 | pub page_req: DrhdPageRequest, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 118 | pub mtrr: DrhdMtrr, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `monotonic` is never used [INFO] [stdout] --> acpid/src/main.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn monotonic() -> (u64, u64) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `revision`, `checksum`, `oem_revision`, `creator_id`, and `creator_revision` are never read [INFO] [stdout] --> acpid/src/acpi.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct SdtHeader { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 37 | pub revision: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 38 | pub checksum: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub oem_revision: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 42 | pub creator_id: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 43 | pub creator_revision: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SdtHeader` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mut_aml_context` is never used [INFO] [stdout] --> acpid/src/acpi.rs:265:12 [INFO] [stdout] | [INFO] [stdout] 251 | impl AmlSymbols { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 265 | pub fn mut_aml_context(&mut self) -> &mut AmlContext { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `next_ctx` is never read [INFO] [stdout] --> acpid/src/acpi.rs:367:9 [INFO] [stdout] | [INFO] [stdout] 355 | pub struct AcpiContext { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 367 | pub next_ctx: RwLock, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_signature_from_index`, `get_index_from_signature`, and `aml_symbols_reset` are never used [INFO] [stdout] --> acpid/src/acpi.rs:488:12 [INFO] [stdout] | [INFO] [stdout] 370 | impl AcpiContext { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 488 | pub fn get_signature_from_index(&self, index: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 491 | pub fn get_index_from_signature(&self, signature: &SdtSignature) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 533 | pub fn aml_symbols_reset(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> acpid/src/acpi.rs:628:9 [INFO] [stdout] | [INFO] [stdout] 627 | pub struct FadtStruct { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 628 | pub header: SdtHeader, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 629 | pub firmware_ctrl: u32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 633 | reserved: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 634 | [INFO] [stdout] 635 | pub preferred_power_managament: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 636 | pub sci_interrupt: u16, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 637 | pub smi_command_port: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 638 | pub acpi_enable: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 639 | pub acpi_disable: u8, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 640 | pub s4_bios_req: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 641 | pub pstate_control: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 642 | pub pm1a_event_block: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 643 | pub pm1b_event_block: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 644 | pub pm1a_control_block: u32, [INFO] [stdout] 645 | pub pm1b_control_block: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 646 | pub pm2_control_block: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 647 | pub pm_timer_block: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 648 | pub gpe0_block: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 649 | pub gpe1_block: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 650 | pub pm1_event_length: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 651 | pub pm1_control_length: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 652 | pub pm2_control_length: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 653 | pub pm_timer_length: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 654 | pub gpe0_ength: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 655 | pub gpe1_length: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 656 | pub gpe1_base: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 657 | pub c_state_control: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 658 | pub worst_c2_latency: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 659 | pub worst_c3_latency: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 660 | pub flush_size: u16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 661 | pub flush_stride: u16, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 662 | pub duty_offset: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 663 | pub duty_width: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 664 | pub day_alarm: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 665 | pub month_alarm: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 666 | pub century: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 669 | pub boot_architecture_flags: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 670 | [INFO] [stdout] 671 | reserved2: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 672 | pub flags: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FadtStruct` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `address_space`, `bit_width`, `bit_offset`, `access_size`, and `address` are never read [INFO] [stdout] --> acpid/src/acpi.rs:679:5 [INFO] [stdout] | [INFO] [stdout] 678 | pub struct GenericAddressStructure { [INFO] [stdout] | ----------------------- fields in this struct [INFO] [stdout] 679 | address_space: u8, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 680 | bit_width: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 681 | bit_offset: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 682 | access_size: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 683 | address: u64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GenericAddressStructure` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> acpid/src/acpi.rs:690:9 [INFO] [stdout] | [INFO] [stdout] 688 | pub struct FadtAcpi2Struct { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 689 | // 12 byte structure; see below for details [INFO] [stdout] 690 | pub reset_reg: GenericAddressStructure, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 691 | [INFO] [stdout] 692 | pub reset_value: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 693 | reserved3: [u8; 3], [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 696 | pub x_firmware_control: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 699 | pub x_pm1a_event_block: GenericAddressStructure, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 700 | pub x_pm1b_event_block: GenericAddressStructure, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 701 | pub x_pm1a_control_block: GenericAddressStructure, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 702 | pub x_pm1b_control_block: GenericAddressStructure, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 703 | pub x_pm2_control_block: GenericAddressStructure, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 704 | pub x_pm_timer_block: GenericAddressStructure, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 705 | pub x_gpe0_block: GenericAddressStructure, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 706 | pub x_gpe1_block: GenericAddressStructure, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FadtAcpi2Struct` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Dsdt` and `Ssdt` are never constructed [INFO] [stdout] --> acpid/src/acpi.rs:782:5 [INFO] [stdout] | [INFO] [stdout] 781 | pub enum PossibleAmlTables { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 782 | Dsdt(Dsdt), [INFO] [stdout] | ^^^^ [INFO] [stdout] 783 | Ssdt(Ssdt), [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `try_new` is never used [INFO] [stdout] --> acpid/src/acpi.rs:786:12 [INFO] [stdout] | [INFO] [stdout] 785 | impl PossibleAmlTables { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 786 | pub fn try_new(inner: Sdt) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `sdt_header`, `host_addr_width`, and `flags` are never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct DmarStruct { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 25 | pub sdt_header: SdtHeader, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 26 | pub host_addr_width: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 27 | pub flags: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `remmapping_structs_area` is never used [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 38 | impl Dmar { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 39 | fn remmapping_structs_area(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `init`, `new`, and `iter` are never used [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl Dmar { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn init(acpi_ctx: &AcpiContext) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | fn new(sdt: Sdt) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn iter(&self) -> DmarIter<'_> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind`, `length`, `flags`, `segment`, and `base` are never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 112 | pub struct DmarDrhdHeader { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 113 | pub kind: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 114 | pub length: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 115 | [INFO] [stdout] 116 | pub flags: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 117 | pub _rsv: u8, [INFO] [stdout] 118 | pub segment: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 119 | pub base: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DmarDrhdHeader` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ty`, `len`, `enumeration_id`, and `start_bus_num` are never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct DeviceScopeHeader { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 126 | pub ty: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 127 | pub len: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 128 | pub _rsvd: u16, [INFO] [stdout] 129 | pub enumeration_id: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 130 | pub start_bus_num: u8, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DeviceScopeHeader` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `try_new` is never used [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 138 | impl DeviceScope { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 139 | pub fn try_new(raw: &[u8]) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `device_scope_area` and `map` are never used [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:193:12 [INFO] [stdout] | [INFO] [stdout] 185 | impl DmarDrhd { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 193 | pub fn device_scope_area(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | pub fn map(&self) -> DrhdPage { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind`, `length`, `segment`, `base`, and `limit` are never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:224:9 [INFO] [stdout] | [INFO] [stdout] 223 | pub struct DmarRmrrHeader { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 224 | pub kind: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 225 | pub length: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 226 | pub _rsv: u16, [INFO] [stdout] 227 | pub segment: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 228 | pub base: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 229 | pub limit: u64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DmarRmrrHeader` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind`, `length`, `flags`, and `segment` are never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:267:5 [INFO] [stdout] | [INFO] [stdout] 266 | pub struct DmarAtsrHeader { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 267 | kind: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 268 | length: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 269 | flags: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 270 | _rsv: u8, [INFO] [stdout] 271 | segment: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DmarAtsrHeader` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind`, `length`, `base`, and `domain` are never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:309:9 [INFO] [stdout] | [INFO] [stdout] 308 | pub struct DmarRhsa { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 309 | pub kind: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 310 | pub length: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 313 | pub base: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 314 | pub domain: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DmarRhsa` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind`, `length`, and `acpi_dev` are never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:332:9 [INFO] [stdout] | [INFO] [stdout] 331 | pub struct DmarAnddHeader { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 332 | pub kind: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 333 | pub length: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 336 | pub acpi_dev: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DmarAnddHeader` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind`, `length`, `flags`, and `seg_num` are never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:374:9 [INFO] [stdout] | [INFO] [stdout] 373 | pub struct DmarSatcHeader { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 374 | pub kind: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 375 | pub length: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 376 | [INFO] [stdout] 377 | pub flags: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 378 | pub _rsvd: u8, [INFO] [stdout] 379 | pub seg_num: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DmarSatcHeader` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:431:10 [INFO] [stdout] | [INFO] [stdout] 431 | Drhd(DmarDrhd), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DmarEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 431 | Drhd(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:432:10 [INFO] [stdout] | [INFO] [stdout] 432 | Rmrr(DmarRmrr), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DmarEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 432 | Rmrr(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:433:10 [INFO] [stdout] | [INFO] [stdout] 433 | Atsr(DmarAtsr), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DmarEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 433 | Atsr(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:434:10 [INFO] [stdout] | [INFO] [stdout] 434 | Rhsa(DmarRhsa), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DmarEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 434 | Rhsa(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:435:10 [INFO] [stdout] | [INFO] [stdout] 435 | Andd(DmarAndd), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DmarEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 435 | Andd(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:438:10 [INFO] [stdout] | [INFO] [stdout] 438 | Satc(DmarSatc), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DmarEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 438 | Satc(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:440:14 [INFO] [stdout] | [INFO] [stdout] 440 | TooShort(EntryType), [INFO] [stdout] | -------- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DmarEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 440 | TooShort(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> acpid/src/acpi/dmar/mod.rs:441:13 [INFO] [stdout] | [INFO] [stdout] 441 | Unknown(u16), [INFO] [stdout] | ------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DmarEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 441 | Unknown(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `map` is never used [INFO] [stdout] --> acpid/src/acpi/dmar/drhd.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl DrhdPage { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 12 | pub fn map(base_phys: usize) -> syscall::Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `sts`, `ctrl`, `data`, `addr`, and `log` are never read [INFO] [stdout] --> acpid/src/acpi/dmar/drhd.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct DrhdFault { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 45 | pub sts: Mmio, [INFO] [stdout] | ^^^ [INFO] [stdout] 46 | pub ctrl: Mmio, [INFO] [stdout] | ^^^^ [INFO] [stdout] 47 | pub data: Mmio, [INFO] [stdout] | ^^^^ [INFO] [stdout] 48 | pub addr: [Mmio; 2], [INFO] [stdout] | ^^^^ [INFO] [stdout] 49 | _rsv: [Mmio; 2], [INFO] [stdout] 50 | pub log: Mmio, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `en`, `low_base`, `low_limit`, `high_base`, and `high_limit` are never read [INFO] [stdout] --> acpid/src/acpi/dmar/drhd.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct DrhdProtectedMemory { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 55 | pub en: Mmio, [INFO] [stdout] | ^^ [INFO] [stdout] 56 | pub low_base: Mmio, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 57 | pub low_limit: Mmio, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 58 | pub high_base: Mmio, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 59 | pub high_limit: Mmio, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> acpid/src/acpi/dmar/drhd.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct DrhdInvalidation { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 64 | pub queue_head: Mmio, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 65 | pub queue_tail: Mmio, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 66 | pub queue_addr: Mmio, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 67 | _rsv: Mmio, [INFO] [stdout] 68 | pub cmpl_sts: Mmio, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 69 | pub cmpl_ctrl: Mmio, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 70 | pub cmpl_data: Mmio, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 71 | pub cmpl_addr: [Mmio; 2], [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> acpid/src/acpi/dmar/drhd.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 75 | pub struct DrhdPageRequest { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 76 | pub queue_head: Mmio, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 77 | pub queue_tail: Mmio, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 78 | pub queue_addr: Mmio, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 79 | _rsv: Mmio, [INFO] [stdout] 80 | pub sts: Mmio, [INFO] [stdout] | ^^^ [INFO] [stdout] 81 | pub ctrl: Mmio, [INFO] [stdout] | ^^^^ [INFO] [stdout] 82 | pub data: Mmio, [INFO] [stdout] | ^^^^ [INFO] [stdout] 83 | pub addr: [Mmio; 2], [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `base` and `mask` are never read [INFO] [stdout] --> acpid/src/acpi/dmar/drhd.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 87 | pub struct DrhdMtrrVariable { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 88 | pub base: Mmio, [INFO] [stdout] | ^^^^ [INFO] [stdout] 89 | pub mask: Mmio, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cap`, `def_type`, `fixed`, and `variable` are never read [INFO] [stdout] --> acpid/src/acpi/dmar/drhd.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 93 | pub struct DrhdMtrr { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 94 | pub cap: Mmio, [INFO] [stdout] | ^^^ [INFO] [stdout] 95 | pub def_type: Mmio, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 96 | pub fixed: [Mmio; 11], [INFO] [stdout] | ^^^^^ [INFO] [stdout] 97 | pub variable: [DrhdMtrrVariable; 10], [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> acpid/src/acpi/dmar/drhd.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 101 | pub struct Drhd { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 102 | pub version: Mmio, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 103 | _rsv: Mmio, [INFO] [stdout] 104 | pub cap: Mmio, [INFO] [stdout] | ^^^ [INFO] [stdout] 105 | pub ext_cap: Mmio, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 106 | pub gl_cmd: Mmio, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 107 | pub gl_sts: Mmio, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 108 | pub root_table: Mmio, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 109 | pub ctx_cmd: Mmio, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 110 | _rsv1: Mmio, [INFO] [stdout] 111 | pub fault: DrhdFault, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 112 | _rsv2: Mmio, [INFO] [stdout] 113 | pub pm: DrhdProtectedMemory, [INFO] [stdout] | ^^ [INFO] [stdout] 114 | pub invl: DrhdInvalidation, [INFO] [stdout] | ^^^^ [INFO] [stdout] 115 | _rsv3: Mmio, [INFO] [stdout] 116 | pub intr_table: Mmio, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 117 | pub page_req: DrhdPageRequest, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 118 | pub mtrr: DrhdMtrr, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:298:9 [INFO] [stdout] | [INFO] [stdout] 298 | name: &str, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:308:17 [INFO] [stdout] | [INFO] [stdout] 308 | let mut endpoint_state = port_state [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 41 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 41 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:369:9 [INFO] [stdout] | [INFO] [stdout] 369 | name: &str, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:261:17 [INFO] [stdout] | [INFO] [stdout] 261 | let mut int = &mut run.ints[0]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Result` [INFO] [stdout] --> vboxd/src/main.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::{Result, Read, Write}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PciBar` [INFO] [stdout] --> vboxd/src/main.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | use pcid_interface::{PciBar, PciFunctionHandle}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `syscall::flag::EventFlags` [INFO] [stdout] --> vboxd/src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use syscall::flag::EventFlags; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/mod.rs:551:21 [INFO] [stdout] | [INFO] [stdout] 551 | let mut ring = match self.address_device(&mut input, i, slot_ty, slot, speed).await { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/mod.rs:562:21 [INFO] [stdout] | [INFO] [stdout] 562 | let mut port_state = PortState { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/mod.rs:581:25 [INFO] [stdout] | [INFO] [stdout] 581 | let mut port_state = self.port_states.get_mut(&i).unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/mod.rs:592:25 [INFO] [stdout] | [INFO] [stdout] 592 | let mut port_state = self.port_states.get_mut(&i).unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slot_ty` [INFO] [stdout] --> xhcid/src/xhci/mod.rs:671:9 [INFO] [stdout] | [INFO] [stdout] 671 | slot_ty: u8, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_slot_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:596:13 [INFO] [stdout] | [INFO] [stdout] 596 | let mut req: ConfigureEndpointsReq = [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EventQueue` [INFO] [stdout] --> virtio-core/src/transport.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use event::{EventQueue, RawEventQueue}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/mod.rs:675:13 [INFO] [stdout] | [INFO] [stdout] 675 | let mut ring = Ring::new(self.cap.ac64(), 16, true)?; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> net/rtl8168d/src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Infallible` [INFO] [stdout] --> net/rtl8168d/src/main.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | use std::convert::{Infallible, TryInto}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Result` [INFO] [stdout] --> net/rtl8168d/src/main.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{Read, Result, Write}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> net/rtl8168d/src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `syscall::EventFlags` [INFO] [stdout] --> net/rtl8168d/src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use syscall::EventFlags; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `direction` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:909:9 [INFO] [stdout] | [INFO] [stdout] 909 | direction: PortReqDirection, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_direction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:914:13 [INFO] [stdout] | [INFO] [stdout] 914 | let mut port_state = self [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `size` and `version` are never read [INFO] [stdout] --> vboxd/src/main.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 27 | struct VboxVmmDev { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 28 | size: Mmio, [INFO] [stdout] | ^^^^ [INFO] [stdout] 29 | version: Mmio, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `result` is never read [INFO] [stdout] --> vboxd/src/main.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 36 | struct VboxHeader { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 44 | result: Mmio, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `features` is never read [INFO] [stdout] --> vboxd/src/main.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 51 | struct VboxGetMouse { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 52 | header: VboxHeader, [INFO] [stdout] 53 | features: Mmio, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> vboxd/src/main.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 74 | struct VboxSetMouse { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 77 | x: Mmio, [INFO] [stdout] | ^ [INFO] [stdout] 78 | y: Mmio, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `events` is never read [INFO] [stdout] --> vboxd/src/main.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 97 | struct VboxAckEvents { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 98 | header: VboxHeader, [INFO] [stdout] 99 | events: Mmio, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bpp` and `eventack` are never read [INFO] [stdout] --> vboxd/src/main.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 138 | struct VboxDisplayChange { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 142 | bpp: Mmio, [INFO] [stdout] | ^^^ [INFO] [stdout] 143 | eventack: Mmio, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `read`, `width`, and `height` are never used [INFO] [stdout] --> vboxd/src/bga.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl Bga { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | fn read(&mut self, index: u16) -> u16 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn width(&mut self) -> u16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn height(&mut self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1762:13 [INFO] [stdout] | [INFO] [stdout] 1762 | let mut endpoint_state = port_state [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:298:9 [INFO] [stdout] | [INFO] [stdout] 298 | name: &str, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1923:13 [INFO] [stdout] | [INFO] [stdout] 1923 | other => { [INFO] [stdout] | ^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1923:13 [INFO] [stdout] | [INFO] [stdout] 1877 | XhciEndpCtlReq::Status => match ep_if_state { [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1883 | XhciEndpCtlReq::Reset { no_clear_feature } => match ep_if_state { [INFO] [stdout] | ------------------------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1889 | XhciEndpCtlReq::Transfer { direction, count } => match ep_if_state { [INFO] [stdout] | --------------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1923 | other => { [INFO] [stdout] | ^^^^^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1879:17 [INFO] [stdout] | [INFO] [stdout] 1879 | other => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1885:17 [INFO] [stdout] | [INFO] [stdout] 1885 | other => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1919:17 [INFO] [stdout] | [INFO] [stdout] 1919 | other => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:308:17 [INFO] [stdout] | [INFO] [stdout] 308 | let mut endpoint_state = port_state [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1923:13 [INFO] [stdout] | [INFO] [stdout] 1923 | other => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:369:9 [INFO] [stdout] | [INFO] [stdout] 369 | name: &str, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `capability` [INFO] [stdout] --> net/rtl8168d/src/main.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | ... let capability = match pcid_handle.feature_info(PciFeature::Msi).expect("rtl8168d: failed to retrieve the MSI capability structure ... [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_capability` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1951:13 [INFO] [stdout] | [INFO] [stdout] 1951 | let mut endpoint_state = port_state.endpoint_states.get_mut(&endp_num).ok_or(Error::new(EBADFD))?; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1974:21 [INFO] [stdout] | [INFO] [stdout] 1974 | let mut endpoint_state = port_state.endpoint_states.get_mut(&endp_num).ok_or(Error::new(EBADFD))?; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> net/rtl8168d/src/main.rs:199:9 [INFO] [stdout] | [INFO] [stdout] 199 | let mut event_queue = EventQueue::::new().expect("rtl8168d: Could not create event queue."); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:2042:13 [INFO] [stdout] | [INFO] [stdout] 2042 | let mut ep_if_state = &mut port_state [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:2072:21 [INFO] [stdout] | [INFO] [stdout] 2072 | let mut ep_state = port_state [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> net/rtl8139d/src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Infallible` [INFO] [stdout] --> net/rtl8139d/src/main.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use std::convert::{Infallible, TryInto}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Result` [INFO] [stdout] --> net/rtl8139d/src/main.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::{Read, Result, Write}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> net/rtl8139d/src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `syscall::EventFlags` [INFO] [stdout] --> net/rtl8139d/src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use syscall::EventFlags; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> virtio-core/src/transport.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | for event in event_queue.map(Result::unwrap) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> virtio-core/src/transport.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let mut event_queue = RawEventQueue::new().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:596:13 [INFO] [stdout] | [INFO] [stdout] 596 | let mut req: ConfigureEndpointsReq = [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `phys` [INFO] [stdout] --> virtio-core/src/transport.rs:281:17 [INFO] [stdout] | [INFO] [stdout] 281 | phys, [INFO] [stdout] | ^^^^ help: try ignoring the field: `phys: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> virtio-core/src/transport.rs:283:17 [INFO] [stdout] | [INFO] [stdout] 283 | size, [INFO] [stdout] | ^^^^ help: try ignoring the field: `size: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `phys` [INFO] [stdout] --> virtio-core/src/transport.rs:292:17 [INFO] [stdout] | [INFO] [stdout] 292 | phys, [INFO] [stdout] | ^^^^ help: try ignoring the field: `phys: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> virtio-core/src/transport.rs:294:17 [INFO] [stdout] | [INFO] [stdout] 294 | size, [INFO] [stdout] | ^^^^ help: try ignoring the field: `size: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `direction` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:909:9 [INFO] [stdout] | [INFO] [stdout] 909 | direction: PortReqDirection, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_direction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:914:13 [INFO] [stdout] | [INFO] [stdout] 914 | let mut port_state = self [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> storage/nvmed/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> storage/nvmed/src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ErrorKind`, `Read`, and `Write` [INFO] [stdout] --> storage/nvmed/src/main.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::{ErrorKind, Read, Write}; [INFO] [stdout] | ^^^^^^^^^ ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRawFd` and `RawFd` [INFO] [stdout] --> storage/nvmed/src/main.rs:7:25 [INFO] [stdout] | [INFO] [stdout] 7 | use std::os::unix::io::{FromRawFd, RawFd}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mutex` [INFO] [stdout] --> storage/nvmed/src/main.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `libredox::flag` [INFO] [stdout] --> storage/nvmed/src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use libredox::flag; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CallRequest` [INFO] [stdout] --> storage/nvmed/src/main.rs:14:20 [INFO] [stdout] | [INFO] [stdout] 14 | use redox_scheme::{CallRequest, RequestKind, SignalBehavior, Socket, V2}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Event`, `Mmio`, `PAGE_SIZE`, `Packet`, and `SchemeBlockMut` [INFO] [stdout] --> storage/nvmed/src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | Event, Mmio, Packet, Result, SchemeBlockMut, [INFO] [stdout] | ^^^^^ ^^^^ ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] 17 | PAGE_SIZE, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr` [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ptr; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicUsize` and `Ordering` [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:5:47 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::atomic::{AtomicU16, AtomicU64, AtomicUsize, Ordering}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EINVAL` [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:12:37 [INFO] [stdout] | [INFO] [stdout] 12 | use syscall::error::{Error, Result, EINVAL, EIO}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> storage/nvmed/src/nvme/identify.rs:125:15 [INFO] [stdout] | [INFO] [stdout] 125 | match ((self.0 >> 24) & 0b11) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 125 - match ((self.0 >> 24) & 0b11) { [INFO] [stdout] 125 + match (self.0 >> 24) & 0b11 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Io`, `SEEK_CUR`, `SEEK_END`, and `SEEK_SET` [INFO] [stdout] --> storage/nvmed/src/scheme.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | Error, Io, Result, Stat, EACCES, EBADF, EINVAL, EISDIR, ENOENT, ENOLCK, EOVERFLOW, MODE_DIR, [INFO] [stdout] | ^^ [INFO] [stdout] 12 | MODE_FILE, O_DIRECTORY, O_STAT, SEEK_CUR, SEEK_END, SEEK_SET, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `capability` [INFO] [stdout] --> net/rtl8139d/src/main.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | ... let capability = match pcid_handle.feature_info(PciFeature::Msi).expect("rtl8139d: failed to retrieve the MSI capability structure ... [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_capability` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> net/rtl8139d/src/main.rs:204:9 [INFO] [stdout] | [INFO] [stdout] 204 | let mut event_queue = EventQueue::::new().expect("rtl8139d: Could not create event queue."); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TSD_TOK` is never used [INFO] [stdout] --> net/rtl8139d/src/device.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const TSD_TOK: u32 = 1 << 15; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RCR_RBLEN_8K` is never used [INFO] [stdout] --> net/rtl8139d/src/device.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | const RCR_RBLEN_8K: u32 = 0b00 << 11; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RCR_RBLEN_16K` is never used [INFO] [stdout] --> net/rtl8139d/src/device.rs:27:7 [INFO] [stdout] | [INFO] [stdout] 27 | const RCR_RBLEN_16K: u32 = 0b01 << 11; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RCR_RBLEN_32K` is never used [INFO] [stdout] --> net/rtl8139d/src/device.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 28 | const RCR_RBLEN_32K: u32 = 0b10 << 11; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RCR_RBLEN_MASK` is never used [INFO] [stdout] --> net/rtl8139d/src/device.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | const RCR_RBLEN_MASK: u32 = 0b11 << 11; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RCR_AER` is never used [INFO] [stdout] --> net/rtl8139d/src/device.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | const RCR_AER: u32 = 1 << 5; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RCR_AR` is never used [INFO] [stdout] --> net/rtl8139d/src/device.rs:32:7 [INFO] [stdout] | [INFO] [stdout] 32 | const RCR_AR: u32 = 1 << 4; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1762:13 [INFO] [stdout] | [INFO] [stdout] 1762 | let mut endpoint_state = port_state [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1923:13 [INFO] [stdout] | [INFO] [stdout] 1923 | other => { [INFO] [stdout] | ^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1923:13 [INFO] [stdout] | [INFO] [stdout] 1877 | XhciEndpCtlReq::Status => match ep_if_state { [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1883 | XhciEndpCtlReq::Reset { no_clear_feature } => match ep_if_state { [INFO] [stdout] | ------------------------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1889 | XhciEndpCtlReq::Transfer { direction, count } => match ep_if_state { [INFO] [stdout] | --------------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1923 | other => { [INFO] [stdout] | ^^^^^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1879:17 [INFO] [stdout] | [INFO] [stdout] 1879 | other => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1885:17 [INFO] [stdout] | [INFO] [stdout] 1885 | other => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1919:17 [INFO] [stdout] | [INFO] [stdout] 1919 | other => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1923:13 [INFO] [stdout] | [INFO] [stdout] 1923 | other => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1951:13 [INFO] [stdout] | [INFO] [stdout] 1951 | let mut endpoint_state = port_state.endpoint_states.get_mut(&endp_num).ok_or(Error::new(EBADFD))?; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1974:21 [INFO] [stdout] | [INFO] [stdout] 1974 | let mut endpoint_state = port_state.endpoint_states.get_mut(&endp_num).ok_or(Error::new(EBADFD))?; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:2042:13 [INFO] [stdout] | [INFO] [stdout] 2042 | let mut ep_if_state = &mut port_state [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:2072:21 [INFO] [stdout] | [INFO] [stdout] 2072 | let mut ep_state = port_state [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> net/e1000d/src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::Infallible` [INFO] [stdout] --> net/e1000d/src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::convert::Infallible; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Result` [INFO] [stdout] --> net/e1000d/src/main.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{Read, Result, Write}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> net/e1000d/src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `syscall::EventFlags` [INFO] [stdout] --> net/e1000d/src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use syscall::EventFlags; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PciBar` [INFO] [stdout] --> storage/ided/src/main.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use pcid_interface::{PciBar, PciFunctionHandle}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ErrorKind` [INFO] [stdout] --> storage/ided/src/main.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | io::{ErrorKind, Read, Write}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking rehid v0.1.0 (https://gitlab.redox-os.org/redox-os/rehid.git#ea48fff4) [INFO] [stdout] warning: unused imports: `Event`, `Packet`, and `flag::EVENT_READ` [INFO] [stdout] --> storage/ided/src/main.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | data::{Event, Packet}, error::{Error, ENODEV}, flag::EVENT_READ, io::Io, scheme::SchemeBlockMut, EAGAIN, EINTR, EWOULDBLOCK [INFO] [stdout] | ^^^^^ ^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Notification`, `Rsvd2`, and `Rsvd3` are never constructed [INFO] [stdout] --> xhcid/src/driver_interface.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 168 | enum InterruptUsageBits { [INFO] [stdout] | ------------------ variants in this enum [INFO] [stdout] 169 | Periodic, [INFO] [stdout] 170 | Notification, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 171 | Rsvd2, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 172 | Rsvd3, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inner` is never read [INFO] [stdout] --> xhcid/src/driver_interface.rs:706:5 [INFO] [stdout] | [INFO] [stdout] 705 | pub struct TransferWriteStream<'a> { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 706 | inner: TransferStream<'a>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inner` is never read [INFO] [stdout] --> xhcid/src/driver_interface.rs:709:5 [INFO] [stdout] | [INFO] [stdout] 708 | pub struct TransferReadStream<'a> { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 709 | inner: TransferStream<'a>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bytes_to_transfer`, `bytes_transferred`, `bytes_per_transfer`, and `endp_handle` are never read [INFO] [stdout] --> xhcid/src/driver_interface.rs:712:5 [INFO] [stdout] | [INFO] [stdout] 711 | struct TransferStream<'a> { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 712 | bytes_to_transfer: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 713 | bytes_transferred: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 714 | bytes_per_transfer: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 715 | endp_handle: &'a mut XhciEndpHandle, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `kind` is never read [INFO] [stdout] --> xhcid/src/usb/bos.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct BosDevDescriptorBase { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] 17 | pub len: u8, [INFO] [stdout] 18 | pub kind: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BosDevDescriptorBase` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> xhcid/src/usb/config.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct OtherSpeedConfig { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 19 | pub length: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 20 | pub kind: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | pub total_length: u16, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 22 | pub interfaces: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 23 | pub configuration_value: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | pub configuration_str: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 25 | pub attributes: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 26 | pub max_power: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OtherSpeedConfig` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeviceQualifier` is never constructed [INFO] [stdout] --> xhcid/src/usb/device.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct DeviceQualifier { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ty` is never used [INFO] [stdout] --> xhcid/src/usb/endpoint.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 25 | impl EndpointDescriptor { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] 26 | fn ty(self) -> EndpointTy { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `bitmaps` is never read [INFO] [stdout] --> xhcid/src/usb/hub.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct HubDescriptor { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | bitmaps: [u8; 64] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HubDescriptor` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Reserved` is never constructed [INFO] [stdout] --> xhcid/src/usb/setup.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum ReqType { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 41 | Reserved = 3, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USB_SETUP_DIR_SHIFT` is never used [INFO] [stdout] --> xhcid/src/usb/setup.rs:90:11 [INFO] [stdout] | [INFO] [stdout] 90 | pub const USB_SETUP_DIR_SHIFT: u8 = 7; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cid` [INFO] [stdout] --> storage/nvmed/src/nvme/cmd.rs:118:25 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn get_features(cid: u16, ptr: usize, fid: u8) -> Self { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cid` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comp` [INFO] [stdout] --> storage/nvmed/src/nvme/identify.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 195 | let comp = self [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_comp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> net/e1000d/src/main.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | let mut event_queue = [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:245:13 [INFO] [stdout] | [INFO] [stdout] 245 | let mut regs: &mut NvmeRegs = regs_guard.deref_mut(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IMS_TXDW` is never used [INFO] [stdout] --> net/e1000d/src/device.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 29 | const IMS_TXDW: u32 = 1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IMS_TXQE` is never used [INFO] [stdout] --> net/e1000d/src/device.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | const IMS_TXQE: u32 = 1 << 1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IMS_LSC` is never used [INFO] [stdout] --> net/e1000d/src/device.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | const IMS_LSC: u32 = 1 << 2; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RCTL_MPE` is never used [INFO] [stdout] --> net/e1000d/src/device.rs:40:7 [INFO] [stdout] | [INFO] [stdout] 40 | const RCTL_MPE: u32 = 1 << 4; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `checksum`, `error`, and `special` are never read [INFO] [stdout] --> net/e1000d/src/device.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 60 | struct Rd { [INFO] [stdout] | -- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 63 | checksum: u16, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 64 | status: u8, [INFO] [stdout] 65 | error: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 66 | special: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rd` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RD_EOP` is never used [INFO] [stdout] --> net/e1000d/src/device.rs:69:7 [INFO] [stdout] | [INFO] [stdout] 69 | const RD_EOP: u8 = 1 << 1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TD_DD` is never used [INFO] [stdout] --> net/e1000d/src/device.rs:95:7 [INFO] [stdout] | [INFO] [stdout] 95 | const TD_DD: u8 = 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:261:13 [INFO] [stdout] | [INFO] [stdout] 261 | let mut buffer = self.buffer.get_mut().unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:262:13 [INFO] [stdout] | [INFO] [stdout] 262 | let mut buffer_prp = self.buffer_prp.get_mut().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comp` [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:525:13 [INFO] [stdout] | [INFO] [stdout] 525 | let comp = self [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_comp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comp` [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:562:13 [INFO] [stdout] | [INFO] [stdout] 562 | let comp = self [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_comp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `scheme::SchemeBlockMut` [INFO] [stdout] --> storage/ided/src/main.rs:16:78 [INFO] [stdout] | [INFO] [stdout] 16 | data::{Event, Packet}, error::{Error, ENODEV}, flag::EVENT_READ, io::Io, scheme::SchemeBlockMut, EAGAIN, EINTR, EWOULDBLOCK [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `msi_info` is never read [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:94:11 [INFO] [stdout] | [INFO] [stdout] 94 | Msi { msi_info: MsiInfo, log2_multiple_message_enabled: u8 }, [INFO] [stdout] | --- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_intx`, `is_msi`, and `is_msix` are never used [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 98 | impl InterruptMethod { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] 99 | fn is_intx(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | fn is_msi(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | fn is_msix(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `info` is never read [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 122 | pub struct MappedMsixRegs { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 123 | pub info: MsixInfo, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `nssr`, `cmbloc`, and `cmbsz` are never read [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:145:5 [INFO] [stdout] | [INFO] [stdout] 128 | pub struct NvmeRegs { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 145 | nssr: Mmio, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | cmbloc: Mmio, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 156 | /// Controller memory buffer size [INFO] [stdout] 157 | cmbsz: Mmio, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `AtomicCmdId` is never used [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:172:10 [INFO] [stdout] | [INFO] [stdout] 172 | pub type AtomicCmdId = AtomicU16; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pcid_interface`, `next_sqid`, `next_cqid`, and `next_avail_submission_epoch` are never read [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:176:5 [INFO] [stdout] | [INFO] [stdout] 174 | pub struct Nvme { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 175 | interrupt_method: Mutex, [INFO] [stdout] 176 | pcid_interface: Mutex, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | next_sqid: AtomicSqId, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 191 | next_cqid: AtomicCqId, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 192 | [INFO] [stdout] 193 | next_avail_submission_epoch: AtomicU64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `FullSqHandling` is never used [INFO] [stdout] --> storage/nvmed/src/nvme/mod.rs:199:10 [INFO] [stdout] | [INFO] [stdout] 199 | pub enum FullSqHandling { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_features` is never used [INFO] [stdout] --> storage/nvmed/src/nvme/cmd.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl NvmeCmd { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn get_features(cid: u16, ptr: usize, fid: u8) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `vid` and `ssvid` are never read [INFO] [stdout] --> storage/nvmed/src/nvme/identify.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct IdentifyControllerData { [INFO] [stdout] | ---------------------- fields in this struct [INFO] [stdout] 9 | /// PCI vendor ID, always the same as in the PCI function header. [INFO] [stdout] 10 | pub vid: u16, [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | /// PCI subsystem vendor ID. [INFO] [stdout] 12 | pub ssvid: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IdentifyControllerData` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> storage/nvmed/src/nvme/identify.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct IdentifyNamespaceData { [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 29 | pub nuse: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 30 | [INFO] [stdout] 31 | pub nsfeat: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 32 | pub nlbaf: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 33 | pub flbas: u8, [INFO] [stdout] 34 | pub mc: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 35 | [INFO] [stdout] 36 | pub dpc: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 37 | pub dps: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 38 | pub nmic: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 39 | pub rescap: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 40 | // 32 [INFO] [stdout] 41 | pub fpi: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 42 | pub dlfeat: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 43 | pub nawun: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 44 | [INFO] [stdout] 45 | pub nawupf: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 46 | pub nacwu: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 47 | // 40 [INFO] [stdout] 48 | pub nabsn: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 49 | pub nabo: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 50 | [INFO] [stdout] 51 | pub nabspf: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 52 | pub noiob: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 53 | // 48 [INFO] [stdout] 54 | pub nvmcap: u128, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 55 | // 64 [INFO] [stdout] 56 | pub npwg: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 57 | pub npwa: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 58 | pub npdg: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 59 | pub npda: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 60 | // 72 [INFO] [stdout] 61 | pub nows: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub anagrpid: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 66 | pub _rsvd2: [u8; 3], [INFO] [stdout] 67 | pub nsattr: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub nvmsetid: u16, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 71 | pub endgid: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 72 | pub nguid: [u8; 16], [INFO] [stdout] | ^^^^^ [INFO] [stdout] 73 | pub eui64: u64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub vendor_specific: [u8; 3712], [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IdentifyNamespaceData` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `has_metadata_after_data` is never used [INFO] [stdout] --> storage/nvmed/src/nvme/identify.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl IdentifyNamespaceData { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn has_metadata_after_data(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Best`, `Better`, `Good`, and `Degraded` are never constructed [INFO] [stdout] --> storage/nvmed/src/nvme/identify.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 105 | pub enum RelativePerformance { [INFO] [stdout] | ------------------- variants in this enum [INFO] [stdout] 106 | Best = 0b00, [INFO] [stdout] | ^^^^ [INFO] [stdout] 107 | Better, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 108 | Good, [INFO] [stdout] | ^^^^ [INFO] [stdout] 109 | Degraded, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RelativePerformance` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `relative_performance`, `is_available`, and `metadata_size` are never used [INFO] [stdout] --> storage/nvmed/src/nvme/identify.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 123 | impl LbaFormat { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 124 | pub fn relative_performance(&self) -> RelativePerformance { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | pub fn is_available(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | pub fn metadata_size(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> storage/nvmed/src/nvme/queues.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct NvmeCmd { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 10 | /// Opcode [INFO] [stdout] 11 | pub opcode: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | /// Flags [INFO] [stdout] 13 | pub flags: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub nsid: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub mptr: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | /// Data pointer [INFO] [stdout] 23 | pub dptr: [u64; 2], [INFO] [stdout] | ^^^^ [INFO] [stdout] 24 | /// Command dword 10 [INFO] [stdout] 25 | pub cdw10: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 26 | /// Command dword 11 [INFO] [stdout] 27 | pub cdw11: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 28 | /// Command dword 12 [INFO] [stdout] 29 | pub cdw12: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 30 | /// Command dword 13 [INFO] [stdout] 31 | pub cdw13: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 32 | /// Command dword 14 [INFO] [stdout] 33 | pub cdw14: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 34 | /// Command dword 15 [INFO] [stdout] 35 | pub cdw15: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NvmeCmd` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `command_specific` is never read [INFO] [stdout] --> storage/nvmed/src/nvme/queues.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct NvmeComp { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 42 | pub command_specific: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NvmeComp` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `complete_spin` is never used [INFO] [stdout] --> storage/nvmed/src/nvme/queues.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 57 | impl NvmeCompQueue { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 91 | fn complete_spin(&mut self, cmd_opt: Option<(u16, NvmeCmd)>) -> (u16, NvmeComp) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_empty` is never used [INFO] [stdout] --> storage/nvmed/src/nvme/queues.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 110 | impl NvmeCmdQueue { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 38 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `phys`, `size`, and `flags` are never read [INFO] [stdout] --> storage/ided/src/ide.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 36 | struct PrdtEntry { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 37 | phys: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 38 | size: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 39 | flags: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `syscall::io::Io` [INFO] [stdout] --> xhcid/src/main.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use syscall::io::Io; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking usbhidd v0.1.0 (/opt/rustwide/workdir/usbhidd) [INFO] [stdout] warning: unused import: `std::collections::VecDeque` [INFO] [stdout] --> usbhidd/src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::VecDeque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> usbhidd/src/main.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> usbhidd/src/main.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 8 | report_desc::{self, ReportTy, REPORT_DESC_TY}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::VecDeque` [INFO] [stdout] --> usbhidd/src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::VecDeque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> usbhidd/src/main.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> usbhidd/src/main.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 8 | report_desc::{self, ReportTy, REPORT_DESC_TY}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conf_desc` [INFO] [stdout] --> usbhidd/src/main.rs:206:10 [INFO] [stdout] | [INFO] [stdout] 206 | let (conf_desc, conf_num, (if_desc, endpoint_num_opt, hid_desc)) = desc [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conf_desc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conf_desc` [INFO] [stdout] --> usbhidd/src/main.rs:206:10 [INFO] [stdout] | [INFO] [stdout] 206 | let (conf_desc, conf_num, (if_desc, endpoint_num_opt, hid_desc)) = desc [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conf_desc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `GB` is never used [INFO] [stdout] --> usbhidd/src/keymap.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | static GB: [[char; 2]; 87] = [ [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_char` is never used [INFO] [stdout] --> usbhidd/src/keymap.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn get_char(scancode: u8, shift: bool) -> char { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `DVORAK` is never used [INFO] [stdout] --> usbhidd/src/keymap.rs:181:12 [INFO] [stdout] | [INFO] [stdout] 181 | static DVORAK: [[char; 2]; 58] = [ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_char` is never used [INFO] [stdout] --> usbhidd/src/keymap.rs:242:12 [INFO] [stdout] | [INFO] [stdout] 242 | pub fn get_char(scancode: u8, shift: bool) -> char { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `AZERTY` is never used [INFO] [stdout] --> usbhidd/src/keymap.rs:256:12 [INFO] [stdout] | [INFO] [stdout] 256 | static AZERTY: [[char; 2]; 58] = [ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_char` is never used [INFO] [stdout] --> usbhidd/src/keymap.rs:317:12 [INFO] [stdout] | [INFO] [stdout] 317 | pub fn get_char(scancode: u8, shift: bool) -> char { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `BEPO` is never used [INFO] [stdout] --> usbhidd/src/keymap.rs:331:12 [INFO] [stdout] | [INFO] [stdout] 331 | static BEPO: [[char; 2]; 58] = [ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_char` is never used [INFO] [stdout] --> usbhidd/src/keymap.rs:392:12 [INFO] [stdout] | [INFO] [stdout] 392 | pub fn get_char(scancode: u8, shift: bool) -> char { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `IT` is never used [INFO] [stdout] --> usbhidd/src/keymap.rs:406:12 [INFO] [stdout] | [INFO] [stdout] 406 | static IT: [[char; 2]; 58] = [ [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_char` is never used [INFO] [stdout] --> usbhidd/src/keymap.rs:467:12 [INFO] [stdout] | [INFO] [stdout] 467 | pub fn get_char(scancode: u8, shift: bool) -> char { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SET_REPORT_REQ` is never used [INFO] [stdout] --> usbhidd/src/reqs.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const SET_REPORT_REQ: u8 = 0x9; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GET_IDLE_REQ` is never used [INFO] [stdout] --> usbhidd/src/reqs.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const GET_IDLE_REQ: u8 = 0x2; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GET_PROTOCOL_REQ` is never used [INFO] [stdout] --> usbhidd/src/reqs.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const GET_PROTOCOL_REQ: u8 = 0x3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SET_PROTOCOL_REQ` is never used [INFO] [stdout] --> usbhidd/src/reqs.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const SET_PROTOCOL_REQ: u8 = 0xB; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_report` is never used [INFO] [stdout] --> usbhidd/src/reqs.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn set_report( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_idle` is never used [INFO] [stdout] --> usbhidd/src/reqs.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn get_idle( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_protocol` is never used [INFO] [stdout] --> usbhidd/src/reqs.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn get_protocol(handle: &XhciClientHandle, if_num: u16) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_protocol` is never used [INFO] [stdout] --> usbhidd/src/reqs.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn set_protocol( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `GB` is never used [INFO] [stdout] --> usbhidd/src/keymap.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | static GB: [[char; 2]; 87] = [ [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_char` is never used [INFO] [stdout] --> usbhidd/src/keymap.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn get_char(scancode: u8, shift: bool) -> char { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `DVORAK` is never used [INFO] [stdout] --> usbhidd/src/keymap.rs:181:12 [INFO] [stdout] | [INFO] [stdout] 181 | static DVORAK: [[char; 2]; 58] = [ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_char` is never used [INFO] [stdout] --> usbhidd/src/keymap.rs:242:12 [INFO] [stdout] | [INFO] [stdout] 242 | pub fn get_char(scancode: u8, shift: bool) -> char { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `AZERTY` is never used [INFO] [stdout] --> usbhidd/src/keymap.rs:256:12 [INFO] [stdout] | [INFO] [stdout] 256 | static AZERTY: [[char; 2]; 58] = [ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_char` is never used [INFO] [stdout] --> usbhidd/src/keymap.rs:317:12 [INFO] [stdout] | [INFO] [stdout] 317 | pub fn get_char(scancode: u8, shift: bool) -> char { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `BEPO` is never used [INFO] [stdout] --> usbhidd/src/keymap.rs:331:12 [INFO] [stdout] | [INFO] [stdout] 331 | static BEPO: [[char; 2]; 58] = [ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_char` is never used [INFO] [stdout] --> usbhidd/src/keymap.rs:392:12 [INFO] [stdout] | [INFO] [stdout] 392 | pub fn get_char(scancode: u8, shift: bool) -> char { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `IT` is never used [INFO] [stdout] --> usbhidd/src/keymap.rs:406:12 [INFO] [stdout] | [INFO] [stdout] 406 | static IT: [[char; 2]; 58] = [ [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_char` is never used [INFO] [stdout] --> usbhidd/src/keymap.rs:467:12 [INFO] [stdout] | [INFO] [stdout] 467 | pub fn get_char(scancode: u8, shift: bool) -> char { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SET_REPORT_REQ` is never used [INFO] [stdout] --> usbhidd/src/reqs.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const SET_REPORT_REQ: u8 = 0x9; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GET_IDLE_REQ` is never used [INFO] [stdout] --> usbhidd/src/reqs.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const GET_IDLE_REQ: u8 = 0x2; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GET_PROTOCOL_REQ` is never used [INFO] [stdout] --> usbhidd/src/reqs.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const GET_PROTOCOL_REQ: u8 = 0x3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SET_PROTOCOL_REQ` is never used [INFO] [stdout] --> usbhidd/src/reqs.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const SET_PROTOCOL_REQ: u8 = 0xB; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_report` is never used [INFO] [stdout] --> usbhidd/src/reqs.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn set_report( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_idle` is never used [INFO] [stdout] --> usbhidd/src/reqs.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn get_idle( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_protocol` is never used [INFO] [stdout] --> usbhidd/src/reqs.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn get_protocol(handle: &XhciClientHandle, if_num: u16) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_protocol` is never used [INFO] [stdout] --> usbhidd/src/reqs.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn set_protocol( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `syscall::io::Io` [INFO] [stdout] --> xhcid/src/main.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use syscall::io::Io; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/irq_reactor.rs:149:13 [INFO] [stdout] | [INFO] [stdout] 149 | let mut event_queue = RawEventQueue::new().expect("xhcid irq_reactor: failed to create IRQ event queue"); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/irq_reactor.rs:351:16 [INFO] [stdout] | [INFO] [stdout] 351 | pub fn run(mut self) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/irq_reactor.rs:449:13 [INFO] [stdout] | [INFO] [stdout] 449 | let mut endpoint_state = slot_state.endpoint_states.get_mut(&id.endpoint_num)?; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `port_num` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1188:32 [INFO] [stdout] | [INFO] [stdout] 1188 | fn port_req_init_st(&self, port_num: usize, req: &PortReq) -> Result { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_port_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1483:13 [INFO] [stdout] | [INFO] [stdout] 1483 | let mut guard = self.handles.get(&id).ok_or(Error::new(EBADF))?; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/irq_reactor.rs:149:13 [INFO] [stdout] | [INFO] [stdout] 149 | let mut event_queue = RawEventQueue::new().expect("xhcid irq_reactor: failed to create IRQ event queue"); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/irq_reactor.rs:351:16 [INFO] [stdout] | [INFO] [stdout] 351 | pub fn run(mut self) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/irq_reactor.rs:449:13 [INFO] [stdout] | [INFO] [stdout] 449 | let mut endpoint_state = slot_state.endpoint_states.get_mut(&id.endpoint_num)?; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `capability` [INFO] [stdout] --> xhcid/src/main.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | ... let mut capability = match pcid_handle.feature_info(PciFeature::Msi).expect("xhcid: failed to retrieve the MSI capability structure... [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_capability` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/main.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | ... let mut capability = match pcid_handle.feature_info(PciFeature::Msi).expect("xhcid: failed to retrieve the MSI capability structure... [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> xhcid/src/main.rs:205:17 [INFO] [stdout] | [INFO] [stdout] 205 | Err(err) => panic!("xhcid failed to read from socket: {err}"), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_packet` is never used [INFO] [stdout] --> xhcid/src/main.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | async fn handle_packet(hci: Arc, packet: Packet) -> Packet { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_int_method` is never used [INFO] [stdout] --> xhcid/src/main.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn get_int_method(pcid_handle: &mut PciFunctionHandle, bar0_address: usize) -> (Option, InterruptMethod) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Notification`, `Rsvd2`, and `Rsvd3` are never constructed [INFO] [stdout] --> xhcid/src/driver_interface.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 168 | enum InterruptUsageBits { [INFO] [stdout] | ------------------ variants in this enum [INFO] [stdout] 169 | Periodic, [INFO] [stdout] 170 | Notification, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 171 | Rsvd2, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 172 | Rsvd3, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inner` is never read [INFO] [stdout] --> xhcid/src/driver_interface.rs:706:5 [INFO] [stdout] | [INFO] [stdout] 705 | pub struct TransferWriteStream<'a> { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 706 | inner: TransferStream<'a>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inner` is never read [INFO] [stdout] --> xhcid/src/driver_interface.rs:709:5 [INFO] [stdout] | [INFO] [stdout] 708 | pub struct TransferReadStream<'a> { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 709 | inner: TransferStream<'a>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bytes_to_transfer`, `bytes_transferred`, `bytes_per_transfer`, and `endp_handle` are never read [INFO] [stdout] --> xhcid/src/driver_interface.rs:712:5 [INFO] [stdout] | [INFO] [stdout] 711 | struct TransferStream<'a> { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 712 | bytes_to_transfer: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 713 | bytes_transferred: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 714 | bytes_per_transfer: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 715 | endp_handle: &'a mut XhciEndpHandle, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> xhcid/src/usb/mod.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum DescriptorKind { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 15 | None = 0, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | Interface = 4, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 20 | Endpoint = 5, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 21 | DeviceQualifier = 6, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 22 | OtherSpeedConfiguration = 7, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | InterfacePower = 8, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 24 | OnTheGo = 9, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 25 | BinaryObjectStorage = 15, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | Hid = 33, [INFO] [stdout] | ^^^ [INFO] [stdout] 27 | Hub = 41, [INFO] [stdout] | ^^^ [INFO] [stdout] 28 | SuperSpeedCompanion = 48, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DescriptorKind` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `len`, `kind`, `total_len`, and `cap_count` are never read [INFO] [stdout] --> xhcid/src/usb/bos.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct BosDescriptor { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 6 | pub len: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | pub kind: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | pub total_len: u16, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 9 | pub cap_count: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BosDescriptor` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `kind` is never read [INFO] [stdout] --> xhcid/src/usb/bos.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct BosDevDescriptorBase { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] 17 | pub len: u8, [INFO] [stdout] 18 | pub kind: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BosDevDescriptorBase` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> xhcid/src/usb/bos.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct BosSuperSpeedDesc { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 27 | pub len: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 28 | pub kind: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 29 | pub cap_ty: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 30 | [INFO] [stdout] 31 | pub attrs: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 32 | pub speed_supp: u16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 33 | pub func_supp: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 34 | pub u1_dev_exit_lat: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 35 | pub u2_dev_exit_lat: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BosSuperSpeedDesc` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `len`, `kind`, `cap_ty`, `attrs`, and `func_supp` are never read [INFO] [stdout] --> xhcid/src/usb/bos.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct BosSuperSpeedPlusDesc { [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] 40 | pub len: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 41 | pub kind: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 42 | pub cap_ty: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 43 | pub _rsvd0: u8, [INFO] [stdout] 44 | pub attrs: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 45 | pub func_supp: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BosSuperSpeedPlusDesc` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `len`, `kind`, `cap_ty`, and `attrs` are never read [INFO] [stdout] --> xhcid/src/usb/bos.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct BosUsb2ExtDesc { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 54 | pub len: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 55 | pub kind: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 56 | pub cap_ty: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 57 | [INFO] [stdout] 58 | pub attrs: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BosUsb2ExtDesc` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `ssac` and `sublink_speed_attr` are never used [INFO] [stdout] --> xhcid/src/usb/bos.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 72 | impl BosSuperSpeedPlusDesc { [INFO] [stdout] | -------------------------- methods in this implementation [INFO] [stdout] 73 | pub fn ssac(&self) -> u8 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn sublink_speed_attr(&self) -> &[u32] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> xhcid/src/usb/bos.rs:118:13 [INFO] [stdout] | [INFO] [stdout] 118 | Usb2Ext(BosUsb2ExtDesc), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `BosAnyDevDesc` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 118 | Usb2Ext(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> xhcid/src/usb/bos.rs:119:16 [INFO] [stdout] | [INFO] [stdout] 119 | SuperSpeed(BosSuperSpeedDesc), [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `BosAnyDevDesc` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 119 | SuperSpeed(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> xhcid/src/usb/bos.rs:120:20 [INFO] [stdout] | [INFO] [stdout] 120 | SuperSpeedPlus(BosSuperSpeedPlusDesc), [INFO] [stdout] | -------------- ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `BosAnyDevDesc` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 120 | SuperSpeedPlus(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_superspeed` and `is_superspeedplus` are never used [INFO] [stdout] --> xhcid/src/usb/bos.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 124 | impl BosAnyDevDesc { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 125 | pub fn is_superspeed(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn is_superspeedplus(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bos_capability_descs` is never used [INFO] [stdout] --> xhcid/src/usb/bos.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | pub fn bos_capability_descs<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `length` and `interfaces` are never read [INFO] [stdout] --> xhcid/src/usb/config.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct ConfigDescriptor { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 4 | pub length: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 7 | pub interfaces: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConfigDescriptor` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> xhcid/src/usb/config.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct OtherSpeedConfig { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 19 | pub length: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 20 | pub kind: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | pub total_length: u16, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 22 | pub interfaces: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 23 | pub configuration_value: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | pub configuration_str: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 25 | pub attributes: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 26 | pub max_power: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OtherSpeedConfig` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `port_num` [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1188:32 [INFO] [stdout] | [INFO] [stdout] 1188 | fn port_req_init_st(&self, port_num: usize, req: &PortReq) -> Result { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_port_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `length` is never read [INFO] [stdout] --> xhcid/src/usb/device.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct DeviceDescriptor { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 4 | pub length: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DeviceDescriptor` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `minor_usb_vers` and `major_usb_vers` are never used [INFO] [stdout] --> xhcid/src/usb/device.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl DeviceDescriptor { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] 23 | pub fn minor_usb_vers(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn major_usb_vers(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `length`, `kind`, `class`, `sub_class`, and `protocol` are never read [INFO] [stdout] --> xhcid/src/usb/device.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct DeviceDescriptor8Byte { [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] 34 | pub length: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 35 | pub kind: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 36 | pub usb: u16, [INFO] [stdout] 37 | pub class: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 38 | pub sub_class: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 39 | pub protocol: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DeviceDescriptor8Byte` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `minor_usb_vers` is never used [INFO] [stdout] --> xhcid/src/usb/device.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 45 | impl DeviceDescriptor8Byte { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] 46 | pub fn minor_usb_vers(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeviceQualifier` is never constructed [INFO] [stdout] --> xhcid/src/usb/device.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct DeviceQualifier { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ty` is never used [INFO] [stdout] --> xhcid/src/usb/endpoint.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 25 | impl EndpointDescriptor { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] 26 | fn ty(self) -> EndpointTy { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> xhcid/src/usb/hub.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct HubDescriptor { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 4 | pub length: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 5 | pub kind: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | pub ports: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | pub characteristics: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | pub power_on_good: u8, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 9 | pub current: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | bitmaps: [u8; 64] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HubDescriptor` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `HubFeature` is never used [INFO] [stdout] --> xhcid/src/usb/hub.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | pub enum HubFeature { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HubFeature` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `length` is never read [INFO] [stdout] --> xhcid/src/usb/interface.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct InterfaceDescriptor { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 6 | pub length: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InterfaceDescriptor` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind`, `request`, `value`, and `index` are never read [INFO] [stdout] --> xhcid/src/usb/setup.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Setup { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 7 | pub kind: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | pub request: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 9 | pub value: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | pub index: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Setup` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Reserved` is never constructed [INFO] [stdout] --> xhcid/src/usb/setup.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum ReqType { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 41 | Reserved = 3, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SetupReq` is never used [INFO] [stdout] --> xhcid/src/usb/setup.rs:75:10 [INFO] [stdout] | [INFO] [stdout] 75 | pub enum SetupReq { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USB_SETUP_DIR_BIT` is never used [INFO] [stdout] --> xhcid/src/usb/setup.rs:89:11 [INFO] [stdout] | [INFO] [stdout] 89 | pub const USB_SETUP_DIR_BIT: u8 = 1 << 7; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USB_SETUP_REQ_TY_MASK` is never used [INFO] [stdout] --> xhcid/src/usb/setup.rs:91:11 [INFO] [stdout] | [INFO] [stdout] 91 | pub const USB_SETUP_REQ_TY_MASK: u8 = 0x60; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USB_SETUP_RECIPIENT_MASK` is never used [INFO] [stdout] --> xhcid/src/usb/setup.rs:93:11 [INFO] [stdout] | [INFO] [stdout] 93 | pub const USB_SETUP_RECIPIENT_MASK: u8 = 0x1F; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> xhcid/src/usb/setup.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 96 | impl Setup { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 97 | pub fn direction(&self) -> ReqDirection { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub const fn req_ty(&self) -> u8 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub const fn req_recipient(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn is_allowed_from_api(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub const fn get_status() -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub const fn clear_feature(feature: u16) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub const fn set_feature(feature: u16) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub const fn set_address(address: u16) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub const fn set_descriptor(kind: u8, index: u8, language: u16, length: u16) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | pub const fn get_configuration() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Intx`, `Msi`, and `MsiX` are never constructed [INFO] [stdout] --> xhcid/src/xhci/mod.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 56 | pub enum InterruptMethod { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 61 | Intx, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | Msi, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | MsiX(Mutex), [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `virt_table_base` and `info` are never read [INFO] [stdout] --> xhcid/src/xhci/mod.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 70 | pub struct MappedMsixRegs { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 71 | pub virt_table_base: NonNull, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 72 | pub info: MsixInfo, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `table_entry_pointer_unchecked` and `table_entry_pointer` are never used [INFO] [stdout] --> xhcid/src/xhci/mod.rs:75:19 [INFO] [stdout] | [INFO] [stdout] 74 | impl MappedMsixRegs { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] 75 | pub unsafe fn table_entry_pointer_unchecked(&mut self, k: usize) -> &mut MsixTableEntry { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn table_entry_pointer(&mut self, k: usize) -> &mut MsixTableEntry { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fetch_bos_desc` is never used [INFO] [stdout] --> xhcid/src/xhci/mod.rs:153:14 [INFO] [stdout] | [INFO] [stdout] 84 | impl Xhci { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 153 | async fn fetch_bos_desc(&self, port: usize, slot: u8) -> Result<(usb::BosDescriptor, [u8; 4087])> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pcid_handle` is never read [INFO] [stdout] --> xhcid/src/xhci/mod.rs:201:5 [INFO] [stdout] | [INFO] [stdout] 172 | pub struct Xhci { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 201 | pcid_handle: Mutex, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `disable_port_slot`, `msix_info`, and `msix_info_mut` are never used [INFO] [stdout] --> xhcid/src/xhci/mod.rs:487:18 [INFO] [stdout] | [INFO] [stdout] 260 | impl Xhci { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 487 | pub async fn disable_port_slot(&self, slot: u8) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 777 | pub fn msix_info(&self) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 783 | pub fn msix_info_mut(&self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `hci_ver` and `hcs_params3` are never read [INFO] [stdout] --> xhcid/src/xhci/capability.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct CapabilityRegs { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | pub hci_ver: Mmio, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | pub hcs_params3: Mmio, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HCS_PARAMS1_MAX_SLOTS_SHIFT` is never used [INFO] [stdout] --> xhcid/src/xhci/capability.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 30 | pub const HCS_PARAMS1_MAX_SLOTS_SHIFT: u8 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HCS_PARAMS2_SPR_BIT` is never used [INFO] [stdout] --> xhcid/src/xhci/capability.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | pub const HCS_PARAMS2_SPR_BIT: u32 = 1 << HCS_PARAMS2_SPR_SHIFT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HCS_PARAMS2_SPR_SHIFT` is never used [INFO] [stdout] --> xhcid/src/xhci/capability.rs:35:11 [INFO] [stdout] | [INFO] [stdout] 35 | pub const HCS_PARAMS2_SPR_SHIFT: u8 = 26; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `spr` is never used [INFO] [stdout] --> xhcid/src/xhci/capability.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl CapabilityRegs { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn spr(&self) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `EnabledOrDisabled`, `Default`, and `Addressed` are never constructed [INFO] [stdout] --> xhcid/src/xhci/context.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum SlotState { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 33 | EnabledOrDisabled = 0, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | Default = 1, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 35 | Addressed = 2, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `dump_control` is never used [INFO] [stdout] --> xhcid/src/xhci/context.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 65 | impl InputContext { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 66 | pub fn dump_control(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `edtla` and `rsvd` are never read [INFO] [stdout] --> xhcid/src/xhci/context.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 110 | pub struct StreamContext { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 113 | edtla: Mmio, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 114 | rsvd: Mmio, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> xhcid/src/xhci/context.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 120 | pub enum StreamContextType { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 121 | SecondaryRing, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 122 | PrimaryRing, [INFO] [stdout] 123 | PrimarySsa8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 124 | PrimarySsa16, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 125 | PrimarySsa32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 126 | PrimarySsa64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 127 | PrimarySsa128, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 128 | PrimarySsa256, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pages` is never read [INFO] [stdout] --> xhcid/src/xhci/context.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 180 | pub struct ScratchpadBufferArray { [INFO] [stdout] | --------------------- field in this struct [INFO] [stdout] 181 | pub entries: Dma<[ScratchpadBufferEntry]>, [INFO] [stdout] 182 | pub pages: Vec>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `read` is never used [INFO] [stdout] --> xhcid/src/xhci/doorbell.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Doorbell { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 7 | pub fn read(&self) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `next` is never used [INFO] [stdout] --> xhcid/src/xhci/event.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl EventRing { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn next(&mut self) -> &mut Trb { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> xhcid/src/xhci/extended.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum CapabilityId { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 40 | // bit 0 is reserved [INFO] [stdout] 41 | UsbLegacySupport = 1, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 42 | SupportedProtocol, [INFO] [stdout] 43 | ExtendedPowerManagement, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 44 | IoVirtualization, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 45 | MessageInterrupt, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 46 | LocalMem, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 47 | // bits 7-9 are reserved [INFO] [stdout] 48 | UsbDebugCapability = 10, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 49 | // bits 11-16 are reserved [INFO] [stdout] 50 | ExtendedMessageInterrupt = 17, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Bps` is never constructed [INFO] [stdout] --> xhcid/src/xhci/extended.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 89 | pub enum Psie { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 90 | Bps, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Psie` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Reserved`, `AsymmetricRx`, and `AsymmetricTx` are never constructed [INFO] [stdout] --> xhcid/src/xhci/extended.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 97 | pub enum Plt { [INFO] [stdout] | --- variants in this enum [INFO] [stdout] 98 | Symmetric, [INFO] [stdout] 99 | Reserved, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 100 | AsymmetricRx, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 101 | AsymmetricTx, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Plt` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Rsvd2` and `Rsvd3` are never constructed [INFO] [stdout] --> xhcid/src/xhci/extended.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 105 | pub enum Lp { [INFO] [stdout] | -- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 108 | Rsvd2, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 109 | Rsvd3, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Lp` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `protocol_speeds_mut` is never used [INFO] [stdout] --> xhcid/src/xhci/extended.rs:231:19 [INFO] [stdout] | [INFO] [stdout] 224 | impl SupportedProtoCap { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 231 | pub unsafe fn protocol_speeds_mut(&mut self) -> &mut [ProtocolSpeed] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Other` is never constructed [INFO] [stdout] --> xhcid/src/xhci/irq_reactor.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub enum StateKind { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 70 | Other(TrbType), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StateKind` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `trb_type` is never used [INFO] [stdout] --> xhcid/src/xhci/irq_reactor.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 73 | impl StateKind { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 74 | pub fn trb_type(&self) -> TrbType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `with_ring_mut` and `next_misc_event_trb` are never used [INFO] [stdout] --> xhcid/src/xhci/irq_reactor.rs:445:12 [INFO] [stdout] | [INFO] [stdout] 428 | impl Xhci { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 445 | pub fn with_ring_mut T>(&self, id: RingId, function: F) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 497 | pub fn next_misc_event_trb(&self, trb_type: TrbType) -> impl Future + Send + Sync + 'static { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `page_size` and `dn_ctrl` are never read [INFO] [stdout] --> xhcid/src/xhci/operational.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct OperationalRegs { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | pub page_size: Mmio, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 12 | _rsvd: [Mmio; 2], [INFO] [stdout] 13 | pub dn_ctrl: Mmio, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `portpmsc`, `portli`, and `porthlpmc` are never read [INFO] [stdout] --> xhcid/src/xhci/port.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Port { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 31 | pub portsc: Mmio, [INFO] [stdout] 32 | pub portpmsc: Mmio, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 33 | pub portli: Mmio, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 34 | pub porthlpmc: Mmio, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `iter`, `phys_addr_to_entry_ref`, `start_virt_addr`, and `end_virt_addr` are never used [INFO] [stdout] --> xhcid/src/xhci/ring.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Ring { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn iter(&self) -> impl Iterator + '_ { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn phys_addr_to_entry_ref(&self, ac64: bool, paddr: u64) -> Option<&Trb> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub(crate) fn start_virt_addr(&self) -> *const Trb { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub(crate) fn end_virt_addr(&self) -> *const Trb { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Iter` is never constructed [INFO] [stdout] --> xhcid/src/xhci/ring.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | struct Iter<'ring> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mfindex` is never read [INFO] [stdout] --> xhcid/src/xhci/runtime.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct RuntimeRegs { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 17 | pub mfindex: Mmio, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PortTransferState` is never used [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:71:10 [INFO] [stdout] | [INFO] [stdout] 71 | pub enum PortTransferState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PortTransferState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:182:12 [INFO] [stdout] | [INFO] [stdout] 182 | Device(usb::DeviceDescriptor), [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `AnyDescriptor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 182 | Device(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | Config(usb::ConfigDescriptor), [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `AnyDescriptor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 183 | Config(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `port_state` is never used [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:589:8 [INFO] [stdout] | [INFO] [stdout] 223 | impl Xhci { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 589 | fn port_state(&self, port: usize) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `endp_direction` and `slot` are never used [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1810:12 [INFO] [stdout] | [INFO] [stdout] 1678 | impl Xhci { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 1810 | pub fn endp_direction(&self, port_num: usize, endp_num: u8) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1828 | pub fn slot(&self, port_num: usize) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> xhcid/src/xhci/trb.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum TrbType { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 18 | EventData, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | Rsv26, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 40 | Rsv27, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 41 | Rsv28, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 42 | Rsv29, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 43 | Rsv30, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 44 | Rsv31, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | PortStatusChange, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 49 | BandwidthRequest, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 50 | Doorbell, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 51 | HostController, [INFO] [stdout] 52 | DeviceNotification, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 53 | MfindexWrap, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TrbType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> xhcid/src/xhci/trb.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub enum TrbCompletionCode { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 62 | DataBuffer = 0x02, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 63 | BabbleDetected = 0x03, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 64 | UsbTransaction = 0x04, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 65 | Trb = 0x05, [INFO] [stdout] | ^^^ [INFO] [stdout] 66 | Stall = 0x06, [INFO] [stdout] 67 | Resource = 0x07, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 68 | Bandwidth = 0x08, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 69 | NoSlotsAvailable = 0x09, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 70 | InvalidStreamType = 0x0A, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 71 | SlotNotEnabled = 0x0B, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 72 | EndpointNotEnabled = 0x0C, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | Parameter = 0x11, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 78 | BandwidthOverrun = 0x12, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 79 | ContextState = 0x13, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 80 | NoPingResponse = 0x14, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 81 | EventRingFull = 0x15, [INFO] [stdout] 82 | IncompatibleDevice = 0x16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 83 | MissedService = 0x17, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 84 | CommandRingStopped = 0x18, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 85 | CommandAborted = 0x19, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 86 | Stopped = 0x1A, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 87 | StoppedLengthInvalid = 0x1B, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 88 | StoppedShortPacket = 0x1C, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 89 | MaxExitLatencyTooLarge = 0x1D, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 90 | Rsv30 = 0x1E, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 91 | IsochBuffer = 0x1F, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 92 | EventLost = 0x20, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 93 | Undefined = 0x21, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 94 | InvalidStreamId = 0x22, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 95 | SecondaryBandwidth = 0x23, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 96 | SplitTransaction = 0x24, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TrbCompletionCode` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Reserved` is never constructed [INFO] [stdout] --> xhcid/src/xhci/trb.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 104 | pub enum TransferKind { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] 105 | NoData, [INFO] [stdout] 106 | Reserved, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TransferKind` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TRB_STATUS_COMPLETION_CODE_MASK` is never used [INFO] [stdout] --> xhcid/src/xhci/trb.rs:130:11 [INFO] [stdout] | [INFO] [stdout] 130 | pub const TRB_STATUS_COMPLETION_CODE_MASK: u32 = 0xFF00_0000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TRB_STATUS_COMPLETION_PARAM_SHIFT` is never used [INFO] [stdout] --> xhcid/src/xhci/trb.rs:132:11 [INFO] [stdout] | [INFO] [stdout] 132 | pub const TRB_STATUS_COMPLETION_PARAM_SHIFT: u8 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TRB_STATUS_COMPLETION_PARAM_MASK` is never used [INFO] [stdout] --> xhcid/src/xhci/trb.rs:133:11 [INFO] [stdout] | [INFO] [stdout] 133 | pub const TRB_STATUS_COMPLETION_PARAM_MASK: u32 = 0x00FF_FFFF; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TRB_STATUS_TRANSFER_LENGTH_SHIFT` is never used [INFO] [stdout] --> xhcid/src/xhci/trb.rs:135:11 [INFO] [stdout] | [INFO] [stdout] 135 | pub const TRB_STATUS_TRANSFER_LENGTH_SHIFT: u8 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TRB_CONTROL_ENDPOINT_ID_MASK` is never used [INFO] [stdout] --> xhcid/src/xhci/trb.rs:144:11 [INFO] [stdout] | [INFO] [stdout] 144 | pub const TRB_CONTROL_ENDPOINT_ID_MASK: u32 = 0x001F_0000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TRB_CONTROL_ENDPOINT_ID_SHIFT` is never used [INFO] [stdout] --> xhcid/src/xhci/trb.rs:145:11 [INFO] [stdout] | [INFO] [stdout] 145 | pub const TRB_CONTROL_ENDPOINT_ID_SHIFT: u8 = 16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `completion_param`, `endpoint_id`, `no_op_cmd`, `disable_slot`, `stop_endpoint`, and `reset_device` are never used [INFO] [stdout] --> xhcid/src/xhci/trb.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 147 | impl Trb { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn completion_param(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 215 | pub fn endpoint_id(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 231 | pub fn no_op_cmd(&mut self, cycle: bool) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 244 | pub fn disable_slot(&mut self, slot: u8, cycle: bool) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 334 | pub fn stop_endpoint(&mut self, slot_id: u8, endp_num_xhc: u8, suspend: bool, cycle: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 346 | pub fn reset_device(&mut self, slot_id: u8, cycle: bool) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains an unused formatting placeholder [INFO] [stdout] --> xhcid/src/main.rs:205:67 [INFO] [stdout] | [INFO] [stdout] 205 | Err(err) => panic!("xhcid failed to read from socket: {err}"), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this message is not used as a format string when given without arguments, but will be in Rust 2021 [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: add the missing argument [INFO] [stdout] | [INFO] [stdout] 205 | Err(err) => panic!("xhcid failed to read from socket: {err}", ...), [INFO] [stdout] | +++++ [INFO] [stdout] help: or add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 205 | Err(err) => panic!("{}", "xhcid failed to read from socket: {err}"), [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1483:13 [INFO] [stdout] | [INFO] [stdout] 1483 | let mut guard = self.handles.get(&id).ok_or(Error::new(EBADF))?; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.deref()` on a double reference, which returns `&[T]` instead of dereferencing the inner type [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:108:37 [INFO] [stdout] | [INFO] [stdout] 108 | .field("virt_ptr", &(dma.deref().as_ptr() as *const u8)) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 154 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `capability` [INFO] [stdout] --> xhcid/src/main.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | ... let mut capability = match pcid_handle.feature_info(PciFeature::Msi).expect("xhcid: failed to retrieve the MSI capability structure... [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_capability` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> xhcid/src/main.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | ... let mut capability = match pcid_handle.feature_info(PciFeature::Msi).expect("xhcid: failed to retrieve the MSI capability structure... [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> xhcid/src/main.rs:205:17 [INFO] [stdout] | [INFO] [stdout] 205 | Err(err) => panic!("xhcid failed to read from socket: {err}"), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_packet` is never used [INFO] [stdout] --> xhcid/src/main.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | async fn handle_packet(hci: Arc, packet: Packet) -> Packet { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_int_method` is never used [INFO] [stdout] --> xhcid/src/main.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn get_int_method(pcid_handle: &mut PciFunctionHandle, bar0_address: usize) -> (Option, InterruptMethod) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Notification`, `Rsvd2`, and `Rsvd3` are never constructed [INFO] [stdout] --> xhcid/src/driver_interface.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 168 | enum InterruptUsageBits { [INFO] [stdout] | ------------------ variants in this enum [INFO] [stdout] 169 | Periodic, [INFO] [stdout] 170 | Notification, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 171 | Rsvd2, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 172 | Rsvd3, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inner` is never read [INFO] [stdout] --> xhcid/src/driver_interface.rs:706:5 [INFO] [stdout] | [INFO] [stdout] 705 | pub struct TransferWriteStream<'a> { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 706 | inner: TransferStream<'a>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inner` is never read [INFO] [stdout] --> xhcid/src/driver_interface.rs:709:5 [INFO] [stdout] | [INFO] [stdout] 708 | pub struct TransferReadStream<'a> { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 709 | inner: TransferStream<'a>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bytes_to_transfer`, `bytes_transferred`, `bytes_per_transfer`, and `endp_handle` are never read [INFO] [stdout] --> xhcid/src/driver_interface.rs:712:5 [INFO] [stdout] | [INFO] [stdout] 711 | struct TransferStream<'a> { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 712 | bytes_to_transfer: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 713 | bytes_transferred: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 714 | bytes_per_transfer: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 715 | endp_handle: &'a mut XhciEndpHandle, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> xhcid/src/usb/mod.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum DescriptorKind { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 15 | None = 0, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | Interface = 4, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 20 | Endpoint = 5, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 21 | DeviceQualifier = 6, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 22 | OtherSpeedConfiguration = 7, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | InterfacePower = 8, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 24 | OnTheGo = 9, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 25 | BinaryObjectStorage = 15, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | Hid = 33, [INFO] [stdout] | ^^^ [INFO] [stdout] 27 | Hub = 41, [INFO] [stdout] | ^^^ [INFO] [stdout] 28 | SuperSpeedCompanion = 48, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DescriptorKind` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `len`, `kind`, `total_len`, and `cap_count` are never read [INFO] [stdout] --> xhcid/src/usb/bos.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct BosDescriptor { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 6 | pub len: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | pub kind: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | pub total_len: u16, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 9 | pub cap_count: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BosDescriptor` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `kind` is never read [INFO] [stdout] --> xhcid/src/usb/bos.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct BosDevDescriptorBase { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] 17 | pub len: u8, [INFO] [stdout] 18 | pub kind: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BosDevDescriptorBase` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> xhcid/src/usb/bos.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct BosSuperSpeedDesc { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 27 | pub len: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 28 | pub kind: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 29 | pub cap_ty: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 30 | [INFO] [stdout] 31 | pub attrs: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 32 | pub speed_supp: u16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 33 | pub func_supp: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 34 | pub u1_dev_exit_lat: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 35 | pub u2_dev_exit_lat: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BosSuperSpeedDesc` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `len`, `kind`, `cap_ty`, `attrs`, and `func_supp` are never read [INFO] [stdout] --> xhcid/src/usb/bos.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct BosSuperSpeedPlusDesc { [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] 40 | pub len: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 41 | pub kind: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 42 | pub cap_ty: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 43 | pub _rsvd0: u8, [INFO] [stdout] 44 | pub attrs: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 45 | pub func_supp: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BosSuperSpeedPlusDesc` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `len`, `kind`, `cap_ty`, and `attrs` are never read [INFO] [stdout] --> xhcid/src/usb/bos.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct BosUsb2ExtDesc { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 54 | pub len: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 55 | pub kind: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 56 | pub cap_ty: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 57 | [INFO] [stdout] 58 | pub attrs: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BosUsb2ExtDesc` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `ssac` and `sublink_speed_attr` are never used [INFO] [stdout] --> xhcid/src/usb/bos.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 72 | impl BosSuperSpeedPlusDesc { [INFO] [stdout] | -------------------------- methods in this implementation [INFO] [stdout] 73 | pub fn ssac(&self) -> u8 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn sublink_speed_attr(&self) -> &[u32] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> xhcid/src/usb/bos.rs:118:13 [INFO] [stdout] | [INFO] [stdout] 118 | Usb2Ext(BosUsb2ExtDesc), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `BosAnyDevDesc` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 118 | Usb2Ext(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> xhcid/src/usb/bos.rs:119:16 [INFO] [stdout] | [INFO] [stdout] 119 | SuperSpeed(BosSuperSpeedDesc), [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `BosAnyDevDesc` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 119 | SuperSpeed(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> xhcid/src/usb/bos.rs:120:20 [INFO] [stdout] | [INFO] [stdout] 120 | SuperSpeedPlus(BosSuperSpeedPlusDesc), [INFO] [stdout] | -------------- ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `BosAnyDevDesc` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 120 | SuperSpeedPlus(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_superspeed` and `is_superspeedplus` are never used [INFO] [stdout] --> xhcid/src/usb/bos.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 124 | impl BosAnyDevDesc { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 125 | pub fn is_superspeed(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn is_superspeedplus(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bos_capability_descs` is never used [INFO] [stdout] --> xhcid/src/usb/bos.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | pub fn bos_capability_descs<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `length` and `interfaces` are never read [INFO] [stdout] --> xhcid/src/usb/config.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct ConfigDescriptor { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 4 | pub length: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 7 | pub interfaces: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConfigDescriptor` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> xhcid/src/usb/config.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct OtherSpeedConfig { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 19 | pub length: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 20 | pub kind: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | pub total_length: u16, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 22 | pub interfaces: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 23 | pub configuration_value: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | pub configuration_str: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 25 | pub attributes: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 26 | pub max_power: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OtherSpeedConfig` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `length` is never read [INFO] [stdout] --> xhcid/src/usb/device.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct DeviceDescriptor { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 4 | pub length: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DeviceDescriptor` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `minor_usb_vers` and `major_usb_vers` are never used [INFO] [stdout] --> xhcid/src/usb/device.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl DeviceDescriptor { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] 23 | pub fn minor_usb_vers(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn major_usb_vers(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `length`, `kind`, `class`, `sub_class`, and `protocol` are never read [INFO] [stdout] --> xhcid/src/usb/device.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct DeviceDescriptor8Byte { [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] 34 | pub length: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 35 | pub kind: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 36 | pub usb: u16, [INFO] [stdout] 37 | pub class: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 38 | pub sub_class: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 39 | pub protocol: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DeviceDescriptor8Byte` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `minor_usb_vers` is never used [INFO] [stdout] --> xhcid/src/usb/device.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 45 | impl DeviceDescriptor8Byte { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] 46 | pub fn minor_usb_vers(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeviceQualifier` is never constructed [INFO] [stdout] --> xhcid/src/usb/device.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct DeviceQualifier { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ty` is never used [INFO] [stdout] --> xhcid/src/usb/endpoint.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 25 | impl EndpointDescriptor { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] 26 | fn ty(self) -> EndpointTy { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> xhcid/src/usb/hub.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct HubDescriptor { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 4 | pub length: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 5 | pub kind: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | pub ports: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | pub characteristics: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | pub power_on_good: u8, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 9 | pub current: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | bitmaps: [u8; 64] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HubDescriptor` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `HubFeature` is never used [INFO] [stdout] --> xhcid/src/usb/hub.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | pub enum HubFeature { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HubFeature` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `length` is never read [INFO] [stdout] --> xhcid/src/usb/interface.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct InterfaceDescriptor { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 6 | pub length: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InterfaceDescriptor` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind`, `request`, `value`, and `index` are never read [INFO] [stdout] --> xhcid/src/usb/setup.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Setup { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 7 | pub kind: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | pub request: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 9 | pub value: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | pub index: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Setup` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Reserved` is never constructed [INFO] [stdout] --> xhcid/src/usb/setup.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum ReqType { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 41 | Reserved = 3, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SetupReq` is never used [INFO] [stdout] --> xhcid/src/usb/setup.rs:75:10 [INFO] [stdout] | [INFO] [stdout] 75 | pub enum SetupReq { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USB_SETUP_DIR_BIT` is never used [INFO] [stdout] --> xhcid/src/usb/setup.rs:89:11 [INFO] [stdout] | [INFO] [stdout] 89 | pub const USB_SETUP_DIR_BIT: u8 = 1 << 7; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USB_SETUP_REQ_TY_MASK` is never used [INFO] [stdout] --> xhcid/src/usb/setup.rs:91:11 [INFO] [stdout] | [INFO] [stdout] 91 | pub const USB_SETUP_REQ_TY_MASK: u8 = 0x60; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USB_SETUP_RECIPIENT_MASK` is never used [INFO] [stdout] --> xhcid/src/usb/setup.rs:93:11 [INFO] [stdout] | [INFO] [stdout] 93 | pub const USB_SETUP_RECIPIENT_MASK: u8 = 0x1F; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> xhcid/src/usb/setup.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 96 | impl Setup { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 97 | pub fn direction(&self) -> ReqDirection { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub const fn req_ty(&self) -> u8 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub const fn req_recipient(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn is_allowed_from_api(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub const fn get_status() -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub const fn clear_feature(feature: u16) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub const fn set_feature(feature: u16) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub const fn set_address(address: u16) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub const fn set_descriptor(kind: u8, index: u8, language: u16, length: u16) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | pub const fn get_configuration() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Intx`, `Msi`, and `MsiX` are never constructed [INFO] [stdout] --> xhcid/src/xhci/mod.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 56 | pub enum InterruptMethod { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 61 | Intx, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | Msi, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | MsiX(Mutex), [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `virt_table_base` and `info` are never read [INFO] [stdout] --> xhcid/src/xhci/mod.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 70 | pub struct MappedMsixRegs { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 71 | pub virt_table_base: NonNull, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 72 | pub info: MsixInfo, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `table_entry_pointer_unchecked` and `table_entry_pointer` are never used [INFO] [stdout] --> xhcid/src/xhci/mod.rs:75:19 [INFO] [stdout] | [INFO] [stdout] 74 | impl MappedMsixRegs { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] 75 | pub unsafe fn table_entry_pointer_unchecked(&mut self, k: usize) -> &mut MsixTableEntry { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn table_entry_pointer(&mut self, k: usize) -> &mut MsixTableEntry { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fetch_bos_desc` is never used [INFO] [stdout] --> xhcid/src/xhci/mod.rs:153:14 [INFO] [stdout] | [INFO] [stdout] 84 | impl Xhci { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 153 | async fn fetch_bos_desc(&self, port: usize, slot: u8) -> Result<(usb::BosDescriptor, [u8; 4087])> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pcid_handle` is never read [INFO] [stdout] --> xhcid/src/xhci/mod.rs:201:5 [INFO] [stdout] | [INFO] [stdout] 172 | pub struct Xhci { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 201 | pcid_handle: Mutex, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `disable_port_slot`, `msix_info`, and `msix_info_mut` are never used [INFO] [stdout] --> xhcid/src/xhci/mod.rs:487:18 [INFO] [stdout] | [INFO] [stdout] 260 | impl Xhci { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 487 | pub async fn disable_port_slot(&self, slot: u8) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 777 | pub fn msix_info(&self) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 783 | pub fn msix_info_mut(&self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `hci_ver` and `hcs_params3` are never read [INFO] [stdout] --> xhcid/src/xhci/capability.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct CapabilityRegs { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | pub hci_ver: Mmio, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | pub hcs_params3: Mmio, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HCS_PARAMS1_MAX_SLOTS_SHIFT` is never used [INFO] [stdout] --> xhcid/src/xhci/capability.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 30 | pub const HCS_PARAMS1_MAX_SLOTS_SHIFT: u8 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HCS_PARAMS2_SPR_BIT` is never used [INFO] [stdout] --> xhcid/src/xhci/capability.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | pub const HCS_PARAMS2_SPR_BIT: u32 = 1 << HCS_PARAMS2_SPR_SHIFT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HCS_PARAMS2_SPR_SHIFT` is never used [INFO] [stdout] --> xhcid/src/xhci/capability.rs:35:11 [INFO] [stdout] | [INFO] [stdout] 35 | pub const HCS_PARAMS2_SPR_SHIFT: u8 = 26; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `spr` is never used [INFO] [stdout] --> xhcid/src/xhci/capability.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl CapabilityRegs { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn spr(&self) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `EnabledOrDisabled`, `Default`, and `Addressed` are never constructed [INFO] [stdout] --> xhcid/src/xhci/context.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum SlotState { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 33 | EnabledOrDisabled = 0, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | Default = 1, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 35 | Addressed = 2, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `dump_control` is never used [INFO] [stdout] --> xhcid/src/xhci/context.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 65 | impl InputContext { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 66 | pub fn dump_control(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `edtla` and `rsvd` are never read [INFO] [stdout] --> xhcid/src/xhci/context.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 110 | pub struct StreamContext { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 113 | edtla: Mmio, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 114 | rsvd: Mmio, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> xhcid/src/xhci/context.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 120 | pub enum StreamContextType { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 121 | SecondaryRing, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 122 | PrimaryRing, [INFO] [stdout] 123 | PrimarySsa8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 124 | PrimarySsa16, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 125 | PrimarySsa32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 126 | PrimarySsa64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 127 | PrimarySsa128, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 128 | PrimarySsa256, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pages` is never read [INFO] [stdout] --> xhcid/src/xhci/context.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 180 | pub struct ScratchpadBufferArray { [INFO] [stdout] | --------------------- field in this struct [INFO] [stdout] 181 | pub entries: Dma<[ScratchpadBufferEntry]>, [INFO] [stdout] 182 | pub pages: Vec>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `read` is never used [INFO] [stdout] --> xhcid/src/xhci/doorbell.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Doorbell { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 7 | pub fn read(&self) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `next` is never used [INFO] [stdout] --> xhcid/src/xhci/event.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl EventRing { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn next(&mut self) -> &mut Trb { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> xhcid/src/xhci/extended.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum CapabilityId { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 40 | // bit 0 is reserved [INFO] [stdout] 41 | UsbLegacySupport = 1, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 42 | SupportedProtocol, [INFO] [stdout] 43 | ExtendedPowerManagement, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 44 | IoVirtualization, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 45 | MessageInterrupt, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 46 | LocalMem, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 47 | // bits 7-9 are reserved [INFO] [stdout] 48 | UsbDebugCapability = 10, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 49 | // bits 11-16 are reserved [INFO] [stdout] 50 | ExtendedMessageInterrupt = 17, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Bps` is never constructed [INFO] [stdout] --> xhcid/src/xhci/extended.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 89 | pub enum Psie { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 90 | Bps, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Psie` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Reserved`, `AsymmetricRx`, and `AsymmetricTx` are never constructed [INFO] [stdout] --> xhcid/src/xhci/extended.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 97 | pub enum Plt { [INFO] [stdout] | --- variants in this enum [INFO] [stdout] 98 | Symmetric, [INFO] [stdout] 99 | Reserved, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 100 | AsymmetricRx, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 101 | AsymmetricTx, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Plt` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Rsvd2` and `Rsvd3` are never constructed [INFO] [stdout] --> xhcid/src/xhci/extended.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 105 | pub enum Lp { [INFO] [stdout] | -- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 108 | Rsvd2, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 109 | Rsvd3, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Lp` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `protocol_speeds_mut` is never used [INFO] [stdout] --> xhcid/src/xhci/extended.rs:231:19 [INFO] [stdout] | [INFO] [stdout] 224 | impl SupportedProtoCap { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 231 | pub unsafe fn protocol_speeds_mut(&mut self) -> &mut [ProtocolSpeed] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Other` is never constructed [INFO] [stdout] --> xhcid/src/xhci/irq_reactor.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub enum StateKind { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 70 | Other(TrbType), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StateKind` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `trb_type` is never used [INFO] [stdout] --> xhcid/src/xhci/irq_reactor.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 73 | impl StateKind { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 74 | pub fn trb_type(&self) -> TrbType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `with_ring_mut` and `next_misc_event_trb` are never used [INFO] [stdout] --> xhcid/src/xhci/irq_reactor.rs:445:12 [INFO] [stdout] | [INFO] [stdout] 428 | impl Xhci { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 445 | pub fn with_ring_mut T>(&self, id: RingId, function: F) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 497 | pub fn next_misc_event_trb(&self, trb_type: TrbType) -> impl Future + Send + Sync + 'static { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `page_size` and `dn_ctrl` are never read [INFO] [stdout] --> xhcid/src/xhci/operational.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct OperationalRegs { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | pub page_size: Mmio, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 12 | _rsvd: [Mmio; 2], [INFO] [stdout] 13 | pub dn_ctrl: Mmio, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `portpmsc`, `portli`, and `porthlpmc` are never read [INFO] [stdout] --> xhcid/src/xhci/port.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Port { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 31 | pub portsc: Mmio, [INFO] [stdout] 32 | pub portpmsc: Mmio, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 33 | pub portli: Mmio, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 34 | pub porthlpmc: Mmio, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `iter`, `phys_addr_to_entry_ref`, `start_virt_addr`, and `end_virt_addr` are never used [INFO] [stdout] --> xhcid/src/xhci/ring.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Ring { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn iter(&self) -> impl Iterator + '_ { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn phys_addr_to_entry_ref(&self, ac64: bool, paddr: u64) -> Option<&Trb> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub(crate) fn start_virt_addr(&self) -> *const Trb { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub(crate) fn end_virt_addr(&self) -> *const Trb { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Iter` is never constructed [INFO] [stdout] --> xhcid/src/xhci/ring.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | struct Iter<'ring> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mfindex` is never read [INFO] [stdout] --> xhcid/src/xhci/runtime.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct RuntimeRegs { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 17 | pub mfindex: Mmio, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PortTransferState` is never used [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:71:10 [INFO] [stdout] | [INFO] [stdout] 71 | pub enum PortTransferState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PortTransferState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:182:12 [INFO] [stdout] | [INFO] [stdout] 182 | Device(usb::DeviceDescriptor), [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `AnyDescriptor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 182 | Device(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | Config(usb::ConfigDescriptor), [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `AnyDescriptor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 183 | Config(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `port_state` is never used [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:589:8 [INFO] [stdout] | [INFO] [stdout] 223 | impl Xhci { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 589 | fn port_state(&self, port: usize) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `endp_direction` and `slot` are never used [INFO] [stdout] --> xhcid/src/xhci/scheme.rs:1810:12 [INFO] [stdout] | [INFO] [stdout] 1678 | impl Xhci { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 1810 | pub fn endp_direction(&self, port_num: usize, endp_num: u8) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1828 | pub fn slot(&self, port_num: usize) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> xhcid/src/xhci/trb.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum TrbType { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 18 | EventData, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | Rsv26, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 40 | Rsv27, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 41 | Rsv28, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 42 | Rsv29, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 43 | Rsv30, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 44 | Rsv31, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | PortStatusChange, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 49 | BandwidthRequest, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 50 | Doorbell, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 51 | HostController, [INFO] [stdout] 52 | DeviceNotification, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 53 | MfindexWrap, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TrbType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> xhcid/src/xhci/trb.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub enum TrbCompletionCode { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 62 | DataBuffer = 0x02, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 63 | BabbleDetected = 0x03, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 64 | UsbTransaction = 0x04, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 65 | Trb = 0x05, [INFO] [stdout] | ^^^ [INFO] [stdout] 66 | Stall = 0x06, [INFO] [stdout] 67 | Resource = 0x07, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 68 | Bandwidth = 0x08, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 69 | NoSlotsAvailable = 0x09, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 70 | InvalidStreamType = 0x0A, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 71 | SlotNotEnabled = 0x0B, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 72 | EndpointNotEnabled = 0x0C, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | Parameter = 0x11, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 78 | BandwidthOverrun = 0x12, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [WARN] too many lines in the log, truncating it