From: Alexander Gordeev Date: Mon, 16 Dec 2013 08:34:57 +0000 (+0100) Subject: PCI/MSI: Return -ENOSYS for unimplemented interfaces, not -1 X-Git-Tag: v3.14-rc1~132^2~8^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ec5db6b20c860ddd1311c794b38c98ce86ac7ae;p=kernel%2Fkernel-generic.git PCI/MSI: Return -ENOSYS for unimplemented interfaces, not -1 Suggested-by: Ben Hutchings Signed-off-by: Alexander Gordeev Signed-off-by: Bjorn Helgaas Reviewed-by: Tejun Heo --- diff --git a/include/linux/pci.h b/include/linux/pci.h index 36a5b18..3c95efd 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -1156,13 +1156,13 @@ struct msix_entry { #ifndef CONFIG_PCI_MSI static inline int pci_enable_msi_block(struct pci_dev *dev, unsigned int nvec) { - return -1; + return -ENOSYS; } static inline int pci_enable_msi_block_auto(struct pci_dev *dev, unsigned int *maxvec) { - return -1; + return -ENOSYS; } static inline void pci_msi_shutdown(struct pci_dev *dev) @@ -1177,7 +1177,7 @@ static inline int pci_msix_table_size(struct pci_dev *dev) static inline int pci_enable_msix(struct pci_dev *dev, struct msix_entry *entries, int nvec) { - return -1; + return -ENOSYS; } static inline void pci_msix_shutdown(struct pci_dev *dev)