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: hisilicon: hns_mdio: remove incorrect ACPI_PTR annotation

Building with W=1 shows a warning about hns_mdio_acpi_match being unused when
CONFIG_ACPI is disabled:

drivers/net/ethernet/hisilicon/hns_mdio.c:631:36: error: unused variable 'hns_mdio_acpi_match' [-Werror,-Wunused-const-variable]

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20250225163341.4168238-1-arnd@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Arnd Bergmann and committed by
Paolo Abeni
9355f727 af4a5da8

+1 -1
+1 -1
drivers/net/ethernet/hisilicon/hns_mdio.c
··· 640 640 .driver = { 641 641 .name = MDIO_DRV_NAME, 642 642 .of_match_table = hns_mdio_match, 643 - .acpi_match_table = ACPI_PTR(hns_mdio_acpi_match), 643 + .acpi_match_table = hns_mdio_acpi_match, 644 644 }, 645 645 }; 646 646