Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4276782imm; Sat, 21 Jul 2018 14:54:55 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcUw71hkjQVPqaJ9CbHe1x972wN7HIsCxCU6Ng8KtNwH7+7G9STnJfqGUgxj28FCJFGCdQ9 X-Received: by 2002:a62:3001:: with SMTP id w1-v6mr7299161pfw.19.1532210095892; Sat, 21 Jul 2018 14:54:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532210095; cv=none; d=google.com; s=arc-20160816; b=V8Cq7Epf3IRe+Nl/72zxq4JJMgzansKuVuT+zMt1gKQWDa+yJDyUyzw8Abwnilh8tJ Zg54POW9lyAWXhO+OVpW4rTQPrsXhVcU1YyEzIoNVq68/Rz1C1uLk+5jZAxsiEZfo6h1 4wiYBvaCASGkcxa9YrBLSxeJbCCXQugSpzKiIzLL5gktv7JxZMqRgsu3uaLXyZcb84Zx qgYstgkLHBUsHPJ8lbyyjVanbrwfHEmzKg4sPjwh4j93PDLhWeByF9Nc5b2faM346YQU kKydY6XGiq02lP2o1aIKokBGmeXWMLvvvdCJl34bINWj0U883MGP06/8ER5nIsHmtfVQ QIoQ== 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=Kg7riErWsPeGTSsN6u7PcBYS0Nshft/icJK1Qd94QuU=; b=K7aVwZCyw30Wk+J2RMa4HB5HEF4tuIl0W1rv27iI8DQeFEogKSkN+bkiJ5GqsNZ2h3 vpLfNfQfTYO41SCAZDnCuXQcKPowZWBDNAAHADv0fPeNnx9mtLI95d0w7sp6z4wtQdYO kyb2FbW41NeIACE05+5IBczTV5yenlA0STQhshO53IVpBSVMhlXhPOpDN/dCzFQnaAxV 9vTeDrrm5L/UB6SEBJ3RR2rmgVHa33iCIPp8ApH5l8SkihOta0uMRFgmgNFS9MFWMzlR Q8v8BoonkcDvMY9zuWuf6G//lb4502g/CaUiO41EAAFZ/56ciV5wOEVOunYP91qnwuXO Z0JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=MbIoSiS7; 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 g27-v6si4788133pgm.208.2018.07.21.14.54.39; Sat, 21 Jul 2018 14:54:55 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=MbIoSiS7; 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 S1728241AbeGUWsC (ORCPT + 99 others); Sat, 21 Jul 2018 18:48:02 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:58650 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728174AbeGUWsC (ORCPT ); Sat, 21 Jul 2018 18:48:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Kg7riErWsPeGTSsN6u7PcBYS0Nshft/icJK1Qd94QuU=; b=MbIoSiS7iXDoa15fNUfP5f0aX WmSEHFBr+RcC50qED0/qWqvs12G8AZ+QiHS5HCHwsB6ROMH1TDqXvC74o5T61xncUbngQ0kpY35gK 5uyO9116t7nrPoV8TqWIxgLD7/PifxapsHZzqwA7VeF7s7RIqsHHz6OTv2GWXH2P9lFQFXPwmF6Yg IuE0/RDPF0J4O37eDEGydgoxUNTJN8dK9Iqvup/Q1Z5SS3TM1VMPeY0BjN4vXyPUwzBbO0lugEBIy kDiZ2gBAIxtHAxsuHbdEQbKx8M+nZjSfwt3g4AWw298mvX80JAFkiDiJv3ibkMydbpayh/3jgUz88 LWuhB+LMQ==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fgzoy-0007da-Dv; Sat, 21 Jul 2018 21:53:48 +0000 Subject: Re: [PATCH] drivers/memory/Kconfig: Add CONFIG_OF dependency To: Anders Roxell , miquel.raynal@bootlin.com, boris.brezillon@bootlin.com Cc: linux-kernel@vger.kernel.org References: <20180721200049.7553-1-anders.roxell@linaro.org> From: Randy Dunlap Message-ID: Date: Sat, 21 Jul 2018 14:53:47 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180721200049.7553-1-anders.roxell@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > > Make JZ4780_NEMC depend on OF. > > Fixes: ab99e11062c1 ("memory: jz4780-nemc: Allow selection of this driver when COMPILE_TEST=y") > Reported-by: Randy Dunlap > Signed-off-by: Anders Roxell Acked-by: Randy Dunlap Thanks. > --- > drivers/memory/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/memory/Kconfig b/drivers/memory/Kconfig > index a642552dfdc9..63389f075f1d 100644 > --- a/drivers/memory/Kconfig > +++ b/drivers/memory/Kconfig > @@ -123,7 +123,7 @@ config JZ4780_NEMC > bool "Ingenic JZ4780 SoC NEMC driver" > default y > depends on MACH_JZ4780 || COMPILE_TEST > - depends on HAS_IOMEM > + depends on HAS_IOMEM && OF > help > This driver is for the NAND/External Memory Controller (NEMC) in > the Ingenic JZ4780. This controller is used to handle external > -- ~Randy