diff options
| author | Ricardo B. Marliere <[email protected]> | 2024-03-05 15:18:51 -0300 |
|---|---|---|
| committer | Vinod Koul <[email protected]> | 2024-04-06 11:53:32 +0530 |
| commit | db704bf6dccc8fef77ee4a8326bf2013b828205b (patch) | |
| tree | c9069bc47ebd2d020408b9a3c0423a914fccf1e5 /tools/testing/selftests/bpf/progs/test_access_variable_array.c | |
| parent | 5cee04a8369049b92d52995e320abff18dfeda44 (diff) | |
phy: core: make phy_class constant
Since commit 43a7206b0963 ("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 phy_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: Vinod Koul <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_access_variable_array.c')
0 files changed, 0 insertions, 0 deletions