From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chen Gang Subject: Re: [PATCH] drivers: Let several drivers depends on HAS_IOMEM for 'devm_ioremap_resource' Date: Fri, 18 Jul 2014 08:36:32 +0800 Message-ID: <53C86C10.2000608@gmail.com> References: <201407130545.23004.marex@denx.de> <6823014.2plXDE9VA9@wuerfel> <53C7A819.40403@metafoo.de> <6485666.LVFO2YCEQx@wuerfel> <53C8114D.30601@nod.at> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mail-pa0-f46.google.com ([209.85.220.46]:53051 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752675AbaGRAgn (ORCPT ); Thu, 17 Jul 2014 20:36:43 -0400 In-Reply-To: <53C8114D.30601@nod.at> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Richard Weinberger , Arnd Bergmann , Lars-Peter Clausen Cc: Guenter Roeck , Greg Kroah-Hartman , dmitry.torokhov@gmail.com, linux-iio@vger.kernel.org, Benjamin Herrenschmidt , teg@jklm.no, Thierry Reding , Lennox Wu , Marek Vasut , Liqin Chen , msalter@redhat.com, linux-pwm@vger.kernel.org, devel@driverdev.osuosl.org, linux-watchdog@vger.kernel.org, linux-input@vger.kernel.org, "linux-kernel@vger.kernel.org" , knaack.h@gmx.de, Martin Schwidefsky , Mischa.Jonker@synopsys.com, jic23@kernel.org, Geert Uytterhoeven On 07/18/2014 02:09 AM, Richard Weinberger wrote: > Am 17.07.2014 12:48, schrieb Arnd Bergmann: >> AFAICT, NO_IOMEM only has a real purpose on UML these days. Could we take >> a shortcut here and make COMPILE_TEST depend on !UML? Getting random stuff >> to build on UML seems pointless to me and we special-case it in a number of >> places already. > > If UML is the only arch without io memory the dependency on !UML seems > reasonable to me. :-) > For me, if only uml left, I suggest to implement dummy functions within uml instead of let CONFIG_UML appear in generic include directory. And then remove all HAS_IOMEM and NO_IOMEM from kernel. If score sticks to NO_IOMEM, and can not remove score from kernel only because of this reason. I also suggest implement dummy functions within score itself. Thanks. -- Chen Gang Open, share, and attitude like air, water, and life which God blessed