From patchwork Thu Oct 27 14:09:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101587 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp645652qge; Thu, 27 Oct 2016 07:11:43 -0700 (PDT) X-Received: by 10.98.100.215 with SMTP id y206mr14925345pfb.49.1477577503458; Thu, 27 Oct 2016 07:11:43 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a66si8217847pgc.33.2016.10.27.07.11.43; Thu, 27 Oct 2016 07:11:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S942355AbcJ0OK4 (ORCPT + 27 others); Thu, 27 Oct 2016 10:10:56 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:63013 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936559AbcJ0OKx (ORCPT ); Thu, 27 Oct 2016 10:10:53 -0400 Received: from wuerfel.lan. ([78.43.20.153]) by mrelayeu.kundenserver.de (mreue104) with ESMTPA (Nemesis) id 0LhvGc-1ccztI2bD8-00nD1W; Thu, 27 Oct 2016 16:10:34 +0200 From: Arnd Bergmann To: Herbert Xu Cc: Arnd Bergmann , "David S. Miller" , Giovanni Cabiddu , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] crypto: acomp: export all scomp interfaces Date: Thu, 27 Oct 2016 16:09:49 +0200 Message-Id: <20161027141029.2566709-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:GFYjVedWwUXbdUblo0NFlTj9SdeGE4yxwK2g12Br+QiJGGbs70e 7OhYXexOagHAUSsL/Uaabu0AUInXclDMmeiDaaU2RTWUeBJwP+Gi4Z/S+zuOvR0AZOhdgNH it30XpPWGnxMhOhVr4Ygbz7bq6JWOjv4dkjICKLRB5gRZAbRz9ewLTIAY2V3fI0bTMSHgxo A9kgMqqH4dNyNM8AUNv4w== X-UI-Out-Filterresults: notjunk:1; V01:K0:BVLRcO7bDd0=:b+nEiEoBYHAMw2K3HQZ08S OKjv02vuHGipT+k4v296GzpufVlT7sK41ndAZAhUdN1ZcsDJaU8z9uakL8BnwLru2dawPeteF GQTE+aIVUmfEHpBznV7dspbaxtOdUcKjxc9og5uGF9puDD15aaF2OWFxI9XXolI0p0Omzvz7f xlj9ZU3vTsgfrTaP6H83jpiDtQMg8zkqrXD2nsfgO5DthuvONnWYRTeJN5ivwrXlhlhwc8eUr 3KkKcz0qX5dB/im1SORoTUDFZzUpXe3sm4AkBfyFGK38+iKxivaQU0PYIhcXdi1DV6wgPRIMA ERhMLPfNJXRsq9rNz2yyVCAplSjgRhCmBmdGExEH7juo8PfQtlSPNUFI8oqYMq9Y1nSA8TqYX 7RmUnkvr53undJzvOgG+SVo9rDw2MjjOjF63Mu7S6oFfDiHHPzzTpYGdw7ssUT+GbEiiowMBU YG+xy4k4q4VgGg7rQWieubR+FDgvyfrmPZHnD1rg/Ukn6qN33KGdGFs3ttA6wP9MnoMbUt+q0 JB2mCxFMS5by8Nc9OWXssIt2kBeljIoLB18k5PxJGMNUJE+4JITNZF9DIAdsxfFTe9mc6yWVK T38uZBmystBanAw4wbN/Uv0nPZsj8BMBA6xbtc6pj58lQGN10E/G2ZxomIe7maFQqmCazXtsn FC17KuRn5WZlEjAnc1wJCqN71kvMDfFZg6jaHAxxZie6z7iaiNVpO01WCxEqLAmAEx+4= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The newly added scomp/acomp interface has a couple of functions that should be exported to allow linking the two drivers as loadable modules: ERROR: "crypto_acomp_scomp_free_ctx" [crypto/acompress.ko] undefined! ERROR: "crypto_acomp_scomp_alloc_ctx" [crypto/acompress.ko] undefined! ERROR: "crypto_init_scomp_ops_async" [crypto/acompress.ko] undefined! Alternatively, both of them could be combined into one loadable module. Fixes: 1ab53a77b772 ("crypto: acomp - add driver-side scomp interface") Signed-off-by: Arnd Bergmann --- crypto/scompress.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.9.0 diff --git a/crypto/scompress.c b/crypto/scompress.c index 35e396d154b7..1f9cdcddb2ce 100644 --- a/crypto/scompress.c +++ b/crypto/scompress.c @@ -267,6 +267,7 @@ int crypto_init_scomp_ops_async(struct crypto_tfm *tfm) return 0; } +EXPORT_SYMBOL_GPL(crypto_init_scomp_ops_async); struct acomp_req *crypto_acomp_scomp_alloc_ctx(struct acomp_req *req) { @@ -286,6 +287,7 @@ struct acomp_req *crypto_acomp_scomp_alloc_ctx(struct acomp_req *req) return req; } +EXPORT_SYMBOL_GPL(crypto_acomp_scomp_alloc_ctx); void crypto_acomp_scomp_free_ctx(struct acomp_req *req) { @@ -298,6 +300,7 @@ void crypto_acomp_scomp_free_ctx(struct acomp_req *req) if (ctx) crypto_scomp_free_ctx(scomp, ctx); } +EXPORT_SYMBOL_GPL(crypto_acomp_scomp_free_ctx); static const struct crypto_type crypto_scomp_type = { .extsize = crypto_alg_extsize,