diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-11-14 11:07:01 +0100 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2015-11-19 16:53:07 -0700 |
commit | 7d10f4e0797597a31f2724b46e619ee10d8eb501 (patch) | |
tree | b2e892d4683344b3a4e9a6f2d07779b1b873d987 /drivers/vfio/pci | |
parent | 7fe941422339c96072fc1eec4e8b484ccf7ccd0e (diff) |
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/pci')
-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, }; |