Received: by 10.223.185.116 with SMTP id b49csp3231309wrg; Sun, 18 Feb 2018 17:49:46 -0800 (PST) X-Google-Smtp-Source: AH8x225ccHbcPy//wWkW9ZnEIj1nRxn/a57aNg6Z9A4rAj2mW5dZ/urXK0UFlu7kKSHkeWqojjXI X-Received: by 2002:a17:902:b403:: with SMTP id x3-v6mr1344478plr.359.1519004986062; Sun, 18 Feb 2018 17:49:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519004986; cv=none; d=google.com; s=arc-20160816; b=NydNClz2FVpgS9vtUGGFIroNzshAo3cS6ijTsreaRiKxQprPfrF623lomUgLMjHrcT 1MHvT784HvICibAGGZ+j1/TetxdlMgTUhJ0gRDRM+nl0LhhtNvlCAA1rPJedLQqZiOWD 098ea+JYikm2VHr2jOUAfgHNM5aoKQuwaDu+w5Cex/1PheWXD7LWU+xRBIsnihrpKeT9 ZZuaR9PsMERSjuQD286+RH5aJAflhZcfH5gq/vxUPJ6XgRkhxU4F6fHEOM4gBclBqdd7 4uSZ3jFCozlH8ifoW1V4nuZ/iD6QWIVamMS5Xz5D4ekS4zNVf5Ei5qusqvd04GJxHPjO ptnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dmarc-filter :arc-authentication-results; bh=udbjFhM39xrVtVTwpCc+X3w/uTEiVATyf1k9cxGY44E=; b=hhCSDYbPso+K9hjxa4n4uienpRUzm4ah7r8ZNjXI92wCh/NGk45I8ZtExukan2TQM8 Pki1+X2SxaTkmLZQVGkt/ZSxu/fAVJZ7SB9QEcnsoaeNyJpSUzhdijwVZcHeuuj9Vy2U LBgsfBrJBMnmUDzvoC9Ww0LfdFEDtsX26ftrBZU1HymKzbz5YFQjicSqZ+38paYoJCkK vZkH13+x2FeNAAvnTjgQC8j3SQJsrSSj8ZyZAzrsrL/8d7PLIVV80xtNlc+5L2+n56l0 bviF5eiVhBR3g8Pivu8W+eeMl2VIucLdYSogorI+zRyIVQvmWMhrtqBXf+sSW+EfjWPa RGiw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w15si37743pfa.86.2018.02.18.17.48.56; Sun, 18 Feb 2018 17:49:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752055AbeBSBrJ (ORCPT + 99 others); Sun, 18 Feb 2018 20:47:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:42300 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751984AbeBSBrI (ORCPT ); Sun, 18 Feb 2018 20:47:08 -0500 Received: from mail-qk0-f174.google.com (mail-qk0-f174.google.com [209.85.220.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 697C32176F; Mon, 19 Feb 2018 01:47:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 697C32176F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=robh+dt@kernel.org Received: by mail-qk0-f174.google.com with SMTP id l23so10499618qkk.11; Sun, 18 Feb 2018 17:47:07 -0800 (PST) X-Gm-Message-State: APf1xPAlZ1fSJAy2KrFb3vmtJbuwdFMf0eer3fGZOBXhtPj0oZ9FGq8y hZYRsHKD7sBOaxgfp9V4bdHYpLxJNoo0s3SnKg== X-Received: by 10.55.133.131 with SMTP id h125mr21702972qkd.79.1519004826472; Sun, 18 Feb 2018 17:47:06 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.245.67 with HTTP; Sun, 18 Feb 2018 17:46:46 -0800 (PST) In-Reply-To: <1519000156-14319-1-git-send-email-frowand.list@gmail.com> References: <1519000156-14319-1-git-send-email-frowand.list@gmail.com> From: Rob Herring Date: Sun, 18 Feb 2018 19:46:46 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] of: Kconfig: OF_OVERLAY, select OF_EARLY_FLATTREE To: Frank Rowand Cc: Pantelis Antoniou , Pantelis Antoniou , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , Geert Uytterhoeven Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 18, 2018 at 6:29 PM, wrote: > From: Frank Rowand > > kbuild test robot reported a new warning for a recent patch: >>> drivers/of/overlay.c:832:2: error: implicit declaration of function 'of_fdt_unflatten_tree' [-Werror=implicit-function-declaration] > of_fdt_unflatten_tree(new_fdt, NULL, &overlay_root); > > The cause is that the prototype for of_fdt_unflatten_tree() in > include/linux/of_fdt.c is guarded by OF_EARLY_FLATTREE. > > This was a pre-existing problem for any overlay related caller of > of_fdt_unflatten_device_tree(), who was then going to pass the > unflattened tree to of_overlay_apply(). After the patch that triggered > this warning, all other overlay callers of of_fdt_unflatten_device_tree() > no longer exist, so adding the select to OF_OVERLAY is a sufficient fix. > > To reproduce the warning: > Use the .config attached to https://lkml.org/lkml/2018/2/17/268 > make ARCH=i386 olddefconfig > make ARCH=i386 CC=gcc-7 drivers/of/overlay.o > > Signed-off-by: Frank Rowand > --- > drivers/of/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig > index 783e0870bd22..00a6abfaaec7 100644 > --- a/drivers/of/Kconfig > +++ b/drivers/of/Kconfig > @@ -92,6 +92,7 @@ config OF_RESOLVE > config OF_OVERLAY > bool "Device Tree overlays" > select OF_DYNAMIC > + select OF_EARLY_FLATTREE If we do this, we might as well kill OF_EARLY_FLATTREE. What platform really boots from not FDT, but uses DT without overlays? Rob