[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1ef277af-3d66-4b8f-a6d9-e2066f40bbe3@redhat.com>
Date: Thu, 26 Sep 2024 11:48:37 +0200
From: Paolo Abeni <pabeni@...hat.com>
To: FUJITA Tomonori <fujita.tomonori@...il.com>, netdev@...r.kernel.org
Cc: rust-for-linux@...r.kernel.org, andrew@...n.ch, tmgross@...ch.edu,
aliceryhl@...gle.com, hkallweit1@...il.com, linux@...linux.org.uk,
davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
kernel test robot <lkp@...el.com>
Subject: Re: [PATCH net v2] net: phy: qt2025: Fix warning: unused import
DeviceId
On 9/21/24 08:25, FUJITA Tomonori wrote:
> 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.
>
> Reported-by: kernel test robot <lkp@...el.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202409190717.i135rfVo-lkp@intel.com/
> Reviewed-by: Alice Ryhl <aliceryhl@...gle.com>
> Reviewed-by: Trevor Gross <tmgross@...ch.edu>
> Signed-off-by: FUJITA Tomonori <fujita.tomonori@...il.com>
Please additionally include a suitable fixes tag in the tag area, thanks!
Paolo
Powered by blists - more mailing lists