From patchwork Mon Sep 21 13:13:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Senozhatsky X-Patchwork-Id: 7230171 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D83E49F30C for ; Mon, 21 Sep 2015 13:17:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2171620711 for ; Mon, 21 Sep 2015 13:17:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2E7B220718 for ; Mon, 21 Sep 2015 13:17:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932386AbbIUNPW (ORCPT ); Mon, 21 Sep 2015 09:15:22 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:34057 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932266AbbIUNPU (ORCPT ); Mon, 21 Sep 2015 09:15:20 -0400 Received: by padhy16 with SMTP id hy16so116592179pad.1; Mon, 21 Sep 2015 06:15:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=fnRVlQ++Je5Z930bU2uEY+y5hdJuZmT9tIyiACMD50k=; b=g9N28XNtVVPod9/4Wjr8u52hSXBNIFBf69M+U+Iq8RKMiHuPmUhSrbv+pA8Xnbypw0 iS4NfkCgb+tFGZfkuz5EgjkKtgy4yNpZxw7v6i0dPRUEZV7LRIU8fpbsHOZ+ON1y0YWc vTkRY/DmPRKKLyDqETrC12WyoYPytyxzaZHTyLZJx7ctI4BLc52UPygGMR40wZ4m9xDD MvyMSYvMTPmmZFPqrRteyeHyp0Q5+AQzYJpXJXKkhBcmoCZ4sxcnVVoQiR/z4Yzo7d2f fuqEmF5+uWfyA/4F1xEZ6ua69iBYO4B/73M2Or/2E4vrKSRW+UIRC9BkiAawN7i2fwXr sEOQ== X-Received: by 10.68.244.34 with SMTP id xd2mr24562859pbc.50.1442841319718; Mon, 21 Sep 2015 06:15:19 -0700 (PDT) Received: from swordfish.localdomain ([112.168.75.135]) by smtp.gmail.com with ESMTPSA id c16sm24589770pbu.37.2015.09.21.06.15.15 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Sep 2015 06:15:19 -0700 (PDT) From: Sergey Senozhatsky To: Joonsoo Kim Cc: Andrew Morton , Minchan Kim , Herbert Xu , "David S. Miller" , Stephan Mueller , Joonsoo Kim , Sergey Senozhatsky , Sergey Senozhatsky , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC][PATCH 3/9] crypto/lz4: set CRYPTO_ALG_TFM_MAY_SHARE Date: Mon, 21 Sep 2015 22:13:43 +0900 Message-Id: <1442841229-8122-4-git-send-email-sergey.senozhatsky@gmail.com> X-Mailer: git-send-email 2.5.3 In-Reply-To: <1442841229-8122-1-git-send-email-sergey.senozhatsky@gmail.com> References: <1442553564-3476-1-git-send-email-iamjoonsoo.kim@lge.com> <1442841229-8122-1-git-send-email-sergey.senozhatsky@gmail.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Sergey Senozhatsky --- crypto/lz4.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crypto/lz4.c b/crypto/lz4.c index aefbcea..ca48de1 100644 --- a/crypto/lz4.c +++ b/crypto/lz4.c @@ -78,7 +78,8 @@ static int lz4_decompress_crypto(struct crypto_tfm *tfm, const u8 *src, static struct crypto_alg alg_lz4 = { .cra_name = "lz4", - .cra_flags = CRYPTO_ALG_TYPE_COMPRESS, + .cra_flags = CRYPTO_ALG_TYPE_COMPRESS | + CRYPTO_ALG_TFM_MAY_SHARE, .cra_ctxsize = sizeof(struct lz4_ctx), .cra_module = THIS_MODULE, .cra_list = LIST_HEAD_INIT(alg_lz4.cra_list),