aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorLars-Peter Clausen <[email protected]>2023-07-22 16:08:44 -0700
committerKrzysztof Wilczyński <[email protected]>2023-12-18 22:37:54 +0000
commit86362293044b382aece355f9e4e3f7116dcd1eae (patch)
tree2fc945cdac3b03b1ceff90ee6d212abe090cda5b /scripts/generate_rust_analyzer.py
parentb85ea95d086471afb4ad062012a4d73cd328fa86 (diff)
PCI: endpoint: Make struct pci_epf_ops in pci_epf_driver const
The pci_epf_ops struct contains a set of callbacks that are used by the pci_epf_driver, and is never modified by the EPF core itself. Marking the struct pointer const allows EPF drivers to declare their pci_epf_ops struct to be const. This allows the struct to be placed in the read-only section. Which for example brings some security benefits as the callbacks can not be overwritten. [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]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions