Commit 5dea176
committed
nvme: fabrics: make nvmf_class constant
JIRA: https://issues.redhat.com/browse/RHEL-25547
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>
(cherry picked from commit 3c2bcfd)
Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>1 parent 3c79b59 commit 5dea176
1 file changed
+11
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1294 | 1294 | | |
1295 | 1295 | | |
1296 | 1296 | | |
1297 | | - | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
1298 | 1301 | | |
1299 | 1302 | | |
1300 | 1303 | | |
| |||
1414 | 1417 | | |
1415 | 1418 | | |
1416 | 1419 | | |
1417 | | - | |
1418 | | - | |
| 1420 | + | |
| 1421 | + | |
1419 | 1422 | | |
1420 | | - | |
1421 | 1423 | | |
1422 | 1424 | | |
1423 | 1425 | | |
1424 | 1426 | | |
1425 | | - | |
| 1427 | + | |
1426 | 1428 | | |
1427 | 1429 | | |
1428 | 1430 | | |
| |||
1438 | 1440 | | |
1439 | 1441 | | |
1440 | 1442 | | |
1441 | | - | |
| 1443 | + | |
1442 | 1444 | | |
1443 | | - | |
| 1445 | + | |
1444 | 1446 | | |
1445 | 1447 | | |
1446 | 1448 | | |
| |||
1449 | 1451 | | |
1450 | 1452 | | |
1451 | 1453 | | |
1452 | | - | |
1453 | | - | |
| 1454 | + | |
| 1455 | + | |
1454 | 1456 | | |
1455 | 1457 | | |
1456 | 1458 | | |
| |||
0 commit comments