aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorJulia Lawall <[email protected]>2016-09-11 10:05:55 -0300
committerMauro Carvalho Chehab <[email protected]>2016-09-19 16:22:18 -0300
commitdb83d08dee3324dc8b0bf0d02ba295ba25a01758 (patch)
tree8c51e0016fbae83773b5a71bff563a4e3fbeb87f /tools/perf/scripts/python/bin
parent10accd2e6890b57db8e717e9aee91b791f90fe14 (diff)
[media] constify local structures
For structure types defined in the same file or local header files, find top-level static structure declarations that have the following properties: 1. Never reassigned. 2. Address never taken 3. Not passed to a top-level macro call 4. No pointer or array-typed field passed to a function or stored in a variable. Declare structures having all of these properties as const. Done using Coccinelle. Based on a suggestion by Joe Perches <[email protected]>. Signed-off-by: Julia Lawall <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions