diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-11-14 05:07:01 -0500 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2015-11-19 18:53:07 -0500 |
commit | 7d10f4e0797597a31f2724b46e619ee10d8eb501 (patch) | |
tree | b2e892d4683344b3a4e9a6f2d07779b1b873d987 | |
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>
-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, | |||
1035 | return PCI_ERS_RESULT_CAN_RECOVER; | 1035 | return PCI_ERS_RESULT_CAN_RECOVER; |
1036 | } | 1036 | } |
1037 | 1037 | ||
1038 | static struct pci_error_handlers vfio_err_handlers = { | 1038 | static const struct pci_error_handlers vfio_err_handlers = { |
1039 | .error_detected = vfio_pci_aer_err_detected, | 1039 | .error_detected = vfio_pci_aer_err_detected, |
1040 | }; | 1040 | }; |
1041 | 1041 | ||