diff options
author | Jan Glaza <[email protected]> | 2023-11-29 02:36:11 -0500 |
---|---|---|
committer | Tony Nguyen <[email protected]> | 2024-01-02 11:18:32 -0800 |
commit | b8ab8858190a1bba5f4b35ca37b1e4d7577b3a75 (patch) | |
tree | 7ca4e1c0a9a7a2a12164810a303cfeaa0afe3997 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py | |
parent | f9f9de23dc88670564a8e2448750d88398ea3555 (diff) |
ice: ice_base.c: Add const modifier to params and vars
Add const modifier to function parameters and variables where appropriate
in ice_base.c and corresponding declarations in ice_base.h.
The reason for starting the change is that read-only pointers should be
marked as const when possible to allow for smoother and more optimal code
generation and optimization as well as allowing the compiler to warn the
developer about potentially unwanted modifications, while not carrying
noticeable negative impact.
Reviewed-by: Andrii Staikov <[email protected]>
Reviewed-by: Sachin Bahadur <[email protected]>
Signed-off-by: Jan Glaza <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions