diff options
author | Andrew Lunn <andrew@lunn.ch> | 2020-09-26 23:26:03 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-27 13:28:38 -0700 |
commit | 36563ce6ae2886aec4ed287bbd2250d3d3612053 (patch) | |
tree | 6b417d16506f6bfe81187feec724044bba539644 /drivers/net/ethernet/marvell/mvpp2 | |
parent | 7cd427e2f9d48228fb97d7c044b939eb7a81871f (diff) | |
download | lwn-36563ce6ae2886aec4ed287bbd2250d3d3612053.tar.gz lwn-36563ce6ae2886aec4ed287bbd2250d3d3612053.zip |
net: marvell: mvpp2: Fix W=1 warning with !CONFIG_ACPI
rivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:7084:36: warning: ‘mvpp2_acpi_match’ defined but not used [-Wunused-const-variable=]
7084 | static const struct acpi_device_id mvpp2_acpi_match[] = {
| ^~~~~~~~~~~~~~~~
Wrap the definition inside #ifdef/#endif.
Compile tested only.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/marvell/mvpp2')
-rw-r--r-- | drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c index d11d33cf3443..f6616c8933ca 100644 --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c @@ -7081,11 +7081,13 @@ static const struct of_device_id mvpp2_match[] = { }; MODULE_DEVICE_TABLE(of, mvpp2_match); +#ifdef CONFIG_ACPI static const struct acpi_device_id mvpp2_acpi_match[] = { { "MRVL0110", MVPP22 }, { }, }; MODULE_DEVICE_TABLE(acpi, mvpp2_acpi_match); +#endif static struct platform_driver mvpp2_driver = { .probe = mvpp2_probe, |