Skip to content
Commit 2460386b authored by Marcin Wojtas's avatar Marcin Wojtas Committed by Jakub Kicinski
Browse files

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: c54da4c1

 ("net: mvmdio: add ACPI support")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarMarcin Wojtas <mw@semihalf.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20211115153024.209083-1-mw@semihalf.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent f5c74160
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment