Commit 11680fd
virtio_console: make port class a static const structure
Now that the driver core allows for struct class to be in read-only
memory, remove the class field of the ports_driver_data structure and
create the port_class static class structure declared at build time
which places it into read-only memory, instead of having it to be
dynamically allocated at load time.
Cc: Amit Shah <amit@kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: virtualization@lists.linux-foundation.org
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ivan Orlov <ivan.orlov0322@gmail.com>
Link: https://lore.kernel.org/r/20230620143751.578239-16-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 98ab58a commit 11680fd
1 file changed
Lines changed: 11 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | 43 | | |
47 | 44 | | |
48 | 45 | | |
| |||
55 | 52 | | |
56 | 53 | | |
57 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
1399 | 1400 | | |
1400 | 1401 | | |
1401 | 1402 | | |
1402 | | - | |
| 1403 | + | |
1403 | 1404 | | |
1404 | 1405 | | |
1405 | 1406 | | |
| |||
1465 | 1466 | | |
1466 | 1467 | | |
1467 | 1468 | | |
1468 | | - | |
| 1469 | + | |
1469 | 1470 | | |
1470 | 1471 | | |
1471 | 1472 | | |
| |||
1540 | 1541 | | |
1541 | 1542 | | |
1542 | 1543 | | |
1543 | | - | |
| 1544 | + | |
1544 | 1545 | | |
1545 | 1546 | | |
1546 | 1547 | | |
| |||
2244 | 2245 | | |
2245 | 2246 | | |
2246 | 2247 | | |
2247 | | - | |
2248 | | - | |
2249 | | - | |
2250 | | - | |
| 2248 | + | |
| 2249 | + | |
2251 | 2250 | | |
2252 | | - | |
2253 | 2251 | | |
2254 | 2252 | | |
2255 | 2253 | | |
| |||
2271 | 2269 | | |
2272 | 2270 | | |
2273 | 2271 | | |
2274 | | - | |
| 2272 | + | |
2275 | 2273 | | |
2276 | 2274 | | |
2277 | 2275 | | |
| |||
2282 | 2280 | | |
2283 | 2281 | | |
2284 | 2282 | | |
2285 | | - | |
| 2283 | + | |
2286 | 2284 | | |
2287 | 2285 | | |
2288 | 2286 | | |
| |||
0 commit comments