On 25-06-08 23:16, Andrew Morton wrote:
quoted text > On Wed, 25 Jun 2008 19:58:20 +0200
> Rene Herman <rene.herman@keyaccess.nl> wrote:
>
>> + unsigned int type;
>> +
>> + type = pci_resource_flags(pdev, i) &
>> + (IORESOURCE_IO | IORESOURCE_MEM);
>
> pci_resource_flags() returns an unsigned long.
>
> But I think you're right and resource.flags is wrong. Because there's
> no way in which we'll ever be able to use bits 32-63 of that field
> anyway.
>
> I suppose that Someone(tm) should convert resource.flags to a u32 or
> something. Minor issue.
Yes, did notice but pnp_get_resource() then takes those same flags as an
unsigned int -- had to pick one or the other and "the smallest one" then
seemed best...
Rene.
--
unsubscribe notice To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Messages in current thread:
Re: [PATCH] PNP: have quirk_system_pci_resources() include i... , Rene Herman , (Wed Jun 25, 5:46 pm)