Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5602498imm; Mon, 23 Jul 2018 02:42:18 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfd6FqWmRFyle+XpbTZp1sdxBxbRgBrbhdVaOFTqIut9E3VxRrfpwSX1nlleebEZfwMKRYy X-Received: by 2002:a17:902:201:: with SMTP id 1-v6mr12393846plc.310.1532338938283; Mon, 23 Jul 2018 02:42:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532338938; cv=none; d=google.com; s=arc-20160816; b=lYr1jLk+yw1cti9wEf8BwNbiKl73/jKhs1Xz6WOwrX2o/GYG2M8hg7tLoI4Nx4uSxr 2rNfzHCvJNbN0HvsYHodKiAAnWRZkCZQk4idwwPpzEXVT6WN7WTkxQmU0kWSWR+gcb8u 7fq/TzbLFHrAZdx1umx2n8j60dceHMwniEyMosN+YypPAPuiwcx0iF1f0/SMtWGm9mv1 N6rxWdJ+PoMUcEr+RnvCtp895xw11Df9DgS+h2ULCUkrY0/dA6Frh1Jh/9msjXuRluYy Iz45bRtE+aEY9QyDeyFMPERcnVsH4E/JWbvoke4cplxqJaBC1+NFIkZbKJ+Yn245lFNu 7CRQ== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=ii6jd1dtN52k4ku5U0TzwkqNY9XR9an336y4nQJKES0=; b=ljBfjrOFtYgVYNftnvEBJjtMFUFKYrLTDAuAz0mNLCCySeB8z7ROjsGz8BjVeV5s1y oyija18q/Xt0uiPSD+mkrRi+Yx1yy5nmwwSzLDCYqnCm/jKv9WNHG1c+g8izp4W54AcQ E9+Ntlwk2ZpixpIkzZoGfoFUgSDecxgX6LDnPVLWk6skpSykVXyJCAEx8CZqdbfpuWI+ 3EYGuk6IX7t1WOQOPZPiCRkLGtwYRW/HLAxKQi78trMLSGlLU32C0jkvuvVCz7+pnjiV 8gDk4cvPHONFM3Bf8BCV+LYPvtCFhxweipFpi22EFHolFjrr0WfuV87FXgg3r0pKJvIK X3Ag== 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 g87-v6si8896097pfg.225.2018.07.23.02.42.03; Mon, 23 Jul 2018 02:42:18 -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 S2388220AbeGWKla convert rfc822-to-8bit (ORCPT + 99 others); Mon, 23 Jul 2018 06:41:30 -0400 Received: from mail.bootlin.com ([62.4.15.54]:46157 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388175AbeGWKl3 (ORCPT ); Mon, 23 Jul 2018 06:41:29 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id A9DF820756; Mon, 23 Jul 2018 11:41:07 +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 bbrezillon (AAubervilliers-681-1-78-122.w90-88.abo.wanadoo.fr [90.88.20.122]) by mail.bootlin.com (Postfix) with ESMTPSA id 61EA3206A6; Mon, 23 Jul 2018 11:41:07 +0200 (CEST) Date: Mon, 23 Jul 2018 11:41:07 +0200 From: Boris Brezillon To: Arnd Bergmann Cc: Randy Dunlap , Anders Roxell , Miquel Raynal , Linux Kernel Mailing List , Rob Herring , DTML Subject: Re: [PATCH] drivers/memory/Kconfig: Add CONFIG_OF dependency Message-ID: <20180723114107.664164d2@bbrezillon> In-Reply-To: References: <20180721200049.7553-1-anders.roxell@linaro.org> <20180722082939.2de739f1@bbrezillon> 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 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. Thanks for your feedback. Boris