Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758005Ab2FTT4D (ORCPT ); Wed, 20 Jun 2012 15:56:03 -0400 Received: from mga09.intel.com ([134.134.136.24]:43226 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754415Ab2FTT4A (ORCPT ); Wed, 20 Jun 2012 15:56:00 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.67,352,1309762800"; d="scan'208";a="156168946" Subject: [PATCH] pci: 64bit resource fix in setup-res.c From: Nikhil P Rao To: linux-pci@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Jesse Barnes , Nikhil P Rao Content-Type: text/plain; charset="UTF-8" Date: Wed, 20 Jun 2012 12:56:00 -0700 Message-ID: <1340222160.77018.19.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 (2.28.3-10.el6) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1055 Lines: 32 size parameter of _pci_assign_resource() needs to be of type resource_size_t rather than int Signed-off-by: Nikhil P Rao --- 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; -- 1.7.1 -- 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/