diff options
| author | Eliot Courtney <ecourtney@nvidia.com> | 2026-10-26 12:53:20 +0900 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2026-11-01 23:37:37 +0100 |
| commit | 14098e496671dd5ae83999f89c6a80a86872792c (patch) | |
| tree | ecf62fae34003870c6d8d149458a839d387a77f2 /scripts/Makefile.thinlto | |
| parent | 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4 (diff) | |
| download | linux-next-14098e496671dd5ae83999f89c6a80a86872792c.tar.gz linux-next-14098e496671dd5ae83999f89c6a80a86872792c.zip | |
rust: io: fix unused Flags::from_raw warning without CONFIG_PCI
Currently, `Flags::from_raw()` is only used by
`pci::Device::resource_flags()`, so rustc errors (with CONFIG_WERROR)
saying that it is never used when `CONFIG_PCI` is disabled.
error: associated function `from_raw` is never used
--> rust/kernel/io/resource.rs:240:25
`Resource::flags()` also converts the raw `flags` field to `Flags` and is
built in every config, so the easiest way to get rid of this error is
to just use it there too.
Fixes: 3f1e12fce16f ("rust: pci: add resource_flags accessor")
Reported-by: Miguel Ojeda <ojeda@kernel.org>
Closes: https://lore.kernel.org/all/20261023154005.95904-1-ojeda@kernel.org/
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202610241133.L9VWoFcD-lkp@intel.com/
Signed-off-by: Eliot Courtney <ecourtney@nvidia.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Link: https://patch.msgid.link/20261026-pci-fix-v1-1-a6a69ee584d4@nvidia.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
