Commit 06c10884 authored by Russell King's avatar Russell King

ARM: relax ioremap prohibition (309caa9c) for -final and -stable

... but produce a big warning about the problem as encouragement
for people to fix their drivers.
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 841f48a8
...@@ -204,8 +204,12 @@ void __iomem * __arm_ioremap_pfn_caller(unsigned long pfn, ...@@ -204,8 +204,12 @@ void __iomem * __arm_ioremap_pfn_caller(unsigned long pfn,
/* /*
* Don't allow RAM to be mapped - this causes problems with ARMv6+ * Don't allow RAM to be mapped - this causes problems with ARMv6+
*/ */
if (WARN_ON(pfn_valid(pfn))) if (pfn_valid(pfn)) {
return NULL; printk(KERN_WARNING "BUG: Your driver calls ioremap() on system memory. This leads\n"
KERN_WARNING "to architecturally unpredictable behaviour on ARMv6+, and ioremap()\n"
KERN_WARNING "will fail in the next kernel release. Please fix your driver.\n");
WARN_ON(1);
}
type = get_mem_type(mtype); type = get_mem_type(mtype);
if (!type) if (!type)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment