Commit:     5547bbeed37f7ab64942ffcce9293681101577ef
Parent:     0d4cbb5e7f60b2f1a4d8b7f6ea4cc264262c7a01
Author:     Randy Dunlap <[EMAIL PROTECTED]>
AuthorDate: Thu Aug 23 10:37:53 2007 -0700
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Tue Sep 11 04:22:16 2007 -0700

    PCI AER: fix warnings when PCIEAER=n
    Fix warnings when CONFIG_PCIEAER=n:
    drivers/pci/pcie/portdrv_pci.c:105: warning: statement with no effect
    drivers/pci/pcie/portdrv_pci.c:226: warning: statement with no effect
    drivers/scsi/arcmsr/arcmsr_hba.c:352: warning: statement with no effect
    Signed-off-by: Randy Dunlap <[EMAIL PROTECTED]>
    Acked-by: Linas Vepstas <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
 include/linux/aer.h |   25 ++++++++++++++++++++-----
 1 files changed, 20 insertions(+), 5 deletions(-)

diff --git a/include/linux/aer.h b/include/linux/aer.h
index 5096562..bcf236d 100644
--- a/include/linux/aer.h
+++ b/include/linux/aer.h
@@ -15,11 +15,26 @@ extern int pci_disable_pcie_error_reporting(struct pci_dev 
 extern int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev);
 extern int pci_cleanup_aer_correct_error_status(struct pci_dev *dev);
-#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)
-#define pci_cleanup_aer_correct_error_status(dev)      (-EINVAL)
+static inline int pci_enable_pcie_error_reporting(struct pci_dev *dev)
+       return -EINVAL;
+static inline int pci_find_aer_capability(struct pci_dev *dev)
+       return 0;
+static inline int pci_disable_pcie_error_reporting(struct pci_dev *dev)
+       return -EINVAL;
+static inline int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev)
+       return -EINVAL;
+static inline int pci_cleanup_aer_correct_error_status(struct pci_dev *dev)
+       return -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