Message ID | 1340222160.77018.19.camel@localhost.localdomain |
---|---|
State | Accepted |
Headers | show |
On Wed, Jun 20, 2012 at 1:56 PM, Nikhil P Rao <nikhil.rao@intel.com> wrote: > size parameter of _pci_assign_resource() needs to be > of type resource_size_t rather than int > > Signed-off-by: Nikhil P Rao <nikhil.rao@intel.com> > --- > drivers/pci/setup-res.c | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/drivers/pci/setup-res.c b/drivers/pci/setup-res.c > index eea85da..9f6bbec 100644 > --- a/drivers/pci/setup-res.c > +++ b/drivers/pci/setup-res.c > @@ -206,7 +206,8 @@ static int pci_revert_fw_address(struct resource *res, struct pci_dev *dev, > return ret; > } > > -static int _pci_assign_resource(struct pci_dev *dev, int resno, int size, resource_size_t min_align) > +static int _pci_assign_resource(struct pci_dev *dev, int resno, > + resource_size_t size, resource_size_t min_align) > { > struct resource *res = dev->resource + resno; > struct pci_bus *bus; I applied this, thanks! Sorry it took so long. Bjorn -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/pci/setup-res.c b/drivers/pci/setup-res.c index eea85da..9f6bbec 100644 --- a/drivers/pci/setup-res.c +++ b/drivers/pci/setup-res.c @@ -206,7 +206,8 @@ static int pci_revert_fw_address(struct resource *res, struct pci_dev *dev, return ret; } -static int _pci_assign_resource(struct pci_dev *dev, int resno, int size, resource_size_t min_align) +static int _pci_assign_resource(struct pci_dev *dev, int resno, + resource_size_t size, resource_size_t min_align) { struct resource *res = dev->resource + resno; struct pci_bus *bus;
size parameter of _pci_assign_resource() needs to be of type resource_size_t rather than int Signed-off-by: Nikhil P Rao <nikhil.rao@intel.com> --- drivers/pci/setup-res.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)