diff options
| author | Ricardo B. Marliere <[email protected]> | 2024-02-17 17:13:32 -0300 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2024-02-21 09:45:23 +0000 |
| commit | 52042e092ba9cf9120ffe516dd03acb1d1e572b9 (patch) | |
| tree | 8c2af6ac8c6b44b713aed4ac3e2b672e78c044a1 /tools/perf/scripts/python/intel-pt-events.py | |
| parent | 7ae9d3423f1db1a3e61b23038005f892858a6936 (diff) | |
net: netdevsim: constify the struct device_type usage
Since commit aed65af1cc2f ("drivers: make device_type const"), the driver
core can properly handle constant struct device_type. Move the
nsim_bus_dev_type variable to be a constant structure as well, placing it
into read-only memory which can not be modified at runtime.
Cc: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Ricardo B. Marliere <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions