Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754640Ab2FMTGR (ORCPT ); Wed, 13 Jun 2012 15:06:17 -0400 Received: from moutng.kundenserver.de ([212.227.126.171]:62852 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754443Ab2FMTGP (ORCPT ); Wed, 13 Jun 2012 15:06:15 -0400 Date: Wed, 13 Jun 2012 21:05:40 +0200 From: Johannes Goetzfried To: Jussi Kivilinna Cc: Randy Dunlap , Stephen Rothwell , linux-next@vger.kernel.org, LKML , linux-crypto@vger.kernel.org, David Miller , Herbert Xu Subject: Re: linux-next: Tree for Jun 13 (crypto) Message-ID: <20120613190540.GY17705@kronos.redsun> References: <20120613155440.14672516ffaf5b01f91bb0a2@canb.auug.org.au> <4FD8BB95.4000307@xenotime.net> <20120613200317.20733xjrnmv47y04@www.81.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120613200317.20733xjrnmv47y04@www.81.fi> User-Agent: Mutt/1.5.20 (2009-06-14) X-Provags-ID: V02:K0:tTmW6Ek+xGKePH+HB4OmTm8+GWxUYU34355O9twjTPV NpmOlGO4vbAxBbznLrjdDfUzrnR8LrL2ne22mB+ddYXHgnKAe0 GDS+814XhLppk7Zssx3kMWcdDlgqQ6fc1QKQ0rxOHb1Jiz/+8Q CvvOFt6oZ5hYUoqtIi+pNnwQftq7lVRlil2QRsK61T4+Hf9wuU 5kHHiF8sAvKa0nB5g18w6457BDRoqdmrAqSy3IK4h4cOKwZypC 98T4fegNuB4A2hh1X1EDAMwvMvR6hAoRsK2VdjQ+o6mRNNOGX4 gTdYhz8jVR9Y3lH+DdggrzgI0PuLYOubCURn4XME8h+dYuVr4e jvITJ8nPIlCVK/07sI+A= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1683 Lines: 33 On Wed, Jun 13, 2012 at 08:03:17PM +0300, Jussi Kivilinna wrote: > >arch/x86/crypto/serpent-avx-x86_64.o: In function `serpent_xts_decrypt': > >(.text+0x856c): multiple definition of `serpent_xts_decrypt' > >arch/x86/crypto/serpent-sse2-x86_64.o:(.text+0xae8): first defined here > > Reverting commit e2f4d85d5b2049a90859aa10de914ed31a4f17a4, "crypto: > serpent - add common glue code for avx and sse2 implementation", > should help for most. > > >arch/x86/crypto/serpent-avx-x86_64.o: In function `serpent_dec_blk_8way': > >(.text+0x3d70): multiple definition of `serpent_dec_blk_8way' > >arch/x86/crypto/serpent-avx-x86_64.o: In function `__serpent_enc_blk_8way': > >(.text+0x0): multiple definition of `__serpent_enc_blk_8way' > > Attached patch should solve these (patch depends on above revert). I'm really sorry about this, it shouldn't have happened. The most easiest solution to this problem would be to make the choice between CRYPTO_SERPENT_SSE2_X86_64 and CRYPTO_SERPENT_AVX_X86_64 an exclusive-or choice in crypto/Kconfig. I don't think there is an use-case, where somebody would want to link both implementations into the same kernel image or even load both implementations as module. This would avoid duplicating the glue-code again. Another possibility would be to add a serpent-common-x86_64 module, but this wouldn't be a trivial change and imo a little bit too much just to avoid duplicating this code. - Johannes -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/