Re: [PATCH v3] resource: Downgrade "resource sanity check" warning to debug level
From: Andrew Morton
Date: Fri May 22 2026 - 22:31:41 EST
On Fri, 22 May 2026 17:01:31 -0700 Manuel Quintero Fonseca <sakunix@xxxxxxxxx> wrote:
> The "resource sanity check" warning currently triggers on certain
> systems, causing unnecessary noise in the kernel logs for users.
> Following the maintainer's suggestion, this patch downgrades the log
> level from pr_warn to pr_debug.
um, who is "the maintainer"?
hp2:/usr/src/25> grep kernel/resource.c MAINTAINERS
hp2:/usr/src/25>
> This change reduces log clutter while keeping the diagnostic
> information available for debugging purposes if needed.
>
> ...
>
> --- a/kernel/resource.c
> +++ b/kernel/resource.c
> @@ -1859,7 +1859,7 @@ int iomem_map_sanity_check(resource_size_t addr, unsigned long size)
> if (p->flags & IORESOURCE_BUSY)
> continue;
>
> - pr_warn("resource sanity check: requesting [mem %pa-%pa], which spans more than %s %pR\n",
> + pr_debug("resource sanity check: requesting [mem %pa-%pa], which spans more than %s %pR\n",
> &addr, &end, p->name, p);
> err = -1;
> break;
lgtm, thanks.