summaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorAnders Roxell <anders.roxell@linaro.org>2019-07-30 18:20:11 +0300
committerJoerg Roedel <jroedel@suse.de>2019-08-06 18:26:38 +0300
commit11f4fe9ba3c85a4efac7ec25e75056a9b612d9da (patch)
treeccfcda1ca54dde4d033f1e98ceda4b2176082a84 /tools/perf/util/scripting-engines/trace-event-python.c
parent8af23fad626173eed7cc02733874d4124049bd5e (diff)
downloadlinux-11f4fe9ba3c85a4efac7ec25e75056a9b612d9da.tar.xz
iommu/arm-smmu: Mark expected switch fall-through
Now that -Wimplicit-fallthrough is passed to GCC by default, the following warning shows up: ../drivers/iommu/arm-smmu-v3.c: In function ‘arm_smmu_write_strtab_ent’: ../drivers/iommu/arm-smmu-v3.c:1189:7: warning: this statement may fall through [-Wimplicit-fallthrough=] if (disable_bypass) ^ ../drivers/iommu/arm-smmu-v3.c:1191:3: note: here default: ^~~~~~~ Rework so that the compiler doesn't warn about fall-through. Make it clearer by calling 'BUG_ON()' when disable_bypass is set, and always 'break;' Signed-off-by: Anders Roxell <anders.roxell@linaro.org> Acked-by: Will Deacon <will@kernel.org> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions