[PATCH v17 4/9] PCI/AER: Factor out error reporting to drivers/pci/pcie/err.c

2018-05-17 Thread Oza Pawandeep
Move the error reporting callbacks from aerdrv_core.c to err.c, where they can be used by DPC in addition to AER. As part of aerdrv_core.c, these callbacks were built under CONFIG_PCIEAER. Moving them to the new err.c means they will now be built under CONFIG_PCIEPORTBUS, so adjust the definition

[PATCH v17 4/9] PCI/AER: Factor out error reporting to drivers/pci/pcie/err.c

2018-05-17 Thread Oza Pawandeep
Move the error reporting callbacks from aerdrv_core.c to err.c, where they can be used by DPC in addition to AER. As part of aerdrv_core.c, these callbacks were built under CONFIG_PCIEAER. Moving them to the new err.c means they will now be built under CONFIG_PCIEPORTBUS, so adjust the definition