提交 8ec5db6b 编写于 作者: A Alexander Gordeev 提交者: Bjorn Helgaas

PCI/MSI: Return -ENOSYS for unimplemented interfaces, not -1

Suggested-by: NBen Hutchings <bhutchings@solarflare.com>
Signed-off-by: NAlexander Gordeev <agordeev@redhat.com>
Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
Reviewed-by: NTejun Heo <tj@kernel.org>
上级 2adc7907
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册