Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp177287imm; Thu, 26 Jul 2018 16:27:57 -0700 (PDT) X-Google-Smtp-Source: AAOMgpep9kESFp8s1QFXUZSLhllgA0OdoZ2lAvrI3XLb4FT74/FhxnGbUK6EXVCTDPNFf2VhjnFY X-Received: by 2002:a62:3856:: with SMTP id f83-v6mr4124512pfa.48.1532647677868; Thu, 26 Jul 2018 16:27:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532647677; cv=none; d=google.com; s=arc-20160816; b=d0ygxV7kFpI162dbploBFjWhPryHdiQEDFlDQsqLsXQHp1A4rMN8BdKKj7eGf5O5fN H/aTtH6e0ezWstRcRjMpvRIIgqp0ROY1gXycnlPEta7GKdI+0g494//dgIN2jHir105b 6l3ApO3DoCiQ7LulG/GDS3hJRa2qCuCjXQZDNd4HKIFncIEnr7H9S1HHsElYh1ZDGt61 Fk7zdWkSsrI9ZmBdZjnbSVu0Yb6j4r1Re6kL+P0uvesTwGGeIKxg2QJU8OSXchFGxn7E SOtY2hDFCCPZyg5+ZLL7y/Y3CYBuJPfz4JMQ7zxtAs9hw2FvjkAwq8qZGos4/yDFDP5O +Vag== 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:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=5WXukQuRGdXBP0ZsYPjGiQKhlOmQuJg65WVFmWZATP4=; b=BZwk3Q9oWfiTu1N/6WeXM7i4tT3rDljPPiVgkY3AGGsBVQHFmgSakoR0ALw1Q3KqhA gu0XS0wXmjdCyIrsVh6/T1vuwMlBqIeqNMuIX0SMbugJPJnpC99RyXHbWTj6ftk1fnGJ pAk27uQ5RZ+k1+2zk+A3VkMuNtyZDN6c6vquWQZ7Wdq0ZKWSVVhMbcUBGrKHf6uOoHeI OQyWBNoA/h2wkfnJK5gdKm7uLI0lT3VAzUy84jdpW/Fx5opLPFEMPyVTZRP6J1xpUMV4 s/S55I2EVeqINpfGuuTU3CzNP84C8jEWjbmzNTh5jyiSaLmyPL9zmcz+3I+tOAMBzUli iBfA== 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 z19-v6si2445002pgi.388.2018.07.26.16.27.40; Thu, 26 Jul 2018 16:27:57 -0700 (PDT) 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 S1731947AbeG0ApD convert rfc822-to-8bit (ORCPT + 99 others); Thu, 26 Jul 2018 20:45:03 -0400 Received: from mail.bootlin.com ([62.4.15.54]:48792 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730610AbeG0ApC (ORCPT ); Thu, 26 Jul 2018 20:45:02 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id C8333207F4; Fri, 27 Jul 2018 01:25:58 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from xps13 (unknown [91.224.148.103]) by mail.bootlin.com (Postfix) with ESMTPSA id 3895B20618; Fri, 27 Jul 2018 01:25:58 +0200 (CEST) Date: Fri, 27 Jul 2018 01:25:57 +0200 From: Miquel Raynal To: Boris Brezillon Cc: Arnd Bergmann , Randy Dunlap , Anders Roxell , Linux Kernel Mailing List , Rob Herring , DTML Subject: Re: [PATCH] drivers/memory/Kconfig: Add CONFIG_OF dependency Message-ID: <20180727012557.72fff5e1@xps13> In-Reply-To: <20180723114107.664164d2@bbrezillon> References: <20180721200049.7553-1-anders.roxell@linaro.org> <20180722082939.2de739f1@bbrezillon> <20180723114107.664164d2@bbrezillon> Organization: Bootlin X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Boris, Boris Brezillon wrote on Mon, 23 Jul 2018 11:41:07 +0200: > On Mon, 23 Jul 2018 11:34:43 +0200 > Arnd Bergmann wrote: > > > On Sun, Jul 22, 2018 at 8:29 AM, Boris Brezillon > > wrote: > > > +Arnd, Rob and the DT ML. > > > > > > On Sat, 21 Jul 2018 14:53:47 -0700 > > > Randy Dunlap wrote: > > > > > >> On 07/21/2018 01:00 PM, Anders Roxell wrote: > > >> > JZ4780_NEMC doesn't depend on OF, and if OF isn't enabled we get this > > >> > error: > > >> > drivers/memory/jz4780-nemc.c: In function ‘jz4780_nemc_num_banks’: > > >> > drivers/memory/jz4780-nemc.c:72:10: error: implicit declaration of > > >> > function ‘of_read_number’; did you mean ‘down_read_nested’? > > >> > [-Werror=implicit-function-declaration] > > >> > bank = of_read_number(prop, 1); > > >> > ^~~~~~~~~~~~~~ > > >> > down_read_nested > > > > > > Looks like of.h defines stubs so that people can compile-test without > > > CONFIG_OF selected. Maybe we should move of_read_number() and > > > of_read_ulong() out of the #ifdef CONFIG_OF section. > > > > That seems fine, though the added dependency seems appropriate > > here as well. of_read_number() is rarely used, and for the most part in > > powerpc specific code that is guaranteed to have CONFIG_OF enabled, > > so it's not that likely to cause many more problems. > > Ok, then I'll let Miquel apply Anders' patch to the NAND tree. Applied to nand/next, thanks. Miquèl