net: mvmdio: fix compilation warning
authorMarcin Wojtas <mw@semihalf.com>
Mon, 15 Nov 2021 15:30:24 +0000 (16:30 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 17 Nov 2021 02:55:17 +0000 (18:55 -0800)
commit2460386bef0b9b98b71728d3c173e15558b78d82
treec25a7609eadd95cd4826fee64c412098f8665035
parentf5c741608b8cfad66d57881de5ca22652f8253cb
net: mvmdio: fix compilation warning

The kernel test robot reported a following issue:

>> drivers/net/ethernet/marvell/mvmdio.c:426:36: warning:
unused variable 'orion_mdio_acpi_match' [-Wunused-const-variable]
   static const struct acpi_device_id orion_mdio_acpi_match[] = {
                                      ^
   1 warning generated.

Fix that by surrounding the variable by appropriate ifdef.

Fixes: c54da4c1acb1 ("net: mvmdio: add ACPI support")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Marcin Wojtas <mw@semihalf.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20211115153024.209083-1-mw@semihalf.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/mvmdio.c