From patchwork Fri Jan 9 23:11:32 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1419 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768000434; bh=iP5p7INKoi9j591+e8tLzTfs7eS0gYBhh2qrV/6Bq90=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=O4WxowZIqfkxthG/Mgf+XuY3Yo6mas5kr2WiNYY99EOJ5V8ssnLfi3zlqHNSI0J4k c2dPs4Is9IT8iwFYgdgGdrL3P4yf7YPUEa8FG1ESeE2v6uM2mCPGbhRjwAYeFKJLwn I3Bee47fXkqdRfjqyBXjacMimc+hfMvv7dXdzupTbkKK9xL61ubJDbWXuO/AMIVgd8 fxMVMMpyxojucmTOUxVUmnS2zhU4Jvvit1blvgyyg4bgWZQCi1P0c3EaK8F/ZeNsXZ mK6ReYWirx+dMX6tpMx+F2hcsbCnYv+MRHeUspnVDnfBy+3UKgoz9tl0Je8mCVj0eX bOMxs8CylwZ2g== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id EF1A869258 for ; Fri, 9 Jan 2026 16:13:54 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id YEkL_ZCLehLz for ; Fri, 9 Jan 2026 16:13:54 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768000434; bh=iP5p7INKoi9j591+e8tLzTfs7eS0gYBhh2qrV/6Bq90=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=O4WxowZIqfkxthG/Mgf+XuY3Yo6mas5kr2WiNYY99EOJ5V8ssnLfi3zlqHNSI0J4k c2dPs4Is9IT8iwFYgdgGdrL3P4yf7YPUEa8FG1ESeE2v6uM2mCPGbhRjwAYeFKJLwn I3Bee47fXkqdRfjqyBXjacMimc+hfMvv7dXdzupTbkKK9xL61ubJDbWXuO/AMIVgd8 fxMVMMpyxojucmTOUxVUmnS2zhU4Jvvit1blvgyyg4bgWZQCi1P0c3EaK8F/ZeNsXZ mK6ReYWirx+dMX6tpMx+F2hcsbCnYv+MRHeUspnVDnfBy+3UKgoz9tl0Je8mCVj0eX bOMxs8CylwZ2g== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id B33B969243 for ; Fri, 9 Jan 2026 16:13:54 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768000432; bh=P0JEZg1M/f/3anzJXUSstj3ize0NLBPbRmnZy0dDVVE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XvDwMaTvD+jYjLSIBPB1DigfZ2n8yuDKBJZOLr7b+SpJ5w6nOwCtCSgwDMUUX/p3t tMMpFOhwPEz2qxxDNCqUUHmSHRl95kN81C2hRLdm9FG1i9x6YzPH5E4vIscAbBOkRE QV3avvwnHAn5D3NUXuS03fDgKjCo7qaFJuCHSLbQGMuBrNPuwajR/fJC+PavdeaPXk 3muPczXpWm/hb3+z+6b7OLqtmPUp2CLWS6M8YO1ZiyZ1Y37dhx5Mo0sFQe+1VyH7pB E+HJE0x+Bu6CBKm61/DyUq6a+oijKTNU4W1017B4EcTt0nCot1Sm1uOREJUxH/2dPv BlvJQzjlqf0ww== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 0C78E69251; Fri, 9 Jan 2026 16:13:52 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id LFCC2K2r1hDH; Fri, 9 Jan 2026 16:13:51 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768000429; bh=24hOfhL4/s4bImaUcjyuLk7BaQXMwb67r1YV0rqrNpA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P3XC3KViaPg7YUJjkjBWGZwHgwMoj1VplDsn7T6hvcNJifsI9S69eYSDx2smPNdni SwWt9O42R6ItDGTYUal2UUGHnSCh/W1m2uenYGRbnUyBl8DDbfRKOPgdhXK02GsgcD 5hTdZXzx7/bLk/gYoZiiXadR6uRW3ofM29EOSVKtEp660cED3vmVvZ19+WlR9bN13o OVK6ZB0H3xNH+hXeLVwP1i/ib8hB3j6f/VTPzfDiv7Mbp3OEdxx4rW8wd4Pg66B6F8 011c3BULn2+jpJDXsaVax8lEtnzM+HxQZcooE3Wgk30CCkg3MEWwubInDMT9Eiivqk W5l1xK9KAwILg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id F1EC469258; Fri, 9 Jan 2026 16:13:48 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Fri, 9 Jan 2026 16:11:32 -0700 Message-ID: <20260109231151.4056804-24-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260109231151.4056804-1-sjg@u-boot.org> References: <20260109231151.4056804-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: EBRFR6JVYQSVAFBILTBRSHB7LYGF2POI X-Message-ID-Hash: EBRFR6JVYQSVAFBILTBRSHB7LYGF2POI X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt , Simon Glass , "Claude Opus 4 . 5" X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 23/32] boot: pxe: Use IS_ENABLED() for CONFIG_OF_LIBFDT_OVERLAY List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Replace #ifdef CONFIG_OF_LIBFDT_OVERLAY with IS_ENABLED() to allow the compiler to check the code even when the option is disabled. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- boot/pxe_utils.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/boot/pxe_utils.c b/boot/pxe_utils.c index 2b1fe45c86d..2084bb3e9bf 100644 --- a/boot/pxe_utils.c +++ b/boot/pxe_utils.c @@ -303,7 +303,6 @@ static void label_boot_kaslrseed(struct pxe_context *ctx) * @ctx: PXE context * @label: Label to process */ -#ifdef CONFIG_OF_LIBFDT_OVERLAY static void label_boot_fdtoverlay(struct pxe_context *ctx, struct pxe_label *label) { @@ -383,7 +382,6 @@ skip_overlay: free(overlayfile); } while ((fdtoverlay = strstr(fdtoverlay, " "))); } -#endif const char *pxe_get_fdt_fallback(struct pxe_label *label, ulong kern_addr) {