summaryrefslogtreecommitdiffstats
path: root/drivers/pci/iov.c
diff options
context:
space:
mode:
authorCam Macdonell <cam@cs.ualberta.ca>2010-09-07 17:25:20 -0700
committerJesse Barnes <jbarnes@virtuousgeek.org>2010-09-09 13:41:25 -0700
commit0e52247a2ed1f211f0c4f682dc999610a368903f (patch)
tree32fcfe3f8590856c5a3d994604890412b164b3c6 /drivers/pci/iov.c
parentd56557af19867edb8c0e96f8e26399698a08857f (diff)
downloadblackbird-op-linux-0e52247a2ed1f211f0c4f682dc999610a368903f.tar.gz
blackbird-op-linux-0e52247a2ed1f211f0c4f682dc999610a368903f.zip
PCI: fix pci_resource_alignment prototype
This fixes the prototype for both pci_resource_alignment() and pci_sriov_resource_alignment(). Patch started as debugging effort from Cam Macdonell. Cc: Cam Macdonell <cam@cs.ualberta.ca> Cc: Avi Kivity <avi@redhat.com> [chrisw: add iov bits] Signed-off-by: Chris Wright <chrisw@sous-sol.org> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/iov.c')
-rw-r--r--drivers/pci/iov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/iov.c b/drivers/pci/iov.c
index ce6a3666b3d9..553d8ee55c1c 100644
--- a/drivers/pci/iov.c
+++ b/drivers/pci/iov.c
@@ -608,7 +608,7 @@ int pci_iov_resource_bar(struct pci_dev *dev, int resno,
* the VF BAR size multiplied by the number of VFs. The alignment
* is just the VF BAR size.
*/
-int pci_sriov_resource_alignment(struct pci_dev *dev, int resno)
+resource_size_t pci_sriov_resource_alignment(struct pci_dev *dev, int resno)
{
struct resource tmp;
enum pci_bar_type type;
OpenPOWER on IntegriCloud