Commit 03377a6
PCI: endpoint: Make pci_epc_class struct constant
Now that the driver core allows for struct class to be in read-only
memory, we should make all 'class' structures declared at build time
placing them into read-only memory, instead of having to be dynamically
allocated at runtime.
Link: https://lore.kernel.org/linux-pci/2024061011-citable-herbicide-1095@gregkh
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>1 parent 473b2cf commit 03377a6
1 file changed
Lines changed: 7 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
63 | | - | |
| 65 | + | |
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
| |||
893 | 895 | | |
894 | 896 | | |
895 | 897 | | |
896 | | - | |
| 898 | + | |
897 | 899 | | |
898 | 900 | | |
899 | 901 | | |
| |||
953 | 955 | | |
954 | 956 | | |
955 | 957 | | |
956 | | - | |
957 | | - | |
958 | | - | |
959 | | - | |
960 | | - | |
961 | | - | |
962 | | - | |
963 | | - | |
| 958 | + | |
964 | 959 | | |
965 | 960 | | |
966 | 961 | | |
967 | 962 | | |
968 | 963 | | |
969 | | - | |
| 964 | + | |
970 | 965 | | |
971 | 966 | | |
972 | 967 | | |
| |||
0 commit comments