{"id":2230143,"url":"http://patchwork.ozlabs.org/api/1.2/patches/2230143/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/20260429-sys_rx_eth_buffer-no-net-v1-1-396ef37ae93c@cherry.de/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/1.2/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260429-sys_rx_eth_buffer-no-net-v1-1-396ef37ae93c@cherry.de>","list_archive_url":null,"date":"2026-04-29T10:35:01","name":"[RFC,next,1/5] ls1028a: only include drivers/net/fsl_enetc.h when driver is compiled","commit_ref":null,"pull_url":null,"state":"rfc","archived":false,"hash":"0301d59351aa60a5b87d6faa8ba7de548efbbc9c","submitter":{"id":84425,"url":"http://patchwork.ozlabs.org/api/1.2/people/84425/?format=json","name":"Quentin Schulz","email":"foss+uboot@0leil.net"},"delegate":{"id":157425,"url":"http://patchwork.ozlabs.org/api/1.2/users/157425/?format=json","username":"jforissier","first_name":"Jerome","last_name":"Forissier","email":"jerome.forissier@linaro.org"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/20260429-sys_rx_eth_buffer-no-net-v1-1-396ef37ae93c@cherry.de/mbox/","series":[{"id":502037,"url":"http://patchwork.ozlabs.org/api/1.2/series/502037/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=502037","date":"2026-04-29T10:35:00","name":"net: guard SYS_RX_ETH_BUFFER with NET + required changes (ls1028a!) to make this happen","version":1,"mbox":"http://patchwork.ozlabs.org/series/502037/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2230143/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2230143/checks/","tags":{},"related":[],"headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=0leil.net header.i=@0leil.net header.a=rsa-sha256\n header.s=20231125 header.b=SKMz33Wp;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)","phobos.denx.de;\n dmarc=pass (p=reject dis=none) header.from=0leil.net","phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de","phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=0leil.net header.i=@0leil.net header.b=\"SKMz33Wp\";\n\tdkim-atps=neutral","phobos.denx.de;\n dmarc=pass (p=reject dis=none) header.from=0leil.net","phobos.denx.de;\n spf=pass smtp.mailfrom=foss+uboot@0leil.net"],"Received":["from phobos.denx.de (phobos.denx.de [85.214.62.61])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g5DGc6lwwz1xqf\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 20:35:36 +1000 (AEST)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id DDE198484F;\n\tWed, 29 Apr 2026 12:35:19 +0200 (CEST)","by phobos.denx.de (Postfix, from userid 109)\n id 7F810847C6; Wed, 29 Apr 2026 12:35:18 +0200 (CEST)","from smtp-bc0b.mail.infomaniak.ch (smtp-bc0b.mail.infomaniak.ch\n [45.157.188.11])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 9168A84832\n for <u-boot@lists.denx.de>; Wed, 29 Apr 2026 12:35:16 +0200 (CEST)","from smtp-4-0000.mail.infomaniak.ch (unknown\n [IPv6:2001:1600:7:10::a6b])\n by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4g5DG95xW8zBRV;\n Wed, 29 Apr 2026 12:35:13 +0200 (CEST)","from unknown by smtp-4-0000.mail.infomaniak.ch (Postfix) with ESMTPA\n id 4g5DG85gTQzYZT; Wed, 29 Apr 2026 12:35:12 +0200 (CEST)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,\n RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS\n autolearn=ham autolearn_force=no version=3.4.2","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=0leil.net;\n s=20231125; t=1777458913;\n bh=NVCTuGbUhIc6WvEuJOy9wuvUXUKK8xxsQQqUbRG53XU=;\n h=From:Date:Subject:References:In-Reply-To:To:Cc:From;\n b=SKMz33WpZOYOJYKsbs2779QtvVL4oPUoeWar4Gka7hVTAFwq4R4KcP3CJSDOl2iti\n RZmCoE2HEnFLhcidVNJsBlrHIFfbaRdg+VAYPXSMed/zjE/TxVdSo9EIu85w+R6y0Z\n WXtJPNPw/avJ/f6ug3Nk43aqr8JH8PUfWexsg5GJsylaBUFazpvVV7EyxQEtKWyGHs\n OjZEEn3My4gT8gYRT3EaoMTJT61NgM/3BYWlfVPwJeYMlblVl2Rp7wgRiMePR9jeHC\n 3wewSI+qmQvz5SYN0VVr32089C/221/k6BJfa50pLIovdyG1sEE2LdUAEV1mTk9KT+\n WVHT2DUQe7iyA==","From":"Quentin Schulz <foss+uboot@0leil.net>","Date":"Wed, 29 Apr 2026 12:35:01 +0200","Subject":"[PATCH RFC next 1/5] ls1028a: only include drivers/net/fsl_enetc.h\n 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 <andy.tang@nxp.com>, Tom Rini <trini@konsulko.com>,\n  Fabio Estevam <festevam@gmail.com>, Alice Guo <alice.guo@nxp.com>,\n  Jerome Forissier <jerome.forissier@arm.com>,\n  Peter Robinson <pbrobinson@gmail.com>, Simon Glass <sjg@chromium.org>,\n  Andrew Goodbody <andrew.goodbody@linaro.org>,\n  Benjamin Hahn <B.Hahn@phytec.de>,\n  Ilias Apalodimas <ilias.apalodimas@linaro.org>, =?utf-8?q?Alvin_=C5=A0ipra?=\n\t=?utf-8?q?ga?= <alvin@pqrs.dk>,  Quentin Schulz <quentin.schulz@cherry.de>","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 <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<https://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>","X-Virus-Scanned":"clamav-milter 0.103.8 at phobos.denx.de","X-Virus-Status":"Clean"},"content":"From: Quentin Schulz <quentin.schulz@cherry.de>\n\nAs hinted by its path, it's not really meant to be included outside of\nthe driver itself. This header uses CONFIG_SYS_RX_ETH_BUFFER which we\nare trying to move under CONFIG_NET dependency. This file here can be\ncompiled without network support so make sure this only gets included\nwhen needed.\n\nThe function from that header (fdt_fixup_enetc_mac) is already guarded\nby CONFIG_FSL_ENETC so simply guard the inclusion of the header the same\nway.\n\nThis was tested by building ls1028aqds_tfa_defconfig with\nCONFIG_MSCC_FELIX_SWITCH and CONFIG_FSL_ENETC disabled.\n\nSigned-off-by: Quentin Schulz <quentin.schulz@cherry.de>\n---\n board/nxp/ls1028a/ls1028a.c | 2 ++\n 1 file changed, 2 insertions(+)","diff":"diff --git a/board/nxp/ls1028a/ls1028a.c b/board/nxp/ls1028a/ls1028a.c\nindex db94d9c1fa8..4725efd1002 100644\n--- a/board/nxp/ls1028a/ls1028a.c\n+++ b/board/nxp/ls1028a/ls1028a.c\n@@ -26,7 +26,9 @@\n #include <fdtdec.h>\n #include <miiphy.h>\n #include \"../common/qixis.h\"\n+#ifdef CONFIG_FSL_ENETC\n #include \"../drivers/net/fsl_enetc.h\"\n+#endif\n \n DECLARE_GLOBAL_DATA_PTR;\n \n","prefixes":["RFC","next","1/5"]}