diff options
author | Ricardo B. Marliere <[email protected]> | 2024-03-05 17:11:27 -0300 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-03-11 13:42:09 -0700 |
commit | c057eddcb45ac13db487fa413f75611c69aad600 (patch) | |
tree | 112869bb02c2bce1973f876b6ba07f809d052444 /scripts/gdb/linux/stackdepot.py | |
parent | 44208f59362e7099877f9ba79e1472f6bd321e2e (diff) |
ptp: make ptp_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 ptp_class structure to be declared at build time
placing it into read-only memory, instead of having to be dynamically
allocated at boot time.
Suggested-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Ricardo B. Marliere <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/stackdepot.py')
0 files changed, 0 insertions, 0 deletions