aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <[email protected]>2017-10-11 15:29:46 -0400
committerMauro Carvalho Chehab <[email protected]>2017-10-11 15:32:11 -0400
commit8382e556b1a2f30c4bf866f021b33577a64f9ebf (patch)
treecf496d579e34e0d49c59a999a104bb8ba40e4060 /tools/perf/scripts/python/bin/stackcollapse-report
parent01153bf04db18d5fcd30df64ffe428db7ff7bada (diff)
Simplify major/minor non-dynamic logic
changeset 6bbf7a855d20 ("media: dvbdev: convert DVB device types into an enum") added a new warning on gcc 6: >> drivers/media/dvb-core/dvbdev.c:86:1: warning: control reaches end of non-void function [-Wreturn-type] That's because gcc is not smart enough to see that all types are present at the switch. Also, the current code is not too optimized. So, replace it to a more optimized one, based on a static table. Reported-by: kbuild test robot <[email protected]> Fixes: 6bbf7a855d20 ("media: dvbdev: convert DVB device types into an enum") Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions