aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2022-12-15 17:28:46 +0100
committerMauro Carvalho Chehab <[email protected]>2023-02-08 07:23:39 +0100
commit05fb9ace34b8645cb76f7e3a21b5c7b754329cae (patch)
tree9809db044e691f954a8047dda31691d66a17c0a6 /tools/perf/scripts/python/event_analyzing_sample.py
parentc58bddb1d743e8b25aedd5f67d0bf391ecf79ca8 (diff)
media: camss: csiphy-3ph: avoid undefined behavior
Marking a case of the switch statement as unreachable means the compiler treats it as undefined behavior, which is then caught by an objtool warning: drivers/media/platform/qcom/camss/camss-csiphy-3ph-1-0.o: warning: objtool: csiphy_lanes_enable() falls through to next function csiphy_lanes_disable() Instead of simply continuing execution at a random place of the driver, print a warning and return from to the caller, which makes it possible to understand what happens and avoids the warning. Fixes: 53655d2a0ff2 ("media: camss: csiphy-3ph: add support for SM8250 CSI DPHY") Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: Robert Foss <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions