Skip to content

Commit f872f7a

Browse files
arndbgregkh
authored andcommitted
net: xgene-v2: remove incorrect ACPI_PTR annotation
[ Upstream commit 01358e8 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 459b3f7 commit f872f7a

File tree

1 file changed

+1
-3
lines changed
  • drivers/net/ethernet/apm/xgene-v2

1 file changed

+1
-3
lines changed

drivers/net/ethernet/apm/xgene-v2/main.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010
#include "main.h"
1111

12-
static const struct acpi_device_id xge_acpi_match[];
13-
1412
static int xge_get_resources(struct xge_pdata *pdata)
1513
{
1614
struct platform_device *pdev;
@@ -731,7 +729,7 @@ MODULE_DEVICE_TABLE(acpi, xge_acpi_match);
731729
static struct platform_driver xge_driver = {
732730
.driver = {
733731
.name = "xgene-enet-v2",
734-
.acpi_match_table = ACPI_PTR(xge_acpi_match),
732+
.acpi_match_table = xge_acpi_match,
735733
},
736734
.probe = xge_probe,
737735
.remove_new = xge_remove,

0 commit comments

Comments
 (0)