]> www.infradead.org Git - users/hch/configfs.git/commit
net: phy: qt2025: Fix warning: unused import DeviceId
authorFUJITA Tomonori <fujita.tomonori@gmail.com>
Thu, 26 Sep 2024 12:14:03 +0000 (12:14 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 3 Oct 2024 00:44:00 +0000 (17:44 -0700)
commitfa7dfeae041c91e425db9fbb95fb3f57b821c386
tree2b553f87827f21a595fc054b066a2ee6073f7370
parenta1e40ac5b5e9077fe1f7ae0eb88034db0f9ae1ab
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 <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202409190717.i135rfVo-lkp@intel.com/
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Trevor Gross <tmgross@umich.edu>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Reviewed-by: Fiona Behrens <me@kloenk.dev>
Acked-by: Miguel Ojeda <ojeda@kernel.org>
Link: https://patch.msgid.link/20240926121404.242092-1-fujita.tomonori@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/qt2025.rs