From patchwork Fri Jun 22 14:37:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Glauber X-Patchwork-Id: 10482275 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 79E5860230 for ; Fri, 22 Jun 2018 14:37:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 59BE228EC8 for ; Fri, 22 Jun 2018 14:37:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4B75B28F65; Fri, 22 Jun 2018 14:37:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 57B9B28EC8 for ; Fri, 22 Jun 2018 14:37:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933644AbeFVOhv (ORCPT ); Fri, 22 Jun 2018 10:37:51 -0400 Received: from mail-wr0-f179.google.com ([209.85.128.179]:33634 "EHLO mail-wr0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932170AbeFVOhs (ORCPT ); Fri, 22 Jun 2018 10:37:48 -0400 Received: by mail-wr0-f179.google.com with SMTP id k16-v6so6968218wro.0 for ; Fri, 22 Jun 2018 07:37:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=zyfngij9essH7OFs4380aWyFrJCC7uvZ9EkmayflcxM=; b=T8cI81fELrmVT0rhvovtwqsTWvXwF7eH1T2dZvexIaUSJf4pYkaXAdwfqWf8YvEEKb pv4VyGwq+kE4J1u8vWtNVcoLJsiWkix/MhtOMyAs/Nl2WuJk2IlHZB8eNJmQRy77gi4R HAGjk+AgqKlh0f2Pyb8olPcswPXasoukjYgoz4Z/FSZzTp4J6p6wqbdC2TZdOvVqzTsK JwbxdRsnqVn9/hmViFqPO7SjdRYV1l2k3eE43WHL6LA5cc5uNvgMj+Xyz698wnVFtYac npE+wbYJaNwkTkL8XqsvyF1nqsWAn7weF4L+LpvCnh/3DLbaEEsZZ6JS6BZyfZ5ErQmM PNrQ== X-Gm-Message-State: APt69E0XCUEGTLUGUZNfthxBwHlAJxgMPromAhIYB3M2KbUweOmiXqIQ jH+TdOWhQFaBc6ZYc01XFIk= X-Google-Smtp-Source: AAOMgpcHZ/ATx0U8Rgku3cJAx3MVDX3TgPZ36QZ6XU3VTRctVlyYooyjbld/5u36pgCUG+WX4Of77w== X-Received: by 2002:adf:edc6:: with SMTP id v6-v6mr1801400wro.264.1529678267638; Fri, 22 Jun 2018 07:37:47 -0700 (PDT) Received: from hc.cavium.com (dslb-088-066-107-231.088.066.pools.vodafone-ip.de. [88.66.107.231]) by smtp.gmail.com with ESMTPSA id a5-v6sm6553033wro.12.2018.06.22.07.37.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Jun 2018 07:37:46 -0700 (PDT) From: Jan Glauber To: Herbert Xu Cc: "David S . Miller" , linux-crypto@vger.kernel.org, Mahipal Challa , Jan Glauber Subject: [PATCH 1/5] crypto: deflate - Rename to generic Date: Fri, 22 Jun 2018 16:37:18 +0200 Message-Id: <20180622143722.9406-2-jglauber@cavium.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180622143722.9406-1-jglauber@cavium.com> References: <20180622143722.9406-1-jglauber@cavium.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Rename deflate -> deflate_generic and add the default priority of 100. Signed-off-by: Jan Glauber --- crypto/Makefile | 2 +- crypto/{deflate.c => deflate_generic.c} | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) rename crypto/{deflate.c => deflate_generic.c} (98%) diff --git a/crypto/Makefile b/crypto/Makefile index 6d1d40eeb964..351c7212aff8 100644 --- a/crypto/Makefile +++ b/crypto/Makefile @@ -119,7 +119,7 @@ obj-$(CONFIG_CRYPTO_SPECK) += speck.o obj-$(CONFIG_CRYPTO_SALSA20) += salsa20_generic.o obj-$(CONFIG_CRYPTO_CHACHA20) += chacha20_generic.o obj-$(CONFIG_CRYPTO_POLY1305) += poly1305_generic.o -obj-$(CONFIG_CRYPTO_DEFLATE) += deflate.o +obj-$(CONFIG_CRYPTO_DEFLATE) += deflate_generic.o obj-$(CONFIG_CRYPTO_MICHAEL_MIC) += michael_mic.o obj-$(CONFIG_CRYPTO_CRC32C) += crc32c_generic.o obj-$(CONFIG_CRYPTO_CRC32) += crc32_generic.o diff --git a/crypto/deflate.c b/crypto/deflate_generic.c similarity index 98% rename from crypto/deflate.c rename to crypto/deflate_generic.c index 94ec3b36a8e8..66bff5614195 100644 --- a/crypto/deflate.c +++ b/crypto/deflate_generic.c @@ -279,6 +279,8 @@ static int deflate_sdecompress(struct crypto_scomp *tfm, const u8 *src, static struct crypto_alg alg = { .cra_name = "deflate", + .cra_driver_name = "deflate-generic", + .cra_priority = 100, .cra_flags = CRYPTO_ALG_TYPE_COMPRESS, .cra_ctxsize = sizeof(struct deflate_ctx), .cra_module = THIS_MODULE, @@ -341,3 +343,4 @@ MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("Deflate Compression Algorithm for IPCOMP"); MODULE_AUTHOR("James Morris "); MODULE_ALIAS_CRYPTO("deflate"); +MODULE_ALIAS_CRYPTO("deflate-generic");