forked from mirrors/linux
		
	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 <randy.dunlap@oracle.com> Acked-by: Linas Vepstas <linas@austin.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
		
			
				
	
	
		
			41 lines
		
	
	
	
		
			1 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
	
		
			1 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 * Copyright (C) 2006 Intel Corp.
 | 
						|
 *     Tom Long Nguyen (tom.l.nguyen@intel.com)
 | 
						|
 *     Zhang Yanmin (yanmin.zhang@intel.com)
 | 
						|
 */
 | 
						|
 | 
						|
#ifndef _AER_H_
 | 
						|
#define _AER_H_
 | 
						|
 | 
						|
#if defined(CONFIG_PCIEAER)
 | 
						|
/* pci-e port driver needs this function to enable aer */
 | 
						|
extern int pci_enable_pcie_error_reporting(struct pci_dev *dev);
 | 
						|
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);
 | 
						|
extern int pci_cleanup_aer_correct_error_status(struct pci_dev *dev);
 | 
						|
#else
 | 
						|
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
 | 
						|
 | 
						|
#endif //_AER_H_
 | 
						|
 |