Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d10f4e0 authored by Julia Lawall's avatar Julia Lawall Committed by Alex Williamson
Browse files

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: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
parent 7fe94142
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,
};