From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 331EF1EA65; Mon, 2 Jun 2025 14:32:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748874770; cv=none; b=nwuCmRRNpjT98GByLT95dWXvfFBdGnlFVPHurSLMq6tgPUDqekq58j29TBFF8H/vbVX6PgbTI4hIh9tn9iJwixOLO9wXxyN+Bis5F3NGYaOY1k2B2HtJc2ZGIc/f9m/Za/Twh5y0ghilGm1b8kUjUTdWlGrGWoZbt234An2vFCg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748874770; c=relaxed/simple; bh=ryu+J81VTZEm5f2WixjsC7/MVVLCDwotR2M5buSLnKs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=HxOVX+2IwDxCSwEViu/nF8sNuUbGEaOWYO48k2Wa3Wl6OhUaJ8S0QR/ZGBwsURovbEk98P+EhXxM/vxz6APO6aR5JbiRVwR49FsnuXStAsdb0Q6yAuSTTkyPzsVy6Y4vlrIHba/CVSmWPsCtWV4C/Ni/OXGJzLNRj/k9t2H2sGc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OIz8qXAy; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="OIz8qXAy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 978B6C4CEEB; Mon, 2 Jun 2025 14:32:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1748874770; bh=ryu+J81VTZEm5f2WixjsC7/MVVLCDwotR2M5buSLnKs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OIz8qXAyOEGeEVNHX6BuKKLdIY8WdzwCMWwknexl95woKKLOURyE6EskhJK4blAFq XGkzOCWuwQPmQ9JEzFuyQdcZuwjul5fmgGCYAokSn6kSp7ihdp1pnQxOOYK7XpdGoV 2+NnQ2+tTGcDrxWhT9hKENtfQqSOTbx+CHV01Bgo= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Arnd Bergmann , Paolo Abeni , Sasha Levin Subject: [PATCH 5.4 130/204] net: xgene-v2: remove incorrect ACPI_PTR annotation Date: Mon, 2 Jun 2025 15:47:43 +0200 Message-ID: <20250602134300.759096613@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250602134255.449974357@linuxfoundation.org> References: <20250602134255.449974357@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann [ Upstream commit 01358e8fe922f716c05d7864ac2213b2440026e7 ] 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 Link: https://patch.msgid.link/20250225163341.4168238-2-arnd@kernel.org Signed-off-by: Paolo Abeni Signed-off-by: Sasha Levin --- drivers/net/ethernet/apm/xgene-v2/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/ethernet/apm/xgene-v2/main.c b/drivers/net/ethernet/apm/xgene-v2/main.c index 848be6bf2fd1f..514a121d96aeb 100644 --- a/drivers/net/ethernet/apm/xgene-v2/main.c +++ b/drivers/net/ethernet/apm/xgene-v2/main.c @@ -9,8 +9,6 @@ #include "main.h" -static const struct acpi_device_id xge_acpi_match[]; - static int xge_get_resources(struct xge_pdata *pdata) { struct platform_device *pdev; @@ -733,7 +731,7 @@ MODULE_DEVICE_TABLE(acpi, xge_acpi_match); static struct platform_driver xge_driver = { .driver = { .name = "xgene-enet-v2", - .acpi_match_table = ACPI_PTR(xge_acpi_match), + .acpi_match_table = xge_acpi_match, }, .probe = xge_probe, .remove = xge_remove, -- 2.39.5