diff options
author | Randy Dunlap <[email protected]> | 2009-10-05 13:17:29 -0700 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2009-10-12 08:35:00 +0200 |
commit | cbef79a82a64ec13e745ce2b0274154ae1e47243 (patch) | |
tree | da128daca6c33c9280d0f01400c4766ed4a89c76 /tools/perf/scripts/python/check-perf-trace.py | |
parent | d93a8f829fe1d2f3002f2c6ddb553d12db420412 (diff) |
perf tools: Fix const char type propagation
The following perf build warnings/errors in function
argument types:
builtin-sched.c:1894: warning: passing argument 1 of 'sort_dimension__add' discards qualifiers from pointer target type
util/trace-event-parse.c:685: warning: passing argument 2 of 'read_expected' discards qualifiers from pointer target type
util/trace-event-parse.c:741: warning: passing argument 4 of 'test_type_token' discards qualifiers from pointer target type
util/trace-event-parse.c:706: warning: passing argument 2 of 'read_expected_item' discards qualifiers from pointer target type
... trigger because older GCC is not able to prove that
sort_dimension__add() does not change the string.
Some goes for test_type_token().
Fix this by improving type consistency.
Signed-off-by: Randy Dunlap <[email protected]>
Acked-by: Frederic Weisbecker <[email protected]>
Acked-by: Peter Zijlstra <[email protected]>
Cc: Paul Mackerras <[email protected]>
LKML-Reference: <[email protected]>
[ Also remove ugly type cast now unnecessary. ]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions