Commit 626f534
vfio/mbochs: make mbochs_class constant
Since commit 43a7206 ("driver core: class: make class_register() take
a const *"), the driver core allows for struct class to be in read-only
memory, so move the mbochs_class structure to be declared at build time
placing it into read-only memory, instead of having to be dynamically
allocated at boot time.
Cc: Greg Kroah-Hartman <[email protected]>
Suggested-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Ricardo B. Marliere <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alex Williamson <[email protected]>1 parent 1f92d6a commit 626f534
1 file changed
+8
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
137 | 139 | | |
138 | 140 | | |
139 | 141 | | |
| |||
1422 | 1424 | | |
1423 | 1425 | | |
1424 | 1426 | | |
1425 | | - | |
1426 | | - | |
1427 | | - | |
1428 | | - | |
| 1427 | + | |
| 1428 | + | |
1429 | 1429 | | |
1430 | | - | |
1431 | | - | |
| 1430 | + | |
1432 | 1431 | | |
1433 | 1432 | | |
1434 | 1433 | | |
| |||
1448 | 1447 | | |
1449 | 1448 | | |
1450 | 1449 | | |
1451 | | - | |
| 1450 | + | |
1452 | 1451 | | |
1453 | 1452 | | |
1454 | 1453 | | |
| |||
1466 | 1465 | | |
1467 | 1466 | | |
1468 | 1467 | | |
1469 | | - | |
1470 | | - | |
| 1468 | + | |
1471 | 1469 | | |
1472 | 1470 | | |
1473 | 1471 | | |
| |||
0 commit comments