Commit 2eefd39
ublk: make ublk_chr_class a static const structure
Now that the driver core allows for struct class to be in read-only
memory, move the ublk_chr_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: Ming Lei <ming.lei@redhat.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: linux-block@vger.kernel.org
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ivan Orlov <ivan.orlov0322@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20230620180129.645646-7-gregkh@linuxfoundation.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 65d7a37 commit 2eefd39
1 file changed
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
193 | 195 | | |
194 | 196 | | |
195 | 197 | | |
| |||
1755 | 1757 | | |
1756 | 1758 | | |
1757 | 1759 | | |
1758 | | - | |
| 1760 | + | |
1759 | 1761 | | |
1760 | 1762 | | |
1761 | 1763 | | |
| |||
2581 | 2583 | | |
2582 | 2584 | | |
2583 | 2585 | | |
2584 | | - | |
2585 | | - | |
2586 | | - | |
| 2586 | + | |
| 2587 | + | |
2587 | 2588 | | |
2588 | | - | |
| 2589 | + | |
2589 | 2590 | | |
2590 | 2591 | | |
2591 | 2592 | | |
| |||
2603 | 2604 | | |
2604 | 2605 | | |
2605 | 2606 | | |
2606 | | - | |
| 2607 | + | |
2607 | 2608 | | |
2608 | 2609 | | |
2609 | 2610 | | |
| |||
0 commit comments