Re: [PATCH 2/3 v3] resource: Add new flag IORESOURCE_MEM_WARN

From: Ingo Molnar
Date: Tue Feb 24 2015 - 04:07:56 EST



* Boaz Harrosh <boaz@xxxxxxxxxxxxx> wrote:

> --- a/kernel/resource.c
> +++ b/kernel/resource.c
> @@ -1075,8 +1075,13 @@ struct resource * __request_region(struct resource *parent,
> break;
> if (conflict != parent) {
> parent = conflict;
> - if (!(conflict->flags & IORESOURCE_BUSY))
> + if (!(conflict->flags & IORESOURCE_BUSY)) {
> + if (conflict->flags & IORESOURCE_MEM_WARN)
> + pr_warn("request unknown region [mem %#010llx-%#010llx] %s\n",
> + conflict->start, conflict->end,
> + conflict->name);

Maybe:

'request region with unknown memory type [mem ...]'?

The driver (we hope!) very well knows about the region so
it's not totally unknown.

Thanks,

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