diff options
Diffstat (limited to 'include/linux/crypto.h')
-rw-r--r-- | include/linux/crypto.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/crypto.h b/include/linux/crypto.h index cf91c4c0638b..d4f9948b64b1 100644 --- a/include/linux/crypto.h +++ b/include/linux/crypto.h | |||
@@ -928,6 +928,11 @@ static inline int crypto_has_comp(const char *alg_name, u32 type, u32 mask) | |||
928 | return crypto_has_alg(alg_name, type, mask); | 928 | return crypto_has_alg(alg_name, type, mask); |
929 | } | 929 | } |
930 | 930 | ||
931 | static inline const char *crypto_comp_name(struct crypto_comp *tfm) | ||
932 | { | ||
933 | return crypto_tfm_alg_name(crypto_comp_tfm(tfm)); | ||
934 | } | ||
935 | |||
931 | static inline struct compress_tfm *crypto_comp_crt(struct crypto_comp *tfm) | 936 | static inline struct compress_tfm *crypto_comp_crt(struct crypto_comp *tfm) |
932 | { | 937 | { |
933 | return &crypto_comp_tfm(tfm)->crt_compress; | 938 | return &crypto_comp_tfm(tfm)->crt_compress; |