Thread (70 messages) 70 messages, 11 authors, 2014-07-31

Re: [PATCH] drivers: Let several drivers depends on HAS_IOMEM for 'devm_ioremap_resource'

flat view

From: Chen Gang <hidden>
Date: 2014-07-18 10:44:25
Also in: linux-iio, linux-pwm, linux-watchdog, lkml

On 07/18/2014 03:35 PM, Richard Weinberger wrote:
Am 18.07.2014 02:36, schrieb Chen Gang:
quoted
On 07/18/2014 02:09 AM, Richard Weinberger wrote:
quoted
Am 17.07.2014 12:48, schrieb Arnd Bergmann:
quoted
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.
Erm, this is something completely different.
I thought we're focusing on COMPILE_TEST?
COMPILE_TEST is none-architecture specific, but UML is. So in generic
include folder, if we're focusing on choosing whether COMPILE_TEST or
UML, for me, I will choose COMPILE_TEST.

If we're not only focusing on COMPILE_TEST, for me, if something only
depend on one architecture, I'd like to put them under "arch/*/" folder.

Especially, after that, we can remove all HAS_IOMEM and NO_IOMEM, nobody
has to think of them again. :-)


Thanks.
-- 
Chen Gang

Open, share, and attitude like air, water, and life which God blessed
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help