diff options
| author | Ivan Orlov <ivan.orlov0322@gmail.com> | 2023-08-10 22:27:11 +0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-08-11 21:41:33 +0200 |
| commit | b5fa33795544be7cb791a6991cb4bb6a237967f4 (patch) | |
| tree | 898cfcc8378caf088c2fd45e719d6a1c2a9fa756 /tools/perf/scripts/python | |
| parent | misc: eeprom/idt_89hpesx: Use devm_kmemdup to replace devm_kmalloc + memcpy (diff) | |
| download | linux-b5fa33795544be7cb791a6991cb4bb6a237967f4.tar.gz linux-b5fa33795544be7cb791a6991cb4bb6a237967f4.zip | |
misc: genwqe: make class_genwqe a static const structure
Now that the driver core allows for struct class to be in read-only
memory, move the class_genwqe structure to be declared at build time
placing it into read-only memory, instead of having to be dynamically
allocated at boot time. Update the 'class_genwqe' field of the
'genwqe_dev' struct correspondingly.
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ivan Orlov <ivan.orlov0322@gmail.com>
Link: https://lore.kernel.org/r/20230810182711.22664-1-ivan.orlov0322@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
