linux/drivers/pci/controller/mobiveil
Christophe JAILLET cd09a6ac85
PCI: ls-gen4: Make struct mobiveil_rp_ops constant
The struct mobiveil_rp_ops is not modified in this driver.

Thus, make this struct constant, which also moves data to a read-only
section decreasing object size and also improving overall security.

On a x86_64, with allmodconfig, as an example:

Before:
======
   text	   data	    bss	    dec	    hex	filename
   4446	    336	     32	   4814	   12ce	drivers/pci/controller/mobiveil/pcie-layerscape-gen4.o

After:
=====
   text	   data	    bss	    dec	    hex	filename
   4454	    328	     32	   4814	   12ce	drivers/pci/controller/mobiveil/pcie-layerscape-gen4.o

[kwilczynski: commit log]
Link: https://lore.kernel.org/linux-pci/189fd881cc8fd80220e74e91820e12cf3a5be114.1719260294.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
2024-06-25 00:49:49 +00:00
..
Kconfig PCI: mobiveil: Sort Kconfig entries by vendor 2023-04-20 16:18:05 -05:00
Makefile PCI: mobiveil: Add PCIe Gen4 RC driver for Layerscape SoCs 2020-02-21 11:54:12 +00:00
pcie-layerscape-gen4.c PCI: ls-gen4: Make struct mobiveil_rp_ops constant 2024-06-25 00:49:49 +00:00
pcie-mobiveil-host.c PCI: Use PCI_HEADER_TYPE_* instead of literals 2023-10-03 11:55:59 -05:00
pcie-mobiveil-plat.c PCI: Remove MODULE_LICENSE so boolean drivers don't look like modules 2023-02-17 08:47:58 -06:00
pcie-mobiveil.c PCI: mobiveil: Fix sparse different address space warnings 2020-03-17 15:38:20 +00:00
pcie-mobiveil.h PCI: ls-gen4: Make struct mobiveil_rp_ops constant 2024-06-25 00:49:49 +00:00