Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756121AbcJ1KhB (ORCPT ); Fri, 28 Oct 2016 06:37:01 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:59450 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752582AbcJ1Kg5 (ORCPT ); Fri, 28 Oct 2016 06:36:57 -0400 From: Arnd Bergmann To: Giovanni Cabiddu Cc: Herbert Xu , "David S. Miller" , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] crypto: acomp: export all scomp interfaces Date: Fri, 28 Oct 2016 12:36:35 +0200 Message-ID: <1985399.JeVYi9VsdT@wuerfel> User-Agent: KMail/5.1.3 (Linux/4.4.0-34-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: <20161027210328.GA12705@SILVIXA00369791-F22-1> References: <20161027141029.2566709-1-arnd@arndb.de> <20161027210328.GA12705@SILVIXA00369791-F22-1> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:DgHz8RLfwgx+yBqHmFc0O7NUthhHmq4ctKV4zN3XVk0ZHdcpV6K 3KgXifsG0GYgNQmSc59ETSuOYWOd+eTDfYnzzLlvPg7+LAeAKs6iQMb7bQyi/Uy2mKSDv5j MxythRls/aqhqPnNILUStrJ2R1B9MTy1fAj/v/dqhKK3Rn3qgfIh9nC+DffAsyx1+wX3zo5 DQrxkyySMt92UC+NpyAwg== X-UI-Out-Filterresults: notjunk:1;V01:K0:Z6PutRpUIVI=:4k7r7oEpqJM1SDJK+8poZg 1ZOGXu/tPCtYEcIUCO2RxJylbJPbVS7BuaScSL+RlztxtQIvw7F/jhcih6DzYriDnZQszgFKj 8o+ty6EVETD0if/srbSLmOF+HF+/nSTJznkmDt0g9AEasZF0cn1UZPRNGlPapuBGJlD9yuQ/v XIFecRRI1GOOReOrLczuYSF4oXFpy97xFSh6bJ8/j2d4Ehr5n8Pk6Kdy6BEFoUJoP+hQR3viK THQy0n0hJeE+FKwt/IagH3WqynxHYwVlc5Up4O0fahoVEO90GpZHrBvNg+rL6owduiAGIJ819 +cmWopu1w5paA5dq6rjwndTGtnQFBbqUyu32T2bUul+5Dw343aRTSgCol5vRwXnUchp2naiQt EEV3iSgZejK8RyFh/XHS2UGrfprWG0XMIxBcRaoZe4YiuI6zEQQ4qqOShvJPkSC6yEK+kDOLD yL04nqE30NLTDX0icWC+3RYSi27j+yBbKlTnSwwSsG3yRtAfdIZfdIu2/t62yxMt4bRWSMK8V GY73ZuERDUuc8MJT0/fv0ggMJiBrHNB/DwbmqfqZy015JK4g0CghTZWVDxdDqYBD8qlMUG08R 4cZd07YZDY7ykKWTV/Z1bzDk0ALaDp2RLdOJa0hz2DqP2GHpXL+AkB9dMupoztzB+ieqcS1yz xGrN95bZhUDG6HA9Q11cARCtwDq4NJHY6KVdhH3SLHg5ZXjRmyBmaovJUJuHWnQHNklLZw79D jGC4elX8seHqqiF5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 923 Lines: 22 On Thursday, October 27, 2016 10:03:29 PM CEST Giovanni Cabiddu wrote: > Hi Arnd, > > On Thu, Oct 27, 2016 at 04:09:49PM +0200, Arnd Bergmann wrote: > > 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! > These functions were not exported on purpose. They should not be called > by other modules. > > > Alternatively, both of them could be combined into one loadable module. > I think this is the correct approach. Here is a patch with an > alternative fix: https://patchwork.kernel.org/patch/9396503/ Yes, your patch is exactly what I had in mind as the alternative, looks good to me. Arnd