diff options
author | Alexander Gordeev <agordeev@redhat.com> | 2013-12-16 03:34:58 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2013-12-20 11:45:05 -0500 |
commit | 52179dc9edc3b7a2b3bb01cbb1b6c96f6d05fc73 (patch) | |
tree | b331aa42207a68cafce0bb8758a9474022d52f96 | |
parent | 8ec5db6b20c860ddd1311c794b38c98ce86ac7ae (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>
-rw-r--r-- | Documentation/PCI/MSI-HOWTO.txt | 2 | ||||
-rw-r--r-- | drivers/pci/msi.c | 4 | ||||
-rw-r--r-- | include/linux/pci.h | 8 |
3 files changed, 7 insertions, 7 deletions
diff --git a/Documentation/PCI/MSI-HOWTO.txt b/Documentation/PCI/MSI-HOWTO.txt index a09178086c30..a4d174e95413 100644 --- a/Documentation/PCI/MSI-HOWTO.txt +++ b/Documentation/PCI/MSI-HOWTO.txt | |||
@@ -129,7 +129,7 @@ call to succeed. | |||
129 | 129 | ||
130 | 4.2.3 pci_enable_msi_block_auto | 130 | 4.2.3 pci_enable_msi_block_auto |
131 | 131 | ||
132 | int pci_enable_msi_block_auto(struct pci_dev *dev, unsigned int *count) | 132 | int pci_enable_msi_block_auto(struct pci_dev *dev, int *count) |
133 | 133 | ||
134 | This variation on pci_enable_msi() call allows a device driver to request | 134 | This variation on pci_enable_msi() call allows a device driver to request |
135 | the maximum possible number of MSIs. The MSI specification only allows | 135 | the maximum possible number of MSIs. The MSI specification only allows |
diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c index a581381e02f2..ce0d4eb91a22 100644 --- a/drivers/pci/msi.c +++ b/drivers/pci/msi.c | |||
@@ -855,7 +855,7 @@ static int pci_msi_check_device(struct pci_dev *dev, int nvec, int type) | |||
855 | * updates the @dev's irq member to the lowest new interrupt number; the | 855 | * updates the @dev's irq member to the lowest new interrupt number; the |
856 | * other interrupt numbers allocated to this device are consecutive. | 856 | * other interrupt numbers allocated to this device are consecutive. |
857 | */ | 857 | */ |
858 | int pci_enable_msi_block(struct pci_dev *dev, unsigned int nvec) | 858 | int pci_enable_msi_block(struct pci_dev *dev, int nvec) |
859 | { | 859 | { |
860 | int status, maxvec; | 860 | int status, maxvec; |
861 | u16 msgctl; | 861 | u16 msgctl; |
@@ -886,7 +886,7 @@ int pci_enable_msi_block(struct pci_dev *dev, unsigned int nvec) | |||
886 | } | 886 | } |
887 | EXPORT_SYMBOL(pci_enable_msi_block); | 887 | EXPORT_SYMBOL(pci_enable_msi_block); |
888 | 888 | ||
889 | int pci_enable_msi_block_auto(struct pci_dev *dev, unsigned int *maxvec) | 889 | int pci_enable_msi_block_auto(struct pci_dev *dev, int *maxvec) |
890 | { | 890 | { |
891 | int ret, nvec; | 891 | int ret, nvec; |
892 | u16 msgctl; | 892 | u16 msgctl; |
diff --git a/include/linux/pci.h b/include/linux/pci.h index 3c95efd12f3c..7c34c3913bcb 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -1154,13 +1154,13 @@ struct msix_entry { | |||
1154 | 1154 | ||
1155 | 1155 | ||
1156 | #ifndef CONFIG_PCI_MSI | 1156 | #ifndef CONFIG_PCI_MSI |
1157 | static inline int pci_enable_msi_block(struct pci_dev *dev, unsigned int nvec) | 1157 | static inline int pci_enable_msi_block(struct pci_dev *dev, int nvec) |
1158 | { | 1158 | { |
1159 | return -ENOSYS; | 1159 | return -ENOSYS; |
1160 | } | 1160 | } |
1161 | 1161 | ||
1162 | static inline int | 1162 | static inline int |
1163 | pci_enable_msi_block_auto(struct pci_dev *dev, unsigned int *maxvec) | 1163 | pci_enable_msi_block_auto(struct pci_dev *dev, int *maxvec) |
1164 | { | 1164 | { |
1165 | return -ENOSYS; | 1165 | return -ENOSYS; |
1166 | } | 1166 | } |
@@ -1195,8 +1195,8 @@ static inline int pci_msi_enabled(void) | |||
1195 | return 0; | 1195 | return 0; |
1196 | } | 1196 | } |
1197 | #else | 1197 | #else |
1198 | int pci_enable_msi_block(struct pci_dev *dev, unsigned int nvec); | 1198 | int pci_enable_msi_block(struct pci_dev *dev, int nvec); |
1199 | int pci_enable_msi_block_auto(struct pci_dev *dev, unsigned int *maxvec); | 1199 | int pci_enable_msi_block_auto(struct pci_dev *dev, int *maxvec); |
1200 | void pci_msi_shutdown(struct pci_dev *dev); | 1200 | void pci_msi_shutdown(struct pci_dev *dev); |
1201 | void pci_disable_msi(struct pci_dev *dev); | 1201 | void pci_disable_msi(struct pci_dev *dev); |
1202 | int pci_msix_table_size(struct pci_dev *dev); | 1202 | int pci_msix_table_size(struct pci_dev *dev); |