From mboxrd@z Thu Jan 1 00:00:00 1970 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 E7898C6FA8E for ; Fri, 24 Feb 2023 18:20:31 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 98F4085BE2; Fri, 24 Feb 2023 19:19:56 +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="X7pSgT5U"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9441285BA8; Fri, 24 Feb 2023 19:11:30 +0100 (CET) Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) (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 B240C85B91 for ; Fri, 24 Feb 2023 19:11:15 +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-pl1-x629.google.com with SMTP id h14so299848plf.10 for ; Fri, 24 Feb 2023 10:11:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=X7pSgT5UOEU82EWiizq9BqWl7ePUN8qMA71sM0qTaTeboVLtSjcGFGk8pkGC2tEIOv mjTvDr6wsK8FvZLxgY4+ImekL8l4gKYf8RrBUEVzK7zwidw2oBGQh5eyam+m+RUohdyg B8qAOi42cx3CbhXmqFRU5iwmoBimw5pqBLeq1dadYfPl6OTYB4w6HHcJleFYVkaHyHtK jtHXml/shQVoyjhrqdqYwXqp2sKsfGl/ktO//bbxXfRleKYDE/TPV8YLndV4gK5baXi0 NHhBksUXh/yGxppcVleDGTAV/oVOUxF3RzYMs4GHfzZ2cQ9EyTfVDWYM7NRJMGy+wRaD M26A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=AeP1ngOv/qK2wbTc3OQA/SkNzkYFZ2Hdu/4gxpLaysJCk5iaKxrf76RfVecOvKFLVc tUIZLkuqNb3wxszyvpOAJGeOx5Cj4H0TTi2uFYjQ3NPRDS6v3+r4TyQO+aYqwhTkmKaG DqRX6qNu6Wdr1hvHsPbpjscjGOsoAWuHRd4a0BmYagUn/YonypIofHxgah50NQN9q/5H w3zwA1jToVIEzrlOBrfV/z2+wTYik8vPyTbNIkmem9Cy8aogGbf17i1IekLG0rXau2vH 5dvhWypiJ3DxpQ4ITcS+qxNgxATBq9C/yyVEvtQnmelS2bCaO0WuYTFrccgimsPvVJ8d CM2g== X-Gm-Message-State: AO0yUKWBiFWVpvS080ebz48JwtMg9l+IQWGi0bqGgLWYQvj6YTzxD/mv y7xLzRWKkD5EC11eTD1ym9s= X-Google-Smtp-Source: AK7set8vahgRopsy1xg5iakINCj1hupZDNdCKkBk+NCMtdvHRhbM7AP1Smlr0acD/BjaXkgNkJPIqA== X-Received: by 2002:a17:902:e80f:b0:19b:afb:b92e with SMTP id u15-20020a170902e80f00b0019b0afbb92emr21337072plg.40.1677262273824; Fri, 24 Feb 2023 10:11:13 -0800 (PST) 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 o1-20020a170902bcc100b0019c922911a2sm7513957pls.40.2023.02.24.10.11.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Feb 2023 10:11:13 -0800 (PST) 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 v2 12/26] ofnode: fdt_support definitions needed if OF_CONTROL is enabled Date: Fri, 24 Feb 2023 10:10:33 -0800 Message-Id: <20230224181047.2775829-13-troykiskyboundary@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230224181047.2775829-1-troykiskyboundary@gmail.com> References: <20230224181047.2775829-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.6 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