Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PCI: Change pci_bus_alloc_resource() type_mask to unsigned long

The pci_bus_alloc_resource() "type_mask" parameter is used to compare with
the "flags" member of a struct resource, so it should be the same type,
namely "unsigned long".

No functional change because all current IORESOURCE_* flags fit in 32 bits.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>

+3 -3
+2 -2
drivers/pci/bus.c
··· 132 132 133 133 static int pci_bus_alloc_from_region(struct pci_bus *bus, struct resource *res, 134 134 resource_size_t size, resource_size_t align, 135 - resource_size_t min, unsigned int type_mask, 135 + resource_size_t min, unsigned long type_mask, 136 136 resource_size_t (*alignf)(void *, 137 137 const struct resource *, 138 138 resource_size_t, ··· 200 200 */ 201 201 int pci_bus_alloc_resource(struct pci_bus *bus, struct resource *res, 202 202 resource_size_t size, resource_size_t align, 203 - resource_size_t min, unsigned int type_mask, 203 + resource_size_t min, unsigned long type_mask, 204 204 resource_size_t (*alignf)(void *, 205 205 const struct resource *, 206 206 resource_size_t,
+1 -1
include/linux/pci.h
··· 1066 1066 int __must_check pci_bus_alloc_resource(struct pci_bus *bus, 1067 1067 struct resource *res, resource_size_t size, 1068 1068 resource_size_t align, resource_size_t min, 1069 - unsigned int type_mask, 1069 + unsigned long type_mask, 1070 1070 resource_size_t (*alignf)(void *, 1071 1071 const struct resource *, 1072 1072 resource_size_t,