ima: Fix fall-through warning for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Mon, 7 Jun 2021 20:49:34 +0000 (15:49 -0500)
committerMimi Zohar <zohar@linux.ibm.com>
Wed, 9 Jun 2021 03:33:48 +0000 (23:33 -0400)
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 <gustavoars@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
security/integrity/ima/ima_template_lib.c

index 8e2a121..ca017ca 100644 (file)
@@ -119,6 +119,7 @@ static void ima_show_template_data_ascii(struct seq_file *m,
                default:
                        break;
                }
+               break;
        default:
                break;
        }