lkml.org 
[lkml]   [2013]   [Oct]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH RFC v2 07/29] PCI/MSI: Return -ENOSYS for unimplemented interfaces, not -1
    Date
    Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
    Suggested-by: Ben Hutchings <bhutchings@solarflare.com>
    ---
    include/linux/pci.h | 6 +++---
    1 files changed, 3 insertions(+), 3 deletions(-)

    diff --git a/include/linux/pci.h b/include/linux/pci.h
    index d3a888a..5cfe54c 100644
    --- a/include/linux/pci.h
    +++ b/include/linux/pci.h
    @@ -1148,13 +1148,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)
    @@ -1169,7 +1169,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)
    --
    1.7.7.6


    \
     
     \ /
      Last update: 2013-10-19 09:01    [W:5.397 / U:0.184 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site