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 01658C636D7 for ; Wed, 22 Feb 2023 01:41:04 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3815085AB2; Wed, 22 Feb 2023 02:39:42 +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="boUG6G6B"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 68DC485A7D; Wed, 22 Feb 2023 02:39:01 +0100 (CET) Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) (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 ECCF385A82 for ; Wed, 22 Feb 2023 02:38:54 +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-x42b.google.com with SMTP id s15so2095590pfg.3 for ; Tue, 21 Feb 2023 17:38:54 -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=JxbV7olsLPfXRwHXXUUSbi7YPw6V9tR7QuRAqKNXYlo=; b=boUG6G6BwYBTpxVfZuDDzndoXk5KX+/TAYWChWHgjvmPQAsC4iFEjfJnpvRNjjCuXd cexG1ov+iexHob+3f51TFupW6Xorkjzw43TWldb/fZ6NMKf0zvg40a+J0KL+nF02hfGT mFIJRq2xjOPtmpN7b9USH0TE+RaeJo+VbDtIpXpYDyywM/FJq9gLs6Tuv2s5qYYf3/xw 1Hd5rrxzQDB9LrangXYDCkChr3lrikjimBF0p7oP9MxZGxCkOyb57uNZqbfJV7ohlUrT bkJySVQMQ+pCbG/OxV2z4M+DL2q09faICPwedA1fIn/MmLtchgWohWX+8EeTgCREvgot reNQ== 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=JxbV7olsLPfXRwHXXUUSbi7YPw6V9tR7QuRAqKNXYlo=; b=lAip46S0G9O5AoNFHZIyrNqv15WYxh+JxT4Zt6ysI6nVK9KIdC1weoKv7rtlcnQJcP Q4eiE2jaqEa2Jdvm9v/RA/nfqRn9UUszKFTfg2GxpYoojkbYdvNuF7B+UfYCWtBIJD1Y r6z/+72nahLxPMXgZRLcPvZ5ub+6gqZjxBitFChbjb/QlKei1H/gQzzOCH6VVWIdmusy cm4xoZ/lntI6Rnc2Rwr0BXaXOCZGbHCRpDg5kamR3lQhrLa+M9/yW2PrHJK5aMcYy9dA jReD6aE5tSLU3ZoQPdXTD1Aj+xPViFM/7uog9Rv/lGKkVxOTn24lT0ubLqRCEAELWgTM Ixxg== X-Gm-Message-State: AO0yUKUOd7/r1jhRYMMAhW9PbqBlCmVAsjsrkWGLUv2rI39ZiqO1oWGB 25fS2WYYOLkRD35RCJPOS5c= X-Google-Smtp-Source: AK7set8arbVJr2VtyWJvyWbuZWYstJtYVTHH3pgndbVWv6OjKk7yMBV72yoIz+UcXREh/UpDehzFVA== X-Received: by 2002:a05:6a00:409a:b0:5ad:8c9:2c9a with SMTP id bw26-20020a056a00409a00b005ad08c92c9amr5347309pfb.11.1677029933207; Tue, 21 Feb 2023 17:38:53 -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 d6-20020aa78e46000000b005accb31201fsm4200976pfr.26.2023.02.21.17.38.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 17:38:52 -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 v1 11/24] ofnode: fdt_support definitions needed if OF_CONTROL is enabled Date: Tue, 21 Feb 2023 17:38:08 -0800 Message-Id: <20230222013821.1144691-12-troykiskyboundary@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230222013821.1144691-1-troykiskyboundary@gmail.com> References: <20230222013821.1144691-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 --- 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