From: Alexander Duyck Date: Thu, 25 Apr 2013 04:42:29 +0000 (+0000) Subject: pci: Add SRIOV helper function to determine if VFs are assigned to guest X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~65^2~38^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a8eb24292ffd68604cedeb24ad2b4bc02cfc037;p=pandora-kernel.git pci: Add SRIOV helper function to determine if VFs are assigned to guest This function is meant to add a helper function that will determine if a PF has any VFs that are currently assigned to a guest. We currently have been implementing this function per driver, and going forward I would like to avoid that by making this function generic and using this helper. v2: Removed extern from declaration of pci_vfs_assigned in pci.h and return 0 if SR-IOV is disabled with is inline with other PCI SRIOV functions. Signed-off-by: Alexander Duyck Acked-by: Bjorn Helgaas Signed-off-by: Jeff Kirsher --- Reading git-diff-tree failed