diff options
author | FUJITA Tomonori <[email protected]> | 2024-09-26 12:14:03 +0000 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-10-02 17:44:00 -0700 |
commit | fa7dfeae041c91e425db9fbb95fb3f57b821c386 (patch) | |
tree | 2b553f87827f21a595fc054b066a2ee6073f7370 /rust/helpers/build_bug.c | |
parent | a1e40ac5b5e9077fe1f7ae0eb88034db0f9ae1ab (diff) |
net: phy: qt2025: Fix warning: unused import DeviceId
Fix the following warning when the driver is compiled as built-in:
warning: unused import: `DeviceId`
--> drivers/net/phy/qt2025.rs:18:5
|
18 | DeviceId, Driver,
| ^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
device_table in module_phy_driver macro is defined only when the
driver is built as a module. Use phy::DeviceId in the macro instead of
importing `DeviceId` since `phy` is always used.
Fixes: fd3eaad826da ("net: phy: add Applied Micro QT2025 PHY driver")
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Reviewed-by: Alice Ryhl <[email protected]>
Reviewed-by: Trevor Gross <[email protected]>
Signed-off-by: FUJITA Tomonori <[email protected]>
Reviewed-by: Fiona Behrens <[email protected]>
Acked-by: Miguel Ojeda <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'rust/helpers/build_bug.c')
0 files changed, 0 insertions, 0 deletions