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 08188C6FD19 for ; Mon, 13 Mar 2023 21:35:25 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 901B386160; Mon, 13 Mar 2023 22:32:50 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com 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=gmail.com header.i=@gmail.com header.b="FhCrQu8E"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AFE3585D68; Mon, 13 Mar 2023 22:32:24 +0100 (CET) Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 16FEA86138 for ; Mon, 13 Mar 2023 22:32:10 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=troykiskyboundary@gmail.com Received: by mail-pf1-x42d.google.com with SMTP id n16so2957132pfu.11 for ; Mon, 13 Mar 2023 14:32:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678743128; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=W4LvJi+SSXKUK2ku4W/K01aUABUPnqWUp7hLBFPrO+0=; b=FhCrQu8EZK2up7RPmY4J+nVZRrElTWEQgJWZL19JyAg5gWuNlHPM3ZWO2my0zRWGO6 k+kRY33V5FBSp8RrqAD2uAbnFVrFvz9adjvcHWe3b4S8+zRyyf/8Vdnx+aLieq8fZ944 Re9qNo9eL8gbW6iiMlzsP4i+leSknpuaicR7PL1GIi14WARINeX7H9J4ZHOVzKGfuc5I 1NbGzQ846gWpaNvmzkpKDEAgHWsuhi0KRwFGr7NHLiQ8RoAGHv078G7FZDyeFrqMIh29 2hVo4VLTmQ2slBaJ4fVHFiLTlYnyZnVAl305HIHvKFNnG3zu2qkqJzd0ayZ0zBdxEeBE I9fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678743128; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=W4LvJi+SSXKUK2ku4W/K01aUABUPnqWUp7hLBFPrO+0=; b=Me8eFG4SOM/PEc237t2xbac1gM3dvhPIol95Jpr/q8z/Jk5yHkyh/xYh12xS/tAc/S wAlQ/UHPuytP2C/7qRvic6iWCrSa2/cEZwPbJBWZBh7ciT/cite1KVC4ysGAPZ5KfCNi c1N1q0xyChf+PJAkAsF3O12ZvAnz86XrzoctorXvkWIDlwK0kiIV4ASQpiCuuH0hQRpt 59ClyEvig7WsaglLZfQOSnAE8j3GIJFObNcvkkzL6vqRckcekCAbicK7YYARV9/JXkVU IgBAmDr7FtpJo8kULXF2aMvGV83GtlXslNnYiIi0JjQ+pdBSTRp5469Ok+fam2V8H5Z9 MuOQ== X-Gm-Message-State: AO0yUKXZHmPasskuIeKLGHPr2J+WluBcKm9y1mGfm4oIfYBcCTqI89fU zs3tG2tm/cZjXlr3yo6NAyU= X-Google-Smtp-Source: AK7set/vOZtAcvQRHCiUcQ3zBP0SFOlmg0zlIAcIAFcZm201JQtcjqz8Y2yIqFCOS34FDa7KuNpr3A== X-Received: by 2002:aa7:973d:0:b0:623:60d4:91cf with SMTP id k29-20020aa7973d000000b0062360d491cfmr5006414pfg.18.1678743127963; Mon, 13 Mar 2023 14:32:07 -0700 (PDT) Received: from OS2.boundarydevices.com. (wsip-184-189-120-117.oc.oc.cox.net. [184.189.120.117]) by smtp.gmail.com with ESMTPSA id s24-20020aa78298000000b005d4360ed2bbsm150797pfm.197.2023.03.13.14.32.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Mar 2023 14:32:07 -0700 (PDT) From: Troy Kisky To: sjg@chromium.org, trini@konsulko.com, u-boot@lists.denx.de Cc: gary.bisson@lairdconnect.com, Troy Kisky , =?UTF-8?q?Marek=20Beh=C3=BAn?= Subject: [PATCH v3 13/23] ofnode: fdt_support definitions needed if OF_CONTROL is enabled Date: Mon, 13 Mar 2023 14:31:35 -0700 Message-Id: <20230313213146.1775650-14-troykiskyboundary@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230313213146.1775650-1-troykiskyboundary@gmail.com> References: <20230313213146.1775650-1-troykiskyboundary@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 With the use of CONFIG_IS_ENABLED in code, instead of at the preprocessor level, these defines are still needed if OF_CONTROL is enabled. Signed-off-by: Troy Kisky Reviewed-by: Simon Glass --- (no changes since v1) include/fdt_support.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/fdt_support.h b/include/fdt_support.h index 5638bd4f165..eeb83e6251d 100644 --- a/include/fdt_support.h +++ b/include/fdt_support.h @@ -7,7 +7,8 @@ #ifndef __FDT_SUPPORT_H #define __FDT_SUPPORT_H -#if defined(CONFIG_OF_LIBFDT) && !defined(USE_HOSTCC) +#if (defined(CONFIG_OF_LIBFDT) || defined(CONFIG_OF_CONTROL)) && \ + !defined(USE_HOSTCC) #include #include -- 2.34.1