diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-11-14 13:07:01 +0300 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2015-11-20 02:53:07 +0300 |
commit | 7d10f4e0797597a31f2724b46e619ee10d8eb501 (patch) | |
tree | b2e892d4683344b3a4e9a6f2d07779b1b873d987 /drivers/vfio | |
parent | 7fe941422339c96072fc1eec4e8b484ccf7ccd0e (diff) | |
download | linux-7d10f4e0797597a31f2724b46e619ee10d8eb501.tar.xz |
vfio-pci: constify pci_error_handlers structures
This pci_error_handlers structure is never modified, like all the other
pci_error_handlers structures, so declare it as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/vfio')
-rw-r--r-- | drivers/vfio/pci/vfio_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vfio/pci/vfio_pci.c b/drivers/vfio/pci/vfio_pci.c index 32b88bd2c82c..2760a7ba3f30 100644 --- a/drivers/vfio/pci/vfio_pci.c +++ b/drivers/vfio/pci/vfio_pci.c @@ -1035,7 +1035,7 @@ static pci_ers_result_t vfio_pci_aer_err_detected(struct pci_dev *pdev, return PCI_ERS_RESULT_CAN_RECOVER; } -static struct pci_error_handlers vfio_err_handlers = { +static const struct pci_error_handlers vfio_err_handlers = { .error_detected = vfio_pci_aer_err_detected, }; |