From patchwork Mon Sep 21 13:13:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Senozhatsky X-Patchwork-Id: 7230201 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 4C8F49F30C for ; Mon, 21 Sep 2015 13:17:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D857620711 for ; Mon, 21 Sep 2015 13:17:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EF56320718 for ; Mon, 21 Sep 2015 13:17:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932432AbbIUNPb (ORCPT ); Mon, 21 Sep 2015 09:15:31 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:34192 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932266AbbIUNPa (ORCPT ); Mon, 21 Sep 2015 09:15:30 -0400 Received: by padhy16 with SMTP id hy16so116595524pad.1; Mon, 21 Sep 2015 06:15:29 -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=DAnTHJaGBjZwlSuo+bK5sWwYItzU59ncsX4ikRkmFv8=; b=Vb485pKkgXsUqrS/tmrG5m9xp/8tGhAYhJVKJPeWmIngGo3imSwiFbpDNiBERalnaA ULhCHcwgz6qzQiIOKKpCYZKH+hjyDI/TN7aaDIMKjlcu/vVYUhQVH0zJi7ECwwrN3x6j 1lc46ZmST8vVKAYFVtcoUFfcDxyg7J5syXehPyBuZWNxftOUE3pCvM/FmtBVqCSXHiNT c4NwKwEcWijdoFHF09Gn7kmpdgwhsbC6Pgq1UvfXfaRF3pznClUSaO1oVqJ9C8K8QMwq hdUFrOXSTjqFE156hplxIGioL+GiB3oSJU1/Z9oVcxhHxmOymDhdTRdm2npAcLtcxMRC H7MQ== X-Received: by 10.66.221.68 with SMTP id qc4mr24603883pac.26.1442841329782; Mon, 21 Sep 2015 06:15:29 -0700 (PDT) Received: from swordfish.localdomain ([112.168.75.135]) by smtp.gmail.com with ESMTPSA id c16sm24589770pbu.37.2015.09.21.06.15.25 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Sep 2015 06:15:29 -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 5/9] crypto/842: set CRYPTO_ALG_TFM_MAY_SHARE Date: Mon, 21 Sep 2015 22:13:45 +0900 Message-Id: <1442841229-8122-6-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/842.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crypto/842.c b/crypto/842.c index 98e387e..579be68 100644 --- a/crypto/842.c +++ b/crypto/842.c @@ -56,7 +56,8 @@ static struct crypto_alg alg = { .cra_name = "842", .cra_driver_name = "842-generic", .cra_priority = 100, - .cra_flags = CRYPTO_ALG_TYPE_COMPRESS, + .cra_flags = CRYPTO_ALG_TYPE_COMPRESS | + CRYPTO_ALG_TFM_MAY_SHARE, .cra_ctxsize = sizeof(struct crypto842_ctx), .cra_module = THIS_MODULE, .cra_u = { .compress = {