Received: by 10.213.65.68 with SMTP id h4csp313517imn; Fri, 23 Mar 2018 05:21:13 -0700 (PDT) X-Google-Smtp-Source: AG47ELuk3SPuIgqsXp5aC8V+CQxzDRJb87331Vprtme3UdzZECNP3FH36yRhpUGdLmiUbZkhsZHz X-Received: by 10.99.184.1 with SMTP id p1mr18142254pge.96.1521807673642; Fri, 23 Mar 2018 05:21:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521807673; cv=none; d=google.com; s=arc-20160816; b=Wd7wq3vg272RVFuQ1WOlnW1NxG1+1JPzb6REVQQX4gl5N5xMnTr7qnILpFGGObvDy3 KRzGnRqMvKfvE0q5kr0BTPTdzJSt8SFNqsr6jsR8He1f2XtNiOFXqIvSvTZ620Vt1yQc lM7Zv58UY18oXWTv4lGnXZ4cEuCTdgMNBhGqyBjjgZCfTWtE9veQ/eQZ9x1Xuua5tFB0 NHPJMTwM/letZr7cN3uWYBuqtpKnHpJPT1h6XmeCfGRaBYwhws603rlCYBeQb4L7xa/E UoEgPdQh7FY+TWryL82KXCKDwO8W4nC49LaIoF/ZVbntrK7VWlKYRPs2RKzTkQ+fjvhe loSQ== 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:from:references:cc:to:subject:arc-authentication-results; bh=cVV9TuWkKUFAi+9bd8vBxZMdHlk/dzXjuW/KQg4Ga+8=; b=PZCjGWRsBMEk5GxltAfKDP1pfxTZMPSFGZpUfO+XruT5e9PfJKzDS+5gCWWBfv022j DhATcbOeHqFFANFKk6bOmEmp4VeNSlmYsojF+0m49E9AgyV1ffm08pOUfZ/CHE3CPHPW vJpGQmo95IYZ27X5WA36AqQOD9XK2VtDWF1BC5urssTUqXQDWmWIv1TXXUetMxX3jUt/ vlCt484CQFXJkr9oYY7Os1aBUxPLK4QF6sq36cQX+5hKdhHXWrNvdipkjRHsWe268xkD c38+W9xeel1PxiCMZ5CQ2cyhLttz6lYliGlwM3eWAbBVhNt1BOar0G59pTS7E6iWWRZW 2qsA== ARC-Authentication-Results: i=1; mx.google.com; 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 y3si5872181pgc.601.2018.03.23.05.20.59; Fri, 23 Mar 2018 05:21:13 -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; 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 S1752900AbeCWMUK (ORCPT + 99 others); Fri, 23 Mar 2018 08:20:10 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:64097 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752632AbeCWMUH (ORCPT ); Fri, 23 Mar 2018 08:20:07 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 4072fb26Lpz9v0Wf; Fri, 23 Mar 2018 13:19:51 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id mZD5eHn2DsaC; Fri, 23 Mar 2018 13:19:51 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 4072fb1TXMz9ttBp; Fri, 23 Mar 2018 13:19:51 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 6B9058B8EB; Fri, 23 Mar 2018 13:20:06 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id gI5G7mUBh3vX; Fri, 23 Mar 2018 13:20:06 +0100 (CET) Received: from [192.168.232.53] (unknown [192.168.232.53]) by messagerie.si.c-s.fr (Postfix) with ESMTP id C19E88B8EA; Fri, 23 Mar 2018 13:20:05 +0100 (CET) Subject: Re: [PATCH 14/19] powerpc/altivec: Add missing prototypes for altivec To: Mathieu Malaterre , Michael Ellerman Cc: linux-kernel@vger.kernel.org, kvm-ppc@vger.kernel.org, Paul Mackerras , linuxppc-dev@lists.ozlabs.org References: <20180322202007.23088-1-malat@debian.org> <20180322202007.23088-15-malat@debian.org> From: christophe leroy Message-ID: <97df68d1-d4fe-bf8e-7852-9b418eec042f@c-s.fr> Date: Fri, 23 Mar 2018 13:19:59 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180322202007.23088-15-malat@debian.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit X-Antivirus: Avast (VPS 180322-6, 22/03/2018), Outbound message X-Antivirus-Status: Clean Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 22/03/2018 à 21:20, Mathieu Malaterre a écrit : > 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=1: > > arch/powerpc/lib/xor_vmx_glue.c:18:6: error: no previous prototype for ‘xor_altivec_2’ [-Werror=missing-prototypes] > arch/powerpc/lib/xor_vmx_glue.c:29:6: error: no previous prototype for ‘xor_altivec_3’ [-Werror=missing-prototypes] > arch/powerpc/lib/xor_vmx_glue.c:40:6: error: no previous prototype for ‘xor_altivec_4’ [-Werror=missing-prototypes] > arch/powerpc/lib/xor_vmx_glue.c:52:6: error: no previous prototype for ‘xor_altivec_5’ [-Werror=missing-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_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. 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 électronique a été vérifiée par le logiciel antivirus Avast. https://www.avast.com/antivirus