Commit 3c2bcfd
nvme: fabrics: make nvmf_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 nvmf_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 <gregkh@linuxfoundation.org>
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>1 parent ab21f3d commit 3c2bcfd
1 file changed
+11
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1318 | 1318 | | |
1319 | 1319 | | |
1320 | 1320 | | |
1321 | | - | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
1322 | 1325 | | |
1323 | 1326 | | |
1324 | 1327 | | |
| |||
1438 | 1441 | | |
1439 | 1442 | | |
1440 | 1443 | | |
1441 | | - | |
1442 | | - | |
| 1444 | + | |
| 1445 | + | |
1443 | 1446 | | |
1444 | | - | |
1445 | 1447 | | |
1446 | 1448 | | |
1447 | 1449 | | |
1448 | 1450 | | |
1449 | | - | |
| 1451 | + | |
1450 | 1452 | | |
1451 | 1453 | | |
1452 | 1454 | | |
| |||
1462 | 1464 | | |
1463 | 1465 | | |
1464 | 1466 | | |
1465 | | - | |
| 1467 | + | |
1466 | 1468 | | |
1467 | | - | |
| 1469 | + | |
1468 | 1470 | | |
1469 | 1471 | | |
1470 | 1472 | | |
| |||
1473 | 1475 | | |
1474 | 1476 | | |
1475 | 1477 | | |
1476 | | - | |
1477 | | - | |
| 1478 | + | |
| 1479 | + | |
1478 | 1480 | | |
1479 | 1481 | | |
1480 | 1482 | | |
| |||
0 commit comments