[PA-RISC] Remove warning from pci.c
authorMatthew Wilcox <matthew@wil.cx>
Wed, 4 Oct 2006 19:27:45 +0000 (13:27 -0600)
committerMatthew Wilcox <willy@hera.kernel.org>
Thu, 5 Oct 2006 01:48:18 +0000 (01:48 +0000)
max() doesn't like comparing an unsigned long and a resource_size_t,
so make the local variables resource_size_t too.

Signed-off-by: Matthew Wilcox <willy@parisc-linux.org>
arch/parisc/kernel/pci.c

index d3b8fc52dfc1e130a2c9a6e621116c62ed8a74f7..199887a61c765dea150132dc9d870b9c14a0e9f6 100644 (file)
@@ -290,7 +290,7 @@ EXPORT_SYMBOL(pcibios_bus_to_resource);
 void pcibios_align_resource(void *data, struct resource *res,
                                resource_size_t size, resource_size_t alignment)
 {
-       unsigned long mask, align;
+       resource_size_t mask, align;
 
        DBG_RES("pcibios_align_resource(%s, (%p) [%lx,%lx]/%x, 0x%lx, 0x%lx)\n",
                pci_name(((struct pci_dev *) data)),