Received: by 10.213.65.68 with SMTP id h4csp421926imn; Tue, 27 Mar 2018 01:41:37 -0700 (PDT) X-Google-Smtp-Source: AG47ELu6/eT9XJp13zOXNpxkLVJSiwdJcJSgCn0eT/RT6iB1IcZbXcLlXUbrHBVfIU6EgYOIBOO8 X-Received: by 10.98.141.205 with SMTP id p74mr26807549pfk.210.1522140097531; Tue, 27 Mar 2018 01:41:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522140097; cv=none; d=google.com; s=arc-20160816; b=OKH4W4XZWmH+iO8l0en93fPQzw8+h51xOIShGMcs6u0SwavruM0rle9whiKZZz8iTZ xMMxmht7T//yAHt8u5q5F+r38ZgBij6UQB24c4rovkRoy3d8cLwcq4AuUOyKFkuAaobB daqVDNPJ5bmcJDqG9fIq+Htumzq6uuCTCxNywiQgORwVnPd0UYs8qzWCpkWT+LKa/q/8 sBqDzQD7srQamsVkKuwKkS5ouevXlsqVbpkNDDg6+hv0vquMR0xPvrTW2RQeb8Wc56yI TLpXVgVrcqv5rhU4IEWm/3chhJ2Pg+XBiphcOhSqJwf0PymGiwIWy4q+xt8EoBzpRUP6 BDjQ== 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:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=d/rEgo+F0hucphP5oAhnKjprx38OZiA+iXtJKeL2pWg=; b=vH+zrqo16BlW3oQukR2dCIWnjX/Ux+kQnm7iinRjsK+Wgbkat5a4vumKNwK4EvwGjD xwWyKYkoSLs+S+e2fXExAjV9JAAI2kbrLLw8htcSwmxPc7J43gGETC+ky+KFNV5to2JA 3z8dKGK4BdCaknggzDgUE9gZ0RtO+InquvLeeL8vWDQ2R+g8e5ZC8ZCHArE7ld5zb0HE jaQMcUmLyd3JQ2tGlYTkhY0iepk9gd29bWexgLm3a6zyKwQum6YN4Ic7pBm4oLYFQ5VB OJBliHA2Mtjs+aE5w3NIOPlbtQFPRw+dPkG6G7RJEDN+ylk+yRwNIJUmE1iYfo0YFBKq 1+RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=fe22+3Uy; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f3-v6si831150pld.687.2018.03.27.01.41.23; Tue, 27 Mar 2018 01:41:37 -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=@gmail.com header.s=20161025 header.b=fe22+3Uy; 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 S1751732AbeC0IkV (ORCPT + 99 others); Tue, 27 Mar 2018 04:40:21 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:39844 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751001AbeC0IkO (ORCPT ); Tue, 27 Mar 2018 04:40:14 -0400 Received: by mail-oi0-f67.google.com with SMTP id q71-v6so18482415oic.6; Tue, 27 Mar 2018 01:40:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=d/rEgo+F0hucphP5oAhnKjprx38OZiA+iXtJKeL2pWg=; b=fe22+3Uy5ELzqWplPyGEYP3wyDj7dNCFszV41YcR5JzJTHVe5/yk7C5ZLorECkb50y q2v3fi14vh0gKLKbnqaac+fKqAT4AFzoMlEViXoWhXsi8FSKz/bNFoxGn+UZbT7Ywihp m8BvFekF1sbSVSvdssYIggpAwzFB4Y6v7NAiVBV5pQTDcTrp7SS7DxmOJqvPFHS0Q3Qt +qXE9Vl0s1fOeR0+TK3cDA71es7r/EB++kQ1V6i3efgatF3LMPO6WnU3I4P0uYf7MzwY 6yq3sbZIg/Pq+LjGO8e5D085FzZvckFda6oWOMqsfgW7A7YZEwS64dtPrs+NPpKvBN6t JcPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=d/rEgo+F0hucphP5oAhnKjprx38OZiA+iXtJKeL2pWg=; b=cjVOC10JfQrLB4jpCeyxfO7Ei+Ykg26F7U9Z0cQx5jMpQk9DgQWGXBns2EopQgKIiM 6V7Cf4/eSKQ2uy2FecuXV0rNLVVlXS82yz7QpNfUvaulj1Xqa5plOv5ucSAPj5w5OHYu 1h6t1wucj1Bc/2Ghv3lG1X3jW3lxPSl1fKiDMVA9VcsSxzZ7uBvmc0itmeMpWuIEMBEl JLW9zlOqRDtz3WVunLDVvV49uPJ+ZK/bBI6Ahs35O7zxu5KcW9vtI/rNNY13zHzC1k4U iVvOVKN5B0H2G7lms9r7IPSpVUHNkBhSFufDOPSYws/9BLdG00Y3VE6bX759xU3d3Y98 qVcw== X-Gm-Message-State: AElRT7GuECFNQ3Itfc83wVeeazlUCc3yKeIh2cGMptio1VAYxvx99QOf M7JmTB7zE4DHMh/XOPR1ouSbwri4kIddnc52TGeUSCKn X-Received: by 10.202.166.143 with SMTP id t15mr25071027oij.48.1522140013118; Tue, 27 Mar 2018 01:40:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.138.3.76 with HTTP; Tue, 27 Mar 2018 01:39:52 -0700 (PDT) In-Reply-To: <20180324211020.Horde.kEO4b3mHPV88FKM0OiRT0Q1@messagerie.si.c-s.fr> References: <20180322202007.23088-1-malat@debian.org> <20180322202007.23088-15-malat@debian.org> <97df68d1-d4fe-bf8e-7852-9b418eec042f@c-s.fr> <20180324211020.Horde.kEO4b3mHPV88FKM0OiRT0Q1@messagerie.si.c-s.fr> From: Mathieu Malaterre Date: Tue, 27 Mar 2018 10:39:52 +0200 X-Google-Sender-Auth: Xca4T_qCj-mRFwJLMzU5TwJGpsY Message-ID: Subject: Re: [PATCH 14/19] powerpc/altivec: Add missing prototypes for altivec To: LEROY Christophe Cc: linuxppc-dev , Paul Mackerras , kvm-ppc@vger.kernel.org, LKML , Michael Ellerman Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christophe, On Sat, Mar 24, 2018 at 9:10 PM, LEROY Christophe wrote: > Mathieu Malaterre a =C3=A9crit : > > >> On Fri, Mar 23, 2018 at 1:19 PM, christophe leroy >> wrote: >>> >>> >>> >>> Le 22/03/2018 =C3=A0 21:20, Mathieu Malaterre a =C3=A9crit : >>>> >>>> >>>> Some functions prototypes were missing for the non-altivec code. Add t= he >>>> missing prototypes directly in xor_vmx, fix warnings treated as errors >>>> with >>>> W=3D1: >>>> >>>> arch/powerpc/lib/xor_vmx_glue.c:18:6: error: no previous prototype >>>> for >>>> =E2=80=98xor_altivec_2=E2=80=99 [-Werror=3Dmissing-prototypes] >>>> arch/powerpc/lib/xor_vmx_glue.c:29:6: error: no previous prototype >>>> for >>>> =E2=80=98xor_altivec_3=E2=80=99 [-Werror=3Dmissing-prototypes] >>>> arch/powerpc/lib/xor_vmx_glue.c:40:6: error: no previous prototype >>>> for >>>> =E2=80=98xor_altivec_4=E2=80=99 [-Werror=3Dmissing-prototypes] >>>> arch/powerpc/lib/xor_vmx_glue.c:52:6: error: no previous prototype >>>> for >>>> =E2=80=98xor_altivec_5=E2=80=99 [-Werror=3Dmissing-prototypes] >>>> >>>> Signed-off-by: Mathieu Malaterre >>>> --- >>>> arch/powerpc/lib/xor_vmx.h | 14 ++++++++++++++ >>>> 1 file changed, 14 insertions(+) >>>> >>>> diff --git a/arch/powerpc/lib/xor_vmx.h b/arch/powerpc/lib/xor_vmx.h >>>> index 5c2b0839b179..2173e3c84151 100644 >>>> --- a/arch/powerpc/lib/xor_vmx.h >>>> +++ b/arch/powerpc/lib/xor_vmx.h >>>> @@ -19,3 +19,17 @@ void __xor_altivec_4(unsigned long bytes, unsigned >>>> long >>>> *v1_in, >>>> void __xor_altivec_5(unsigned long bytes, unsigned long *v1_in, >>>> unsigned long *v2_in, unsigned long *v3_i= n, >>>> unsigned long *v4_in, unsigned long >>>> *v5_in); >>>> + >>>> +void xor_altivec_2(unsigned long bytes, unsigned long *v1_in, >>>> + unsigned long *v2_in); >>>> + >>> >>> >>> >>> Only used in one place, should be static instead of adding it in a .h >>> >>> Same for the other ones. >> >> >> $ git grep xor_altivec_2 >> [...] >> arch/powerpc/lib/xor_vmx_glue.c:EXPORT_SYMBOL(xor_altivec_2); >> >> Are you sure I can change this function to static ? > > > Yes you are right. But in fact those fonctions are already defined in > asm/xor. h > So you just need to add the missing #include I originally tried it, but this leads to: CC arch/powerpc/lib/xor_vmx_glue.o In file included from arch/powerpc/lib/xor_vmx_glue.c:16:0: ./arch/powerpc/include/asm/xor.h:39:15: error: variable =E2=80=98xor_block_altivec=E2=80=99 has initializer but incomplete type static struct xor_block_template xor_block_altivec =3D { ^~~~~~~~~~~~~~~~~~ ./arch/powerpc/include/asm/xor.h:40:2: error: unknown field =E2=80=98name= =E2=80=99 specified in initializer .name =3D "altivec", ^ [...] The file (powerpc) is pretty much expected to be included after . I did not want to tweak to test for #ifdef _XOR_H just before #ifdef _XOR_H static struct xor_block_template xor_block_altivec =3D { [...] since this seems like a hack to me. Is this ok to test for #ifdef _XOR_H in ? > Christophe > > >> >>> Christophe >>> >>> >>>> +void xor_altivec_3(unsigned long bytes, unsigned long *v1_in, >>>> + unsigned long *v2_in, unsigned long >>>> *v3_in); >>>> + >>>> +void xor_altivec_4(unsigned long bytes, unsigned long *v1_in, >>>> + unsigned long *v2_in, unsigned long *v3_i= n, >>>> + unsigned long *v4_in); >>>> + >>>> +void xor_altivec_5(unsigned long bytes, unsigned long *v1_in, >>>> + unsigned long *v2_in, unsigned long *v3_i= n, >>>> + unsigned long *v4_in, unsigned long >>>> *v5_in); >>>> >>> >>> --- >>> L'absence de virus dans ce courrier =C3=A9lectronique a =C3=A9t=C3=A9 v= =C3=A9rifi=C3=A9e par le >>> logiciel antivirus Avast. >>> https://www.avast.com/antivirus >>> > >