summaryrefslogtreecommitdiffstats
path: root/include/linux/crypto.h
diff options
context:
space:
mode:
authorCorentin Labbe2018-11-29 15:42:16 +0100
committerHerbert Xu2018-12-07 07:15:00 +0100
commit2ced26078fcff26db532d6300a1b5f8ffd11a5e1 (patch)
treeb132cfafef62c742cc0bcfa680984736f3d6e59f /include/linux/crypto.h
parentMAINTAINERS: change NX/VMX maintainers (diff)
downloadkernel-qcow2-linux-2ced26078fcff26db532d6300a1b5f8ffd11a5e1.tar.gz
kernel-qcow2-linux-2ced26078fcff26db532d6300a1b5f8ffd11a5e1.tar.xz
kernel-qcow2-linux-2ced26078fcff26db532d6300a1b5f8ffd11a5e1.zip
crypto: user - made crypto_user_stat optional
Even if CRYPTO_STATS is set to n, some part of CRYPTO_STATS are compiled. This patch made all part of crypto_user_stat uncompiled in that case. Signed-off-by: Corentin Labbe <clabbe@baylibre.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/linux/crypto.h')
-rw-r--r--include/linux/crypto.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/crypto.h b/include/linux/crypto.h
index 3634ad6fe202..3e05053b8d57 100644
--- a/include/linux/crypto.h
+++ b/include/linux/crypto.h
@@ -515,6 +515,7 @@ struct crypto_alg {
struct module *cra_module;
+#ifdef CONFIG_CRYPTO_STATS
union {
atomic_t encrypt_cnt;
atomic_t compress_cnt;
@@ -552,6 +553,7 @@ struct crypto_alg {
atomic_t compute_shared_secret_cnt;
};
atomic_t sign_cnt;
+#endif /* CONFIG_CRYPTO_STATS */
} CRYPTO_MINALIGN_ATTR;