diff options
author | Alexander Gordeev <agordeev@redhat.com> | 2013-12-16 09:34:58 +0100 |
---|---|---|
committer | Richard Zhu <Richard.Zhu@freescale.com> | 2014-11-07 12:55:38 +0800 |
commit | 5fdb3d2eb9515890530a5dca583b743f7ec1c479 (patch) | |
tree | 164488712677313f3c4cb09aa1d0a4549c3210ed /include | |
parent | 3bcef6ebbd3fd4d24115b1e72f1bcb04ee0c0d42 (diff) |
PCI/MSI: Make pci_enable_msi/msix() 'nvec' argument type as int
Make pci_enable_msi_block(), pci_enable_msi_block_auto() and
pci_enable_msix() consistent with regard to the type of 'nvec' argument.
Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Tejun Heo <tj@kernel.org>
(cherry picked from commit a9ec6e28d5423e0d2383e57a7cffa1b38f70c878)
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pci.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 7ffc012a0d6b..627da2ea6bd5 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -1120,13 +1120,13 @@ struct msix_entry { #ifndef CONFIG_PCI_MSI -static inline int pci_enable_msi_block(struct pci_dev *dev, unsigned int nvec) +static inline int pci_enable_msi_block(struct pci_dev *dev, int nvec) { return -1; } static inline int -pci_enable_msi_block_auto(struct pci_dev *dev, unsigned int *maxvec) +pci_enable_msi_block_auto(struct pci_dev *dev, int *maxvec) { return -1; } @@ -1161,8 +1161,8 @@ static inline int pci_msi_enabled(void) return 0; } #else -int pci_enable_msi_block(struct pci_dev *dev, unsigned int nvec); -int pci_enable_msi_block_auto(struct pci_dev *dev, unsigned int *maxvec); +int pci_enable_msi_block(struct pci_dev *dev, int nvec); +int pci_enable_msi_block_auto(struct pci_dev *dev, int *maxvec); void pci_msi_shutdown(struct pci_dev *dev); void pci_disable_msi(struct pci_dev *dev); int pci_msix_table_size(struct pci_dev *dev); |