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: xgene-v2: remove incorrect ACPI_PTR annotation

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

drivers/net/ethernet/apm/xgene-v2/main.c:723:36: error: unused variable 'xge_acpi_match' [-Werror,-Wunused-const-variable]

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

authored by

Arnd Bergmann and committed by
Paolo Abeni
01358e8f 9355f727

+1 -3
+1 -3
drivers/net/ethernet/apm/xgene-v2/main.c
··· 9 9 10 10 #include "main.h" 11 11 12 - static const struct acpi_device_id xge_acpi_match[]; 13 - 14 12 static int xge_get_resources(struct xge_pdata *pdata) 15 13 { 16 14 struct platform_device *pdev; ··· 729 731 static struct platform_driver xge_driver = { 730 732 .driver = { 731 733 .name = "xgene-enet-v2", 732 - .acpi_match_table = ACPI_PTR(xge_acpi_match), 734 + .acpi_match_table = xge_acpi_match, 733 735 }, 734 736 .probe = xge_probe, 735 737 .remove = xge_remove,