|
@@ -194,8 +194,8 @@ static void __iomem *__ioremap_caller(resource_size_t phys_addr,
|
|
* Check if the request spans more than any BAR in the iomem resource
|
|
* Check if the request spans more than any BAR in the iomem resource
|
|
* tree.
|
|
* tree.
|
|
*/
|
|
*/
|
|
- WARN_ONCE(iomem_map_sanity_check(unaligned_phys_addr, unaligned_size),
|
|
|
|
- KERN_INFO "Info: mapping multiple BARs. Your kernel is fine.");
|
|
|
|
|
|
+ if (iomem_map_sanity_check(unaligned_phys_addr, unaligned_size))
|
|
|
|
+ pr_warn("caller %pS mapping multiple BARs\n", caller);
|
|
|
|
|
|
return ret_addr;
|
|
return ret_addr;
|
|
err_free_area:
|
|
err_free_area:
|