Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932226AbaGQKjQ (ORCPT ); Thu, 17 Jul 2014 06:39:16 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:63492 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932072AbaGQKjM (ORCPT ); Thu, 17 Jul 2014 06:39:12 -0400 From: Arnd Bergmann To: Chen Gang Cc: Guenter Roeck , Richard Weinberger , Lars-Peter Clausen , 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 Subject: Re: [PATCH] drivers: Let several drivers depends on HAS_IOMEM for 'devm_ioremap_resource' Date: Thu, 17 Jul 2014 12:38:47 +0200 Message-ID: <7018119.hVYUML2rzD@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.11.0-18-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <53C7977B.9090903@gmail.com> References: <201407130545.23004.marex@denx.de> <6823014.2plXDE9VA9@wuerfel> <53C7977B.9090903@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V02:K0:iFIRNj3ddAQbqr7PPRUB2alohHah0XynX4z6sONexFn hr2bVo9GUY0D0iIVXusB9QGV4hm/4m1lo241MKaLZo8ajFjZSd 3yCs89UWqxhpCazZ9Ovw3RLj8B9ZrRHss7snKZWpR43Jy/0oi5 olisoB45mPJfNmETaywqNtXTPFntcjcziq61qq+3G8qcfKVhQv Nfywzm58S8ThLQK2QHX8b2mjBd26YDIk5TIOCKlFJ/W0imX/TR 1omXaGXcxp+f1n2u7/Q/aNzO3zFs84pFBdhykt2dcdLRpm/4eH /o9wpraZkn+bzoT6pe19lMDSFb1924EFfr5ASteVhffGBw+Sek 4Y17ratmZjhf30Y9eHEA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday 17 July 2014 17:29:31 Chen Gang wrote: > > > > COMPILE_TEST is a great tool in general, but it has its limits. > > In particular, the case for !CONFIG_IOMEM is completely obscure > > and we won't find any bugs by allowing more drivers to be built > > in those configurations, but attempting to do it would cause > > endless churn by changing each instance of 'depends on HAS_IOMEM' > > to 'depends on HAS_IOMEM || COMPILE_TEST'. > > > > Architecture members and driver members really have different tastes, > they are different roles. It really need additional discussion. > > For me, I only want to change devm_io*map*, not touch so much. But what do you gain from that? All drivers that need these functions should already 'depends on HAS_IOMEM' and if they don't, we should fix /that/ instead. I don't see this dependency as any different from a lot of others (PCI, DMAENGINE, HAVE_CLK, ...) that we use to intentionally annotate drivers that need a particular feature to be present for compilation. Do you want to do the same hack to those? > Welcome any other members' idea or suggestions. > > Note that s390 no has gained support for IOMEM, tile has it most > > of the time (when PCI is enabled, so you get it in half the > > test builds already), score should set HAS_IOMEM and doesn't > > even have public compilers, and uml doesn't even compile in > > latest mainline. Nothing else ever sets NO_IOMEM. > > > > In latest gcc and binutils, can compile score cross compiler > successfully for building kernel (but I am not quite sure whether the > compiling result are really OK, but I guess so). Ok. Would you mind sending a patch that enables HAS_IOMEM on score? > And next (maybe after finish allmodconfig for microblaze), I shall try > to let uml pass allmodconfig for linux-next tree. That is a fair goal, but it seems better to do that by ensuring we don't build any code that tries to call the MMIO functions rather than trying to make them build. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/