Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 89DB5FF8875 for ; Wed, 29 Apr 2026 10:35:34 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DDE198484F; Wed, 29 Apr 2026 12:35:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=0leil.net Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=0leil.net header.i=@0leil.net header.b="SKMz33Wp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7F810847C6; Wed, 29 Apr 2026 12:35:18 +0200 (CEST) Received: from smtp-bc0b.mail.infomaniak.ch (smtp-bc0b.mail.infomaniak.ch [45.157.188.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9168A84832 for ; Wed, 29 Apr 2026 12:35:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=0leil.net Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=foss+uboot@0leil.net Received: from smtp-4-0000.mail.infomaniak.ch (unknown [IPv6:2001:1600:7:10::a6b]) by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4g5DG95xW8zBRV; Wed, 29 Apr 2026 12:35:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0leil.net; s=20231125; t=1777458913; bh=NVCTuGbUhIc6WvEuJOy9wuvUXUKK8xxsQQqUbRG53XU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=SKMz33WpZOYOJYKsbs2779QtvVL4oPUoeWar4Gka7hVTAFwq4R4KcP3CJSDOl2iti RZmCoE2HEnFLhcidVNJsBlrHIFfbaRdg+VAYPXSMed/zjE/TxVdSo9EIu85w+R6y0Z WXtJPNPw/avJ/f6ug3Nk43aqr8JH8PUfWexsg5GJsylaBUFazpvVV7EyxQEtKWyGHs OjZEEn3My4gT8gYRT3EaoMTJT61NgM/3BYWlfVPwJeYMlblVl2Rp7wgRiMePR9jeHC 3wewSI+qmQvz5SYN0VVr32089C/221/k6BJfa50pLIovdyG1sEE2LdUAEV1mTk9KT+ WVHT2DUQe7iyA== Received: from unknown by smtp-4-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4g5DG85gTQzYZT; Wed, 29 Apr 2026 12:35:12 +0200 (CEST) From: Quentin Schulz Date: Wed, 29 Apr 2026 12:35:01 +0200 Subject: [PATCH RFC next 1/5] ls1028a: only include drivers/net/fsl_enetc.h when driver is compiled MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260429-sys_rx_eth_buffer-no-net-v1-1-396ef37ae93c@cherry.de> References: <20260429-sys_rx_eth_buffer-no-net-v1-0-396ef37ae93c@cherry.de> In-Reply-To: <20260429-sys_rx_eth_buffer-no-net-v1-0-396ef37ae93c@cherry.de> To: u-boot@lists.denx.de Cc: Tang Yuantian , Tom Rini , Fabio Estevam , Alice Guo , Jerome Forissier , Peter Robinson , Simon Glass , Andrew Goodbody , Benjamin Hahn , Ilias Apalodimas , =?utf-8?q?Alvin_=C5=A0ipraga?= , Quentin Schulz X-Mailer: b4 0.15-dev-47773 X-Infomaniak-Routing: alpha X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean From: Quentin Schulz As hinted by its path, it's not really meant to be included outside of the driver itself. This header uses CONFIG_SYS_RX_ETH_BUFFER which we are trying to move under CONFIG_NET dependency. This file here can be compiled without network support so make sure this only gets included when needed. The function from that header (fdt_fixup_enetc_mac) is already guarded by CONFIG_FSL_ENETC so simply guard the inclusion of the header the same way. This was tested by building ls1028aqds_tfa_defconfig with CONFIG_MSCC_FELIX_SWITCH and CONFIG_FSL_ENETC disabled. Signed-off-by: Quentin Schulz --- board/nxp/ls1028a/ls1028a.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/nxp/ls1028a/ls1028a.c b/board/nxp/ls1028a/ls1028a.c index db94d9c1fa8..4725efd1002 100644 --- a/board/nxp/ls1028a/ls1028a.c +++ b/board/nxp/ls1028a/ls1028a.c @@ -26,7 +26,9 @@ #include #include #include "../common/qixis.h" +#ifdef CONFIG_FSL_ENETC #include "../drivers/net/fsl_enetc.h" +#endif DECLARE_GLOBAL_DATA_PTR; -- 2.54.0