From: Gustavo A. R. Silva Date: Mon, 7 Jun 2021 20:49:34 +0000 (-0500) Subject: ima: Fix fall-through warning for Clang X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7d2201d46218df951004fc48897f89c6eb510b69;p=linux.git ima: Fix fall-through warning for Clang In preparation to enable -Wimplicit-fallthrough for Clang, fix a fall-through warning by explicitly adding a break statement 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 Reviewed-by: Kees Cook Signed-off-by: Mimi Zohar --- diff --git a/security/integrity/ima/ima_template_lib.c b/security/integrity/ima/ima_template_lib.c index 8e2a121af5e11..ca017cae73eb3 100644 --- a/security/integrity/ima/ima_template_lib.c +++ b/security/integrity/ima/ima_template_lib.c @@ -119,6 +119,7 @@ static void ima_show_template_data_ascii(struct seq_file *m, default: break; } + break; default: break; }