Skip to content

Add macros to read or write config space in a type safe way #642

Add macros to read or write config space in a type safe way

Add macros to read or write config space in a type safe way #642

Triggered via pull request November 27, 2024 17:17
@qwandorqwandor
synchronize #170
safereg
Status Success
Total duration 1m 30s
Artifacts

main.yml

on: pull_request
Matrix: examples
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
this function has too many arguments (8/7): src/device/sound.rs#L365
warning: this function has too many arguments (8/7) --> src/device/sound.rs:365:5 | 365 | / pub fn pcm_set_params( 366 | | &mut self, 367 | | stream_id: u32, 368 | | buffer_bytes: u32, ... | 373 | | rate: PcmRate, 374 | | ) -> Result { | |_______________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
this function has too many arguments (8/7): src/device/gpu.rs#L255
warning: this function has too many arguments (8/7) --> src/device/gpu.rs:255:5 | 255 | / fn update_cursor( 256 | | &mut self, 257 | | resource_id: u32, 258 | | scanout_id: u32, ... | 263 | | is_move: bool, 264 | | ) -> Result { | |_______________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments = note: `#[warn(clippy::too_many_arguments)]` on by default
build: src/transport/mod.rs#L281
unused macro definition: `write_config`
build: src/transport/mod.rs#L295
unused import: `write_config`
build: src/queue.rs#L80
unused variable: `indirect`
build
`virtio-drivers` (lib) generated 3 warnings (run `cargo fix --lib -p virtio-drivers` to apply 1 suggestion)
build: src/transport/mod.rs#L281
unused macro definition: `write_config`
build: src/transport/mod.rs#L295
unused import: `write_config`
build: src/queue.rs#L80
unused variable: `indirect`
build
`virtio-drivers` (lib) generated 3 warnings (run `cargo fix --lib -p virtio-drivers` to apply 1 suggestion)