summaryrefslogtreecommitdiffstats
path: root/module/icp
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2021-09-14 09:17:54 -0700
committerTony Hutter <[email protected]>2021-11-02 09:50:30 -0700
commit143476ce8d3aa4595ce7040cb0aabd2fd0e13dc8 (patch)
tree90a138d1aa90344d341bcf94def34a0609662c93 /module/icp
parentd8a97a7be2ebd6eb305aba86ba7eec2ac0a4739b (diff)
Use fallthrough macro
As of the Linux 5.9 kernel a fallthrough macro has been added which should be used to anotate all intentional fallthrough paths. Once all of the kernel code paths have been updated to use fallthrough the -Wimplicit-fallthrough option will because the default. To avoid warnings in the OpenZFS code base when this happens apply the fallthrough macro. Additional reading: https://lwn.net/Articles/794944/ Reviewed-by: Tony Nguyen <[email protected]> Reviewed-by: George Melikov <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #12441
Diffstat (limited to 'module/icp')
-rw-r--r--module/icp/core/kcf_prov_tabs.c2
-rw-r--r--module/icp/io/aes.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/module/icp/core/kcf_prov_tabs.c b/module/icp/core/kcf_prov_tabs.c
index 94e6937bc..9d303d022 100644
--- a/module/icp/core/kcf_prov_tabs.c
+++ b/module/icp/core/kcf_prov_tabs.c
@@ -377,7 +377,7 @@ kcf_provider_zero_refcnt(kcf_provider_desc_t *desc)
mutex_exit(&desc->pd_lock);
break;
}
- /* FALLTHRU */
+ fallthrough;
case CRYPTO_HW_PROVIDER:
case CRYPTO_LOGICAL_PROVIDER:
diff --git a/module/icp/io/aes.c b/module/icp/io/aes.c
index e540af447..c47c7567b 100644
--- a/module/icp/io/aes.c
+++ b/module/icp/io/aes.c
@@ -976,7 +976,7 @@ aes_encrypt_atomic(crypto_provider_handle_t provider,
case AES_GMAC_MECH_INFO_TYPE:
if (plaintext->cd_length != 0)
return (CRYPTO_ARGUMENTS_BAD);
- /* FALLTHRU */
+ fallthrough;
case AES_GCM_MECH_INFO_TYPE:
length_needed = plaintext->cd_length + aes_ctx.ac_tag_len;
break;