diff options
Diffstat (limited to 'include/linux/crypto.h')
-rw-r--r-- | include/linux/crypto.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/crypto.h b/include/linux/crypto.h index cb1e6631b132..7f57ff8ec975 100644 --- a/include/linux/crypto.h +++ b/include/linux/crypto.h | |||
@@ -17,6 +17,7 @@ | |||
17 | #ifndef _LINUX_CRYPTO_H | 17 | #ifndef _LINUX_CRYPTO_H |
18 | #define _LINUX_CRYPTO_H | 18 | #define _LINUX_CRYPTO_H |
19 | 19 | ||
20 | #include <asm/atomic.h> | ||
20 | #include <linux/module.h> | 21 | #include <linux/module.h> |
21 | #include <linux/kernel.h> | 22 | #include <linux/kernel.h> |
22 | #include <linux/types.h> | 23 | #include <linux/types.h> |
@@ -148,6 +149,7 @@ struct crypto_alg { | |||
148 | unsigned int cra_alignmask; | 149 | unsigned int cra_alignmask; |
149 | 150 | ||
150 | int cra_priority; | 151 | int cra_priority; |
152 | atomic_t cra_refcnt; | ||
151 | 153 | ||
152 | char cra_name[CRYPTO_MAX_ALG_NAME]; | 154 | char cra_name[CRYPTO_MAX_ALG_NAME]; |
153 | char cra_driver_name[CRYPTO_MAX_ALG_NAME]; | 155 | char cra_driver_name[CRYPTO_MAX_ALG_NAME]; |
@@ -160,6 +162,7 @@ struct crypto_alg { | |||
160 | 162 | ||
161 | int (*cra_init)(struct crypto_tfm *tfm); | 163 | int (*cra_init)(struct crypto_tfm *tfm); |
162 | void (*cra_exit)(struct crypto_tfm *tfm); | 164 | void (*cra_exit)(struct crypto_tfm *tfm); |
165 | void (*cra_destroy)(struct crypto_alg *alg); | ||
163 | 166 | ||
164 | struct module *cra_module; | 167 | struct module *cra_module; |
165 | }; | 168 | }; |