]> git.baikalelectronics.ru Git - kernel.git/commit
ima: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 20 Nov 2020 18:25:46 +0000 (12:25 -0600)
committerMimi Zohar <zohar@linux.ibm.com>
Tue, 20 Apr 2021 20:54:14 +0000 (16:54 -0400)
commitdd36925f7987c0854d067eca4d4ee6d3e40cfd45
treef8ed402d614c5f8f14c73dbc39597942a3787760
parent130ece6671dc639d81965ef549f77df40c652ebe
ima: Fix fall-through warnings for Clang

In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple
warnings by explicitly adding multiple break statements instead of just
letting the code fall through to the next case.

Link: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
security/integrity/ima/ima_main.c
security/integrity/ima/ima_policy.c