From patchwork Fri Jun 22 14:37:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Glauber X-Patchwork-Id: 10482277 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 B27A7602CB for ; Fri, 22 Jun 2018 14:37:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8FE1E28F60 for ; Fri, 22 Jun 2018 14:37:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 83E1128F68; Fri, 22 Jun 2018 14:37:55 +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 C26A728F60 for ; Fri, 22 Jun 2018 14:37:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932752AbeFVOhw (ORCPT ); Fri, 22 Jun 2018 10:37:52 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:50697 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933291AbeFVOhu (ORCPT ); Fri, 22 Jun 2018 10:37:50 -0400 Received: by mail-wm0-f67.google.com with SMTP id e16-v6so2498894wmd.0 for ; Fri, 22 Jun 2018 07:37:49 -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=+w4oxQkZ10YGr0tlqXjRo7gVb41QvL9q1Gx3CQeeZG4=; b=AzMDCP55+Yavh7fg8s0E+4sJhYFVm1qm854mxRpzkW1uRvgs5uZ2RtKyLtxxJjo01I WLGTsFT8i27tKhUKyxxrFV6zg3zn67ghwJOWnwU9EQ9c6K6peTb/2rbls8fIBLjeJP0E 2Omf8sQljocsvBCJKiBsnXGqXfWKJ7akJu+26G4gLJK5Ltgkl3V91GH7bcww0V5R8If3 KmKRUg4iCBsvltwpZNqyAWJo40uiurCvrn6ZXbYg2a2LLXS0+mTI+DnwyOxlNg7ECdVn zyIcC6unnijZZ0OzFYmITZ+V8JXdVH7wOhMVfpyMHX8qzvcUTMWTVY0/he+Wx/EMiyUm zeHg== X-Gm-Message-State: APt69E0lkcL1sdKfmq1u0BUzcagk98P9eXeQjSRrmSXuDAWsmsUBPk8J PxLNO0S2Nqrv49QAHujG8Wg= X-Google-Smtp-Source: ADUXVKKXfy9mssSI9dKhLtIAINUl7xbCfSbX711GOl5xC/veSe3fKzjDsuaXtNy6Qsm83FJ//dtLJQ== X-Received: by 2002:a1c:908b:: with SMTP id s133-v6mr1999522wmd.35.1529678269015; Fri, 22 Jun 2018 07:37:49 -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.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Jun 2018 07:37:48 -0700 (PDT) From: Jan Glauber To: Herbert Xu Cc: "David S . Miller" , linux-crypto@vger.kernel.org, Mahipal Challa , Jan Glauber Subject: [PATCH 2/5] crypto: thunderx_zip - Add driver names and module aliases Date: Fri, 22 Jun 2018 16:37:19 +0200 Message-Id: <20180622143722.9406-3-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 Add missing cra_driver_name's and module aliases for deflate and lzs. Signed-off-by: Jan Glauber --- drivers/crypto/cavium/zip/zip_main.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/cavium/zip/zip_main.c b/drivers/crypto/cavium/zip/zip_main.c index be055b9547f6..68e67be954ad 100644 --- a/drivers/crypto/cavium/zip/zip_main.c +++ b/drivers/crypto/cavium/zip/zip_main.c @@ -351,6 +351,7 @@ static struct pci_driver zip_driver = { static struct crypto_alg zip_comp_deflate = { .cra_name = "deflate", + .cra_driver_name = "deflate-thunderx", .cra_flags = CRYPTO_ALG_TYPE_COMPRESS, .cra_ctxsize = sizeof(struct zip_kernel_ctx), .cra_priority = 300, @@ -365,6 +366,7 @@ static struct crypto_alg zip_comp_deflate = { static struct crypto_alg zip_comp_lzs = { .cra_name = "lzs", + .cra_driver_name = "lzs-thunderx", .cra_flags = CRYPTO_ALG_TYPE_COMPRESS, .cra_ctxsize = sizeof(struct zip_kernel_ctx), .cra_priority = 300, @@ -384,7 +386,7 @@ static struct scomp_alg zip_scomp_deflate = { .decompress = zip_scomp_decompress, .base = { .cra_name = "deflate", - .cra_driver_name = "deflate-scomp", + .cra_driver_name = "deflate-scomp-thunderx", .cra_module = THIS_MODULE, .cra_priority = 300, } @@ -397,7 +399,7 @@ static struct scomp_alg zip_scomp_lzs = { .decompress = zip_scomp_decompress, .base = { .cra_name = "lzs", - .cra_driver_name = "lzs-scomp", + .cra_driver_name = "lzs-scomp-thunderx", .cra_module = THIS_MODULE, .cra_priority = 300, } @@ -725,3 +727,5 @@ MODULE_AUTHOR("Cavium Inc"); MODULE_DESCRIPTION("Cavium Inc ThunderX ZIP Driver"); MODULE_LICENSE("GPL v2"); MODULE_DEVICE_TABLE(pci, zip_id_table); +MODULE_ALIAS_CRYPTO("deflate"); +MODULE_ALIAS_CRYPTO("lzs");