File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -686,13 +686,17 @@ extern const struct attribute_group aer_stats_attr_group;
686
686
void pci_aer_clear_fatal_status (struct pci_dev * dev );
687
687
int pci_aer_clear_status (struct pci_dev * dev );
688
688
int pci_aer_raw_clear_status (struct pci_dev * dev );
689
+ void pci_save_aer_state (struct pci_dev * dev );
690
+ void pci_restore_aer_state (struct pci_dev * dev );
689
691
#else
690
692
static inline void pci_no_aer (void ) { }
691
693
static inline void pci_aer_init (struct pci_dev * d ) { }
692
694
static inline void pci_aer_exit (struct pci_dev * d ) { }
693
695
static inline void pci_aer_clear_fatal_status (struct pci_dev * dev ) { }
694
696
static inline int pci_aer_clear_status (struct pci_dev * dev ) { return - EINVAL ; }
695
697
static inline int pci_aer_raw_clear_status (struct pci_dev * dev ) { return - EINVAL ; }
698
+ static inline void pci_save_aer_state (struct pci_dev * dev ) { }
699
+ static inline void pci_restore_aer_state (struct pci_dev * dev ) { }
696
700
#endif
697
701
698
702
#ifdef CONFIG_ACPI
Original file line number Diff line number Diff line change @@ -45,8 +45,6 @@ struct aer_capability_regs {
45
45
int pci_enable_pcie_error_reporting (struct pci_dev * dev );
46
46
int pci_disable_pcie_error_reporting (struct pci_dev * dev );
47
47
int pci_aer_clear_nonfatal_status (struct pci_dev * dev );
48
- void pci_save_aer_state (struct pci_dev * dev );
49
- void pci_restore_aer_state (struct pci_dev * dev );
50
48
#else
51
49
static inline int pci_enable_pcie_error_reporting (struct pci_dev * dev )
52
50
{
@@ -60,8 +58,6 @@ static inline int pci_aer_clear_nonfatal_status(struct pci_dev *dev)
60
58
{
61
59
return - EINVAL ;
62
60
}
63
- static inline void pci_save_aer_state (struct pci_dev * dev ) {}
64
- static inline void pci_restore_aer_state (struct pci_dev * dev ) {}
65
61
#endif
66
62
67
63
void cper_print_aer (struct pci_dev * dev , int aer_severity ,
You can’t perform that action at this time.
0 commit comments