net: smsc911x: skip acpi_device_id table when !CONFIG_ACPI
Subsystems (3)
PATCH 1/1 net: smsc911x: skip acpi_device_id table when !CONFIG_ACPI
The driver can match via multiple methods. Its acpi_device_id table is referenced via ACPI_PTR() so it will be unused for !CONFIG_ACPI builds:
drivers/net/ethernet/smsc/smsc911x.c:2652:36: warning:
‘smsc911x_acpi_match’ defined but not used [-Wunused-const-variable=]
--- drivers/net/ethernet/smsc/smsc911x.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/ethernet/smsc/smsc911x.c +2 -0
@@ -2649,11 +2649,13 @@ static const struct of_device_id smsc911x_dt_ids[] = {MODULE_DEVICE_TABLE (of, smsc911x_dt_ids);#endif +#ifdef CONFIG_ACPI static const struct acpi_device_id smsc911x_acpi_match[] = { {"ARMH9118" ,0 }, { } };MODULE_DEVICE_TABLE (acpi, smsc911x_acpi_match); +#endif static struct platform_driver smsc911x_driver = { .probe = smsc911x_drv_probe,
Signature · 1 line
2.25.1
This patch was applied to netdev/net-next.git (refs/heads/master):
Hello:
This patch was applied to netdev/net-next.git (refs/heads/master):
Quoted 9 lines · On Mon, 5 Apr 2021 20:15:48 +0200 you wrote:
The driver can match via multiple methods. Its
acpi_device_idtable is referenced viaACPI_PTR()so it will be unused for !CONFIG_ACPI builds:
drivers/net/ethernet/smsc/smsc911x.c:2652:36: warning:
‘smsc911x_acpi_match’ defined but not used [-Wunused-const-variable=]Signed-off-by Krzysztof Kozlowski <[email protected]>[...]
Here is the summary with links:
- net: smsc911x: skip acpi_device_id table when !CONFIG_ACPI
https://git.kernel.org/netdev/net-next/c/cc0626c2aaed
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html