Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Krzysztof Kozlowski and committed by
David S. Miller
cc0626c2 d392ecd1

+2
+2
drivers/net/ethernet/smsc/smsc911x.c
··· 2649 2649 MODULE_DEVICE_TABLE(of, smsc911x_dt_ids); 2650 2650 #endif 2651 2651 2652 + #ifdef CONFIG_ACPI 2652 2653 static const struct acpi_device_id smsc911x_acpi_match[] = { 2653 2654 { "ARMH9118", 0 }, 2654 2655 { } 2655 2656 }; 2656 2657 MODULE_DEVICE_TABLE(acpi, smsc911x_acpi_match); 2658 + #endif 2657 2659 2658 2660 static struct platform_driver smsc911x_driver = { 2659 2661 .probe = smsc911x_drv_probe,