Received: by 10.223.185.116 with SMTP id b49csp3402919wrg; Sun, 18 Feb 2018 22:26:12 -0800 (PST) X-Google-Smtp-Source: AH8x225Hnqr1+29kT8iY2ogLHAOWk3AqHHd7259KAYXEFP247jA/V+dmhOQts1TFACV+Es/LbRyk X-Received: by 10.99.117.1 with SMTP id q1mr11504454pgc.350.1519021572544; Sun, 18 Feb 2018 22:26:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519021572; cv=none; d=google.com; s=arc-20160816; b=rvdd7ZUEzCa0U0UWC6foeUpy1MVKxuFiIuF7tOGM6d5lcKcsNni+Jnw9ZOvnWmv10X kfWSS4SQwPCa9br6E9/mTp7udYirw+pFob7WlSh0mSIITxj8EGETkjXjP1od1FcHygLh /Iu4HMV1v6Rk4kuksjQPXduoPGuwqR6om2v1DV1VS+xiLC0xzpbwsjxSEjpPKeVwN6F6 pGE8imPjJnyGn/VnCyz4iEWQ6gAS/Ony6W5vEmXhSk6oYwyL6Y7QVMjk26Y0Tyq6jI7Q iuAJq061wUtUv4d6Wo9gk6gr1mrngH2tKiHWkw2dcaDMwwLc3QLSSlDylRncsdp85CP7 CKrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=X40tCLW6pmxkA14L1xjWDSfFAW4W8L20pcpKcAkr0PM=; b=tzny0G6XtPbgHnC3RQVmkLBJR6rya0NUUS52+xlVjVsAO8Iiov5ye0yVtnyls3G2AG jjZJSsO4PagWCCoPcm8IhP1O27F3fJ7HfCtSVxpdjvlOKN9d0xQrf/wCOr5Nv01Maccv 4XKlKpeQe7MRDC9T3gf5EQjwl+oKLEfSXDZff2m4a69VVulDG+8JvZj8rCVOPRo8ycUT 42mlIPbxJFVq9aeDOu82c1feRnCOewCnRMhpgtq9OzYRghY33rwH3RKUuWOdNZuGhLg0 UsFld8WI6rZngKWeyDKaku+N+2tsXTg6rqwfJobBw6Q2nKFum6rtW8es/woARLx1aAWp ymmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=R4cBVXsX; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s1si7133758pgq.180.2018.02.18.22.25.47; Sun, 18 Feb 2018 22:26:12 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=R4cBVXsX; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751406AbeBSGYo (ORCPT + 99 others); Mon, 19 Feb 2018 01:24:44 -0500 Received: from mail-it0-f65.google.com ([209.85.214.65]:51812 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750988AbeBSGYn (ORCPT ); Mon, 19 Feb 2018 01:24:43 -0500 Received: by mail-it0-f65.google.com with SMTP id o9so3987664itc.1; Sun, 18 Feb 2018 22:24:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=X40tCLW6pmxkA14L1xjWDSfFAW4W8L20pcpKcAkr0PM=; b=R4cBVXsXQVLdWWJDVG0GsKaLnKqERtPukRhU2QDnMXmZ0DjkXrfsQ5PWq6vd0cHQ5B 7ECWhwfnsih7U2UQY/taU93TkhXL9cjZkaDORYF/yc6ptvCUhhq6YrEeEZqhUQpeHdMw 43qTaHLzr4k0f6NhD2t8KPYMbeSj2hevYv9usP1kbQILfuY7TJ8AkOdV79T1vxipB/YW NUXFPxGj7M4gmZ52vRa237sG5Ba/CXkVu6OwkbMcS/SdGifqdmYJtk/f1hB20CyuC8jB eLzVJyJUz0fj1+7q+42mk2mTm30SgXqknEO+w8xJngso9MYZwKyA7bxi40x23BtkTw6e XPnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=X40tCLW6pmxkA14L1xjWDSfFAW4W8L20pcpKcAkr0PM=; b=fUQDAYqxzqqjC+9QU5DmPZj1x2V05DTXAI7n1TVy49tWibDO1PYFb6VMfK0zrWm+vj DzlB/sjp803dy+6kmXVRJoa2wPlF6K765HUpW2fIhBq9KNvc/qTTaco5UM2g01BdjRev psf1a44gBChoIljHAsZI+ylBPlhC1T423xQFbYYXdfzhyASX0tmba//y5wb3oi82EYeJ GK9XzK/2fDLKhMr3c1n3N984LBM67PKBjt03eDeMKnNbkFA3D49KQwDXXriPb8egSEKa vsQza26V1ALeS1NRbqBuPBoM78EnGIjvpFNWI22T1aaonPNgFe+sxaHJ2R5rQg+CXB9W 8mUQ== X-Gm-Message-State: APf1xPAC8OBeA9wRT1Gzr6Rq9lUI5ZIT5Dvu6cRyDR/1+Thl7SyBZmD0 lComDswWleanfuK2vXhLeBU= X-Received: by 10.36.213.212 with SMTP id a203mr17731638itg.86.1519021482328; Sun, 18 Feb 2018 22:24:42 -0800 (PST) Received: from [192.168.1.70] (c-73-93-215-6.hsd1.ca.comcast.net. [73.93.215.6]) by smtp.gmail.com with ESMTPSA id e63sm11527716ioj.85.2018.02.18.22.24.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Feb 2018 22:24:41 -0800 (PST) Subject: Re: [PATCH] of: Kconfig: OF_OVERLAY, select OF_EARLY_FLATTREE To: Rob Herring Cc: Pantelis Antoniou , Pantelis Antoniou , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , Geert Uytterhoeven References: <1519000156-14319-1-git-send-email-frowand.list@gmail.com> From: Frank Rowand Message-ID: <300becd6-db35-59e6-1b81-6b1940070df0@gmail.com> Date: Sun, 18 Feb 2018 22:24:40 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/18/18 17:46, Rob Herring wrote: > 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? Making sure I'm understanding... So you want to remove OF_EARLY_FLATTREE and convert the current users of it to OF_FLATTREE? I don't see any way to directly configure OF_FLATTREE and I don't see any Kconfig file selecting it, other than drivers/of/Kconfig which selects OF_FLATTREE from OF_EARLY_FLATTREE. So as far as I can tell, the two config options are essentially a single config option. Meaning that either one could be replaced by the other. Changing all to OF_FLATTREE will touch more files and thus will be a bit more obtrusive. It looks like it would take two releases to avoid a flag day change. Changing all to OF_EARLY_FLATTREE can be done in a single release. I can create a patch set whichever way you prefer. -Frank