From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756146AbbIUGRd (ORCPT ); Mon, 21 Sep 2015 02:17:33 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:34866 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752501AbbIUGRb (ORCPT ); Mon, 21 Sep 2015 02:17:31 -0400 Date: Mon, 21 Sep 2015 15:18:17 +0900 From: Sergey Senozhatsky To: Joonsoo Kim Cc: Andrew Morton , Minchan Kim , Nitin Gupta , Sergey Senozhatsky , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, Herbert Xu , "David S. Miller" , Stephan Mueller , Joonsoo Kim Subject: Re: [PATCH v3 1/9] crypto: introduce decompression API that can be called via sharable tfm object Message-ID: <20150921061817.GC5313@swordfish> References: <1442553564-3476-1-git-send-email-iamjoonsoo.kim@lge.com> <1442553564-3476-2-git-send-email-iamjoonsoo.kim@lge.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1442553564-3476-2-git-send-email-iamjoonsoo.kim@lge.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (09/18/15 14:19), Joonsoo Kim wrote: [..] > static int __init lzo_mod_init(void) > diff --git a/include/linux/crypto.h b/include/linux/crypto.h > index e71cb70..31152b1 100644 > --- a/include/linux/crypto.h > +++ b/include/linux/crypto.h > @@ -355,6 +355,8 @@ struct compress_alg { > unsigned int slen, u8 *dst, unsigned int *dlen); > int (*coa_decompress)(struct crypto_tfm *tfm, const u8 *src, > unsigned int slen, u8 *dst, unsigned int *dlen); > + int (*coa_decompress_noctx)(const u8 *src, unsigned int slen, > + u8 *dst, unsigned int *dlen); > }; > > > @@ -538,6 +540,9 @@ struct compress_tfm { > int (*cot_decompress)(struct crypto_tfm *tfm, > const u8 *src, unsigned int slen, > u8 *dst, unsigned int *dlen); > + int (*cot_decompress_noctx)(struct crypto_tfm *tfm, > + const u8 *src, unsigned int slen, > + u8 *dst, unsigned int *dlen); > }; > > #define crt_ablkcipher crt_u.ablkcipher > @@ -1836,6 +1841,14 @@ static inline void crypto_free_comp(struct crypto_comp *tfm) > crypto_free_tfm(crypto_comp_tfm(tfm)); > } > > +struct crypto_comp *crypto_alloc_comp_noctx(const char *alg_name, > + u32 type, u32 mask); > + this should be EXPORT_SYMBOL_GPL(). -ss