]> git.baikalelectronics.ru Git - kernel.git/commit
net: marvell: mvpp2: Fix W=1 warning with !CONFIG_ACPI
authorAndrew Lunn <andrew@lunn.ch>
Sat, 26 Sep 2020 21:26:03 +0000 (23:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 27 Sep 2020 20:28:38 +0000 (13:28 -0700)
commitfe1c97f566cf7e1b6b905f33d008d5f9bd393777
tree6b417d16506f6bfe81187feec724044bba539644
parent974b8ee6a0a64a8f167e1e96a1a5debd8e868bd6
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>
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c