diff options
author | Ricardo B. Marliere <[email protected]> | 2024-03-05 09:15:14 -0300 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2024-03-06 15:24:50 -0500 |
commit | 6d3b27e046abe09a1cc676e486433628d9849bd0 (patch) | |
tree | 09e74b518c86a8df9cab5c79c28bf5cc420720ac /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 5e592956cc36abd2e568245dcf12b36c85d9462d (diff) |
drm/amdkfd: make kfd_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 kfd_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]>
Signed-off-by: Felix Kuehling <[email protected]>
Reviewed-by: Felix Kuehling <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions