Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp216722ybl; Mon, 12 Aug 2019 14:58:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqztbRdX8WNOT4D6uJCrCGZKSqrlAsVPd/uQXncF16+pjWc8oeRfOqScjM0h4s0UVdMbDEGg X-Received: by 2002:a65:50c5:: with SMTP id s5mr31950743pgp.368.1565647122373; Mon, 12 Aug 2019 14:58:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565647122; cv=none; d=google.com; s=arc-20160816; b=ZBo290J1hNsCtjg4/hFssxVkdohiGsk9jMy5LZaeMXzETG6W8uDnWGkNSYulrj8ezW ypF+/ePtixjuxEvcILlVajcbF3FhbaqeCKtBg6CIs1mMCyvkC/2oRJbPAQcb+20+W58s pmE54MoNY6fF/RyzHzqsIxOlQDv3ynRpB+X5lLGPXaodkKDwsP55Er3Rvos4qnbenjk/ TFaXi9Q1JjRTSdY7i1wbKzNKBL8QJQSTz9felZ11KMWgFfjtvYsfHkIDk/SemHWqdt1X U+dEDJkPEs0aihhXtiKEj40jChjxfLXUgy9C0P5H0mJ/NdzAsa7pppyrYZtCZo2qHE28 Yh0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject :dkim-signature; bh=bllTEPdtYxFtEj5i4vB0U6tjHTx1DsMUqgajDbKwJCs=; b=cjHE8r2KqLrv3t+sotM504xV3xFbT0q9vkBuDURvjH89rfqoimmkqrmze/4MzTAQxl Q00+jnZoEdzKyD/wFE7B/+tIqWw95MIYay0mIteHIINuQI5zLjgva/PBYsSYkKomBdhn mkGHCvca23s7YaeqPaog4Wm0JXMTczkpPznd/JZeSHdBTUYQY6//NK9GwzM0DvJWwWmh OZOHUXf5TXD+3m4gMhwqfuAbD97hrFRX6B1tI/6+hwILlqb5A/zIjhh6HWzkWKXzfIvn kVofQ0+HmbBCTtXfG1WPJM3yRAv1cOWsclmdWixaePRaRKl3mbiSOKjFLhck6+zQJoIh JY/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kapsi.fi header.s=20161220 header.b="wIN/hM1R"; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r4si66235500pgb.245.2019.08.12.14.58.26; Mon, 12 Aug 2019 14:58:42 -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; dkim=fail header.i=@kapsi.fi header.s=20161220 header.b="wIN/hM1R"; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726996AbfHLTlB (ORCPT + 99 others); Mon, 12 Aug 2019 15:41:01 -0400 Received: from mail.kapsi.fi ([91.232.154.25]:45645 "EHLO mail.kapsi.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726549AbfHLTk6 (ORCPT ); Mon, 12 Aug 2019 15:40:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kapsi.fi; s=20161220; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=bllTEPdtYxFtEj5i4vB0U6tjHTx1DsMUqgajDbKwJCs=; b=wIN/hM1Ra2zXHsUAj9TM68eii2 WCD1q6LSiG42b3R804suuUOy9c10k1jGRjVIQSwRVCcgHDkLbaLsqzKL8yUB1fmHVK8KVi/+0cuWm 4hmYvOQQzaStNxQdcWiIRGgmqJyeH/51BWi3X1O/0PWyqny9C5DvLDfMhi1WAth9qdvY02pfNWbEY 7zjv4/lyE/9c9df3rXfqi/7LerycDdFfC0eOOlboygz+X1DSKCvdMypOCSZGNZtezHCAwy4XVYjyD zxciiXUk8mogm+0j1PYKym52ZPii4BjH9LF4husQeG7sMG9/muVLGU652CuNo2kln2nZ48jknVH7u nVh3UR+g==; Received: from 87-92-99-237.bb.dnainternet.fi ([87.92.99.237] helo=[10.0.0.10]) by mail.kapsi.fi with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hxGBV-0007yR-Qo; Mon, 12 Aug 2019 22:40:49 +0300 Subject: Re: [PATCH 3/5] lib/mpi: Fix for building for MIPS32 with Clang To: Nathan Chancellor Cc: Ralf Baechle , Paul Burton , James Hogan , Nick Desaulniers , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Vladimir Serbinenko , gcrypt-devel , Herbert Xu References: <20190812033120.43013-1-natechancellor@gmail.com> <20190812033120.43013-4-natechancellor@gmail.com> <20190812171448.GA10039@archlinux-threadripper> From: Jussi Kivilinna Openpgp: preference=signencrypt Autocrypt: addr=jussi.kivilinna@iki.fi; prefer-encrypt=mutual; keydata= mQGNBE3ihugBDADESXATJw5TPYbTHDZfl6qkS/CPbn9ecRZnL74h5w1grX7gjsscafjj7s9G Yf8hkapJ72rlR2vG54MufsUUKGde5hkJ0Ntvgt2I0LjQM2+tqGkBm4NAi4tVdUsXZiWTlSWd kTtlk7jVUH2IcYZU/VE7qeq9UNAGd+h/XEE0ytolcf1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OeNJ5oKHmVFyuT+vA9JBIj5AL+QEwP21nx+VDqUjIGgYAj1jRUA/T3 FbYXJE+I3G9PmAov2JlxQSG7ECzQS5ZRkTPXUgv/f3nCEYM0A6tDGqtSXcD4Gavl6ozDu4PD V/387JqjxmWks/rX6OVtLXeiVwfHaS8pG027kVgmvpiSzwHP9HlgingiSt5pfx3eUwWMosg1 hjPoPsVqRii9keJ7YeeZm9Oyu2qfF9ANivB3JEHah+xGodFvYT4HhW99VKEigRIs50I84xcL A+S2TkpBBRK+L2+DxbCVTAQbphP3uzC17ycOrRsWWR8Uq1xAjcle3YMumo/ChHlQyrA+0NZR PATCiJCz4HMGL57lDCId7xVDLb+M2VimGbGxMDHP1Cg9BKCp9oc+T2TeHC3fas4va1f2iXJk LbQY9oVvMmuyJvFyg8jnMHLOAVzvFbvT8XtWcL0kwePmgSwUY6RrZcRxn1Egk3UKioU7n4uK VmD7uQ+cf92mQtoiS1ceGKCT5CBPJF2PV/7Q5wBnN+R8WWAjtGPXshA5A9pB9DKjBXgVGPXY NYA8W1oeddC39o0ipr/NWR6cEMmPW5Qrn2Q0zqWdHuVfq4Me Message-ID: <1ba05172-500b-6b42-00ad-27fb33eff070@iki.fi> Date: Mon, 12 Aug 2019 22:40:49 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190812171448.GA10039@archlinux-threadripper> Content-Type: text/plain; charset=utf-8 Content-Language: en-CA Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 87.92.99.237 X-SA-Exim-Mail-From: jussi.kivilinna@iki.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On 12.8.2019 20.14, Nathan Chancellor wrote: > On Mon, Aug 12, 2019 at 10:35:53AM +0300, Jussi Kivilinna wrote: >> Hello, >> >> On 12.8.2019 6.31, Nathan Chancellor wrote: >>> From: Vladimir Serbinenko >>> >>> clang doesn't recognise =l / =h assembly operand specifiers but apparently >>> handles C version well. >>> >>> lib/mpi/generic_mpih-mul1.c:37:24: error: invalid use of a cast in a >>> inline asm context requiring an l-value: remove the cast or build with >>> -fheinous-gnu-extensions >>> umul_ppmm(prod_high, prod_low, s1_ptr[j], s2_limb); >>> ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>> lib/mpi/longlong.h:652:20: note: expanded from macro 'umul_ppmm' >>> : "=l" ((USItype)(w0)), \ >>> ~~~~~~~~~~^~~ >>> lib/mpi/generic_mpih-mul1.c:37:3: error: invalid output constraint '=h' >>> in asm >>> umul_ppmm(prod_high, prod_low, s1_ptr[j], s2_limb); >>> ^ >>> lib/mpi/longlong.h:653:7: note: expanded from macro 'umul_ppmm' >>> "=h" ((USItype)(w1)) \ >>> ^ >>> 2 errors generated. >>> >>> Fixes: 5ce3e312ec5c ("crypto: GnuPG based MPI lib - header files (part 2)") >>> Link: https://github.com/ClangBuiltLinux/linux/issues/605 >>> Link: https://github.com/gpg/libgcrypt/commit/1ecbd0bca31d462719a2a6590c1d03244e76ef89 >>> Signed-off-by: Vladimir Serbinenko >>> [jk: add changelog, rebase on libgcrypt repository, reformat changed >>> line so it does not go over 80 characters] >>> Signed-off-by: Jussi Kivilinna >> >> This is my signed-off-by for libgcrypt project, not kernel. I do not think >> signed-offs can be passed from other projects in this way. >> >> -Jussi > > Hi Jussi, > > I am no signoff expert but if I am reading the developer certificate of > origin in the libgcrypt repo correctly [1], your signoff on this commit > falls under: > > (d) I understand and agree that this project and the contribution > are public and that a record of the contribution (including all > personal information I submit with it, including my sign-off) is > maintained indefinitely and may be redistributed consistent with > this project or the open source license(s) involved. There is nothing wrong with the commit in libgcrypt repo and/or my libgcrypt-DCO-sign-off. > > This file is maintained under the LGPL because it was taken straight > from the libgcrypr repo and per (b), I can submit this commit here > with everything intact. But you do not have my kernel-DCO-sign-off for this patch. I have not been involved with this kernel patch in anyway, have not integrated it to kernel, not testing it on kernel.. I do not own it. However, with this signed-off-by line you have involved me to kernel patch process in which for this patch I'm not interested. So to be clear, I retract my kernel-DCO-signed-off for this kernel patch: NOT-Signed-off-by: Jussi Kivilinna Of course you can copy the original libgcrypt commit message to this patch, but I think it needs to be clearly quoted so that my libgcrypt-DCO-signed-off line wont be mixed with kernel-DOC-signed-off lines. > > However, I don't want to upset you in any way though so if you are not > comfortable with that, I suppose I can remove it as if Vladimir > submitted this fix to me directly (as I got permission for his signoff). > I need to resubmit this fix to an appropriate maintainer so let me know > what you think. That's quite complicated approach. Fast and easier process would be if you just own the patch yourself. Libgcrypt (and target file in libgcrypt) is LGPL v2.1+, so the license is compatible with kernel and you are good to go with just your own (kernel DCO) signed-off-by. -Jussi > > [1]: https://github.com/gpg/libgcrypt/blob/3bb858551cd5d84e43b800edfa2b07d1529718a9/doc/DCO > > Cheers, > Nathan >