Received: by 10.213.65.68 with SMTP id h4csp317835imn; Fri, 23 Mar 2018 05:26:23 -0700 (PDT) X-Google-Smtp-Source: AG47ELuvfiDzc+U0ygfREEh+eWhu6C04Fvl7iRC5pN/uF6sZywdM7E2R3YXj1W7yqHQOJ4kWgRvG X-Received: by 2002:a17:902:7586:: with SMTP id j6-v6mr14922999pll.352.1521807983411; Fri, 23 Mar 2018 05:26:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521807983; cv=none; d=google.com; s=arc-20160816; b=dRsPY6kssIgXVA8YaYRAXKiRKrUtvn+yOEaqrwfd5b20os9h0/MdnXfcFqPZRPVfiX TyTlNjjwCGDS4Xq2su4f+S5gNXOPl+dWQR4ApFsbC+7+i1w2BVPJuIjaOJbQbxytG2mL IY1qxaW3V5Ar1MbWMhlXAviBcS2xJf0gGwRezY4dNVaJ2LbgfTLc5T2FqvkkGyECvqHk zSXYDArl96vfkOvzRwRN36Vnp3qGLh/Lc5bfKlO0WGrUDSxqyQfRS40Po7zHGpqA1pDq Zc2Yg+y8BkNl7kah9Aoaefm0wvR6LGoZzdbuaQ6xvtaz7juTx9Aq1vEMIPmGW3MZ0uPB PMUw== 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=5Bm8pJO1xyMGSWUvFTXdgCr9AzsuBp0sRxL4BaWwxMo=; b=n8l0wo60kvUrZJeWv6/yiStmmX0092WSZzPysD5hDpdhH2AcRJKMXqXHuPjINEpK72 UmaHKLM7iHzS2ZOM+zkwppm7/5QuZ2nqgwIE8hJ5FCkx6edEJA1cgps4LxhU9b2ZOih2 6kVvM2Ozv0NYE6saoUUjuWHwfmW6xws4jXaLdh5w+1ECKSy+8YyhqTBscBI+genAjjzr lSmV4pBkhBGBcjLNjWrE8Ek0UkTGVAMUCT7o4LDPbWu20g19QcPs344UXUZtGJwrcfNB E5MSxcLUNP74lKzd0OtZSp62We3aR+ajbDEDMyE4FbCVgV65cFGyYZBuPxBFeJ7Hhgyw +kzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=gXuNe+ZB; 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 m8-v6si9005624pll.93.2018.03.23.05.26.08; Fri, 23 Mar 2018 05:26:23 -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=gXuNe+ZB; 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 S1752436AbeCWMZQ (ORCPT + 99 others); Fri, 23 Mar 2018 08:25:16 -0400 Received: from mail-ot0-f181.google.com ([74.125.82.181]:39101 "EHLO mail-ot0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751903AbeCWMZO (ORCPT ); Fri, 23 Mar 2018 08:25:14 -0400 Received: by mail-ot0-f181.google.com with SMTP id h8-v6so13013556oti.6; Fri, 23 Mar 2018 05:25:14 -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=5Bm8pJO1xyMGSWUvFTXdgCr9AzsuBp0sRxL4BaWwxMo=; b=gXuNe+ZBA0XB9iPeAV89CohogB8OSY69bKdQ3604O/IGfS6XSdmbvT83QdBh0mqcXd T7wzwv76hm++BSR/t+pXdiyNQl5+gcz4sVPBP2gvVAXUwns8MLw158Nel8l7S/65s8qi X6K8VTVt8BkkF2HOqOI0eoV3+/LMZQdaCXHGsY3WRvZciUfls/LXgM2Tc3MvJD1j5ho7 JjUsnWVT2UgA8kt4voUJeSORmppsQc3B/i9xQzPFE3MpkdxAxDBhfbmNNo6Ojz5PVCsC uojGiiKaTnl0DPrbqLZNmDfqikhwEj5XYil+vGAu+jJxHTjP0vH/9Dpb+UWpVLtro5xL Peqw== 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=5Bm8pJO1xyMGSWUvFTXdgCr9AzsuBp0sRxL4BaWwxMo=; b=eT26W+r7gDiA0j3CUbZ+Js2BsrEIpJB+IDbfM1EMkc94JRk8c5T08veGKL4xmVVtsN SaFoYJ2tEDNwwWf+mJ7yapUGGK7MBd1M+9oUHe2jz6Xdp+pds33BZJ1wX8H6/SDk9EYS KFZ5cKFRqxf8nP1A995H9MvWxmbzL1yf32WRfy6xtX30b17DiI1SFLwzrJs6JeYuMtNz vOSAG9vs9wmCUZEXoFF+oPeKJaA/NxNf3VZ08dyuQg/DJ5magh2hpgGKBRxUfjCTRPo6 wwGRDFvnKGHSaPv5C0U8nkrzAQlAfXqTEWa2BUidBojxjCV2VWq2K/RjrzyNm9iCxQ2X zL4A== X-Gm-Message-State: AElRT7F2fdJzDtR96xUaTu0N2j0KjOBHIB9fUTehpA12Vhu4nVslgidB 1UZjVGTFlvZCJeqoahgUJXE75NU4q0MAh/+IaWeZ96ky X-Received: by 2002:a9d:2d03:: with SMTP id v3-v6mr17009852ota.334.1521807913616; Fri, 23 Mar 2018 05:25:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.138.3.76 with HTTP; Fri, 23 Mar 2018 05:24:53 -0700 (PDT) In-Reply-To: <97df68d1-d4fe-bf8e-7852-9b418eec042f@c-s.fr> References: <20180322202007.23088-1-malat@debian.org> <20180322202007.23088-15-malat@debian.org> <97df68d1-d4fe-bf8e-7852-9b418eec042f@c-s.fr> From: Mathieu Malaterre Date: Fri, 23 Mar 2018 13:24:53 +0100 X-Google-Sender-Auth: ED6DUJ_ePdJorOKnL40ktWzaQLU Message-ID: Subject: Re: [PATCH 14/19] powerpc/altivec: Add missing prototypes for altivec To: christophe leroy Cc: Michael Ellerman , LKML , kvm-ppc@vger.kernel.org, Paul Mackerras , linuxppc-dev 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 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 the >> 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 fo= r >> =E2=80=98xor_altivec_2=E2=80=99 [-Werror=3Dmissing-prototypes] >> arch/powerpc/lib/xor_vmx_glue.c:29:6: error: no previous prototype fo= r >> =E2=80=98xor_altivec_3=E2=80=99 [-Werror=3Dmissing-prototypes] >> arch/powerpc/lib/xor_vmx_glue.c:40:6: error: no previous prototype fo= r >> =E2=80=98xor_altivec_4=E2=80=99 [-Werror=3Dmissing-prototypes] >> arch/powerpc/lib/xor_vmx_glue.c:52:6: error: no previous prototype fo= r >> =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 lo= ng >> *v1_in, >> void __xor_altivec_5(unsigned long bytes, unsigned long *v1_in, >> unsigned long *v2_in, unsigned long *v3_in, >> 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 ? > 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_in, >> + unsigned long *v4_in); >> + >> +void xor_altivec_5(unsigned long bytes, unsigned long *v1_in, >> + unsigned long *v2_in, unsigned long *v3_in, >> + 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 >