lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <53C288F0.3070001@metafoo.de>
Date:	Sun, 13 Jul 2014 15:26:08 +0200
From:	Lars-Peter Clausen <lars@...afoo.de>
To:	Richard Weinberger <richard@....at>
CC:	Lennox Wu <lennox.wu@...il.com>, Marek Vasut <marex@...x.de>,
	Chen Gang <gang.chen.5i5j@...il.com>,
	Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	dmitry.torokhov@...il.com, thierry.reding@...il.com,
	jic23@...nel.org, wim@...ana.be,
	Benjamin Herrenschmidt <benh@...nel.crashing.org>,
	kys@...rosoft.com, Martin Schwidefsky <schwidefsky@...ibm.com>,
	teg@...m.no, Mischa.Jonker@...opsys.com, msalter@...hat.com,
	knaack.h@....de, rdunlap@...radead.org,
	linux-input@...r.kernel.org, linux-pwm@...r.kernel.org,
	linux-iio@...r.kernel.org, devel@...verdev.osuosl.org,
	linux-watchdog@...r.kernel.org, Liqin Chen <liqin.linux@...il.com>
Subject: Re: [PATCH] drivers: Let several drivers depends on HAS_IOMEM for
 'devm_ioremap_resource'

On 07/13/2014 11:45 AM, Richard Weinberger wrote:
> Am 13.07.2014 11:27, schrieb Lennox Wu:
>> As I said before, some configurations don't make sense.
>
> If such a configuration can be achieved using allmod/yesconfig it has to be fixed.
> Chen's fixes seem reasonable as not all architectures support iomem.

Maybe we should stub out ioremap() and friends when COMPILE_TEST is enabled to 
avoid these linker errors. That's in my opinion better than turning most of the 
'depends on COMPILE_TEST' into 'depends on COMPILE_TEST && HAS_IOMEM'. The 
issue comes up quite a lot and it is often overlooked when adding a driver that 
can be build when COMPILE_TEST is enabled.

- Lars

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ