From patchwork Mon Sep 21 13:13:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Senozhatsky X-Patchwork-Id: 7230161 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E2163BEEC1 for ; Mon, 21 Sep 2015 13:17:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2CE8F20711 for ; Mon, 21 Sep 2015 13:17:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4CEF920717 for ; Mon, 21 Sep 2015 13:17:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932363AbbIUNPR (ORCPT ); Mon, 21 Sep 2015 09:15:17 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:34835 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932266AbbIUNPP (ORCPT ); Mon, 21 Sep 2015 09:15:15 -0400 Received: by pacfv12 with SMTP id fv12so119058495pac.2; Mon, 21 Sep 2015 06:15:14 -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=XEP8g1T1Lwr/tgfhpCGvnWCAq3PSmwm07qoQaS0fOnA=; b=xXPntJxxKyupoZ5aFW/lgS7rIXr+6wI7qhM7O4r/uY9dzUGFV6Pp5TgYmbZuu/4JZI dGFhN+0/l59g11hjZ15EPL75YNmcK66EpkhmVZnaL8PQ9oFGKO1fNLbDX0QeeYgfDsal K7TLz+K45wSV/KO/85CsujnrWgWOOfL7fpQxj5PGPuYpL3sUcrpuIIw/cSZg3tkbR56h /ZdnUR+S6xrYSmeqGDZc+xPZcsSwtd65TSRmOJpyxBTP62N5Znm+hPdIK753Nd16D1WX G/Dph6sBplEZpLhxv4XTz7eLJT4JDer8iC7RAlxZ0Mv1cRrWW7cR5DRAd2p1qE8m+ZX5 ggyg== X-Received: by 10.68.65.2 with SMTP id t2mr24461580pbs.75.1442841314756; Mon, 21 Sep 2015 06:15:14 -0700 (PDT) Received: from swordfish.localdomain ([112.168.75.135]) by smtp.gmail.com with ESMTPSA id c16sm24589770pbu.37.2015.09.21.06.15.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Sep 2015 06:15:14 -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 2/9] crypto/lzo: set CRYPTO_ALG_TFM_MAY_SHARE Date: Mon, 21 Sep 2015 22:13:42 +0900 Message-Id: <1442841229-8122-3-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/lzo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crypto/lzo.c b/crypto/lzo.c index 4b3e925..994667e 100644 --- a/crypto/lzo.c +++ b/crypto/lzo.c @@ -82,7 +82,8 @@ static int lzo_decompress(struct crypto_tfm *tfm, const u8 *src, static struct crypto_alg alg = { .cra_name = "lzo", - .cra_flags = CRYPTO_ALG_TYPE_COMPRESS, + .cra_flags = CRYPTO_ALG_TYPE_COMPRESS | + CRYPTO_ALG_TFM_MAY_SHARE, .cra_ctxsize = sizeof(struct lzo_ctx), .cra_module = THIS_MODULE, .cra_init = lzo_init,