Skip to content

Commit 6f517e0

Browse files
larsclausenkwilczynski
authored andcommitted
PCI: endpoint: pci-epf-test: Make struct pci_epf_ops const
The pci_epf_ops struct for the PCI endpoint test driver is never modified. Mark it as const so it can be placed in the read-only section. [kwilczynski: commit log] Link: https://lore.kernel.org/linux-pci/[email protected] Signed-off-by: Lars-Peter Clausen <[email protected]> Signed-off-by: Krzysztof Wilczyński <[email protected]> Reviewed-by: Manivannan Sadhasivam <[email protected]>
1 parent c21b53d commit 6f517e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pci/endpoint/functions/pci-epf-test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ static int pci_epf_test_probe(struct pci_epf *epf,
973973
return 0;
974974
}
975975

976-
static struct pci_epf_ops ops = {
976+
static const struct pci_epf_ops ops = {
977977
.unbind = pci_epf_test_unbind,
978978
.bind = pci_epf_test_bind,
979979
};

0 commit comments

Comments
 (0)