summaryrefslogtreecommitdiffstats
path: root/drivers/hwtracing/intel_th/core.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva2019-02-12 22:43:02 +0100
committerAlexander Shishkin2019-02-21 14:04:36 +0100
commit8d86f6b4306f4be38b39d420456edf61a7b7119e (patch)
tree1a7e4f6bcb3d5af1cd6e02b31693d83935875816 /drivers/hwtracing/intel_th/core.c
parentintel_th: Update ABI documentation (diff)
downloadkernel-qcow2-linux-8d86f6b4306f4be38b39d420456edf61a7b7119e.tar.gz
kernel-qcow2-linux-8d86f6b4306f4be38b39d420456edf61a7b7119e.tar.xz
kernel-qcow2-linux-8d86f6b4306f4be38b39d420456edf61a7b7119e.zip
intel_th: Mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. This patch fixes the following warnings: drivers/hwtracing/intel_th/sth.c: In function ‘sth_stm_packet’: drivers/hwtracing/intel_th/sth.c:86:7: warning: this statement may fall through [-Wimplicit-fallthrough=] reg += 4; ~~~~^~~~ drivers/hwtracing/intel_th/sth.c:87:2: note: here case STP_PACKET_XSYNC: ^~~~ drivers/hwtracing/intel_th/sth.c:88:7: warning: this statement may fall through [-Wimplicit-fallthrough=] reg += 8; ~~~~^~~~ drivers/hwtracing/intel_th/sth.c:89:2: note: here case STP_PACKET_TRIG: ^~~~ Warning level 3 was used: -Wimplicit-fallthrough=3 This patch is part of the ongoing efforts to enable -Wimplicit-fallthrough. Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Diffstat (limited to 'drivers/hwtracing/intel_th/core.c')
0 files changed, 0 insertions, 0 deletions