Commit:     65b3bc358a3195ebe459761a248cf33a61539947
Parent:     8d29bfb79e632fe318f4c01c9c2e8faacb89b800
Author:     Stephen Hemminger <[EMAIL PROTECTED]>
AuthorDate: Wed Jun 6 11:46:49 2007 +0800
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Wed Jul 11 16:02:08 2007 -0700

    PCI aer: fix stub return values
    The stubs used when advanced error reporting is not enabled
    must have same return type as real functions.
    Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]>
    Acked-by: Zhang Yanmin <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
 include/linux/aer.h |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/linux/aer.h b/include/linux/aer.h
index 402e178..64aacae 100644
--- a/include/linux/aer.h
+++ b/include/linux/aer.h
@@ -14,10 +14,10 @@ extern int pci_find_aer_capability(struct pci_dev *dev);
 extern int pci_disable_pcie_error_reporting(struct pci_dev *dev);
 extern int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev);
-#define pci_enable_pcie_error_reporting(dev)           do { } while (0)
-#define pci_find_aer_capability(dev)                   do { } while (0)
-#define pci_disable_pcie_error_reporting(dev)          do { } while (0)
-#define pci_cleanup_aer_uncorrect_error_status(dev)    do { } while (0)
+#define pci_enable_pcie_error_reporting(dev)           (-EINVAL)
+#define pci_find_aer_capability(dev)                   (0)
+#define pci_disable_pcie_error_reporting(dev)          (-EINVAL)
+#define pci_cleanup_aer_uncorrect_error_status(dev)    (-EINVAL)
 #endif //_AER_H_
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to