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

From: Boaz Harrosh
Date: Tue Feb 24 2015 - 04:10:06 EST


On 02/24/2015 11:07 AM, Ingo Molnar wrote:
>
> * 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.
>

OK makes sense I will fix that too

> 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/