[PATCH] pci: Fix bus resource assignment on 32 bits with 64b resources

Benjamin Herrenschmidt benh at kernel.crashing.org
Wed Dec 5 13:37:03 EST 2007


On Tue, 2007-12-04 at 17:08 +1100, Benjamin Herrenschmidt wrote:
> The current pci_assign_unassigned_resources() code doesn't work properly
> on 32 bits platforms with 64 bits resources. The main reason is the use
> of unsigned long in various places instead of resource_size_t.
> 
> This fixes it, along with some tricks to avoid casting to 64 bits on
> platforms that don't need it in every printk around.
> 
> This is a pre-requisite for making powerpc use the generic code instead of
> its own half-useful implementation.
> 
> Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>

Drop it for now, stupid warnings without 64 bits resources... I'll fix
that.

Ben.





More information about the Linuxppc-dev mailing list