Received: by 10.213.65.68 with SMTP id h4csp49048imn; Sat, 24 Mar 2018 13:12:17 -0700 (PDT) X-Google-Smtp-Source: AG47ELvX5929Dh7u1sgvhdlYkaiTXFFYSe2/mNND8ZtSzf7HJV5ORd0QZgHKzn8s5Q9dSyUQdk3H X-Received: by 10.98.246.26 with SMTP id x26mr11385581pfh.81.1521922336900; Sat, 24 Mar 2018 13:12:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521922336; cv=none; d=google.com; s=arc-20160816; b=ScuxHu+4Ek73Gvi1XWjRNTjipIEJ2g4gBcyA2hLieTaexrHaxCX/9lrohG5R1nQmjF J5c1J969Hug2mE4gSId+jiPpxY4+q1JxIG5qFy8vtb7hH+y0xl9dMZwVdb88GyJ1sCib PSiREMlhycEN2fVeThyhN+bnkiCjK+xZDJ7S1cUlykUp5YYm7g1lkr2AI28igq0YJNq0 fDbNugO9aOhf1X2Wg50FUepzumirB0Fyffxz2oFAK4AgqHX/4w0Up3hIbzRxi2N6cv/t IPofksotozci97apwzBSzRyoSYe4hlb3KbJ1HLbbJWyIA6xpU9xZTEzqfJ/9abeiFtc+ G16g== 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-disposition:mime-version:user-agent:in-reply-to:references :subject:cc:to:from:message-id:date:arc-authentication-results; bh=X/DqpRb6jEAv25UGYRVGcx/erdg+oiMsVfHftYBCxyU=; b=gtIQMZLqU9nXghdrEi2RPDpsyxmLTzoBYNVTJKCZl2hHFyzDcMgpJ5biLSZiSRm5g5 chjYV3iOD7v6WVog4CKp8pvs4XFdOYueVBBlH/m8M91tsz4wUPC79yfWQ42cvDv/+Osq Ycad2ky3sWgsTkPZm69mpS+NjYSZkFfJ/u8laq1gttL6UJOj1jPGjzLN/T5FO6zSAqj+ A/VFj9AD3kvYdsLeVqhgRd9YRmRoo4VSMBMniCgscqDlxjuWEWwiQijGRhcJp+m8v6Dy 3G96nNDQYccBBMMoqbNX/3JcCyLcL+tDT0tMr9U9LsgE0RDFroReoQcJx0nZvRqRhUW3 HyGA== 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 y1si8037426pgq.423.2018.03.24.13.12.02; Sat, 24 Mar 2018 13:12:16 -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 S1753507AbeCXUKc convert rfc822-to-8bit (ORCPT + 99 others); Sat, 24 Mar 2018 16:10:32 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:62780 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752754AbeCXUKa (ORCPT ); Sat, 24 Mar 2018 16:10:30 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 407s2p4P5wz9ttFV; Sat, 24 Mar 2018 21:10:10 +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 yB1OoDqBI1P5; Sat, 24 Mar 2018 21:10:10 +0100 (CET) Received: from vm-hermes.si.c-s.fr (vm-hermes.si.c-s.fr [192.168.25.253]) by pegase1.c-s.fr (Postfix) with ESMTP id 407s2p3YKQz9ttFR; Sat, 24 Mar 2018 21:10:10 +0100 (CET) Received: by vm-hermes.si.c-s.fr (Postfix, from userid 33) id 3C83263; Sat, 24 Mar 2018 21:10:20 +0100 (CET) Received: from 37.170.205.107 ([37.170.205.107]) by messagerie.si.c-s.fr (Horde Framework) with HTTP; Sat, 24 Mar 2018 21:10:20 +0100 Date: Sat, 24 Mar 2018 21:10:20 +0100 Message-ID: <20180324211020.Horde.kEO4b3mHPV88FKM0OiRT0Q1@messagerie.si.c-s.fr> From: LEROY Christophe To: Mathieu Malaterre Cc: linuxppc-dev , Paul Mackerras , kvm-ppc@vger.kernel.org, LKML , Michael Ellerman Subject: Re: [PATCH 14/19] powerpc/altivec: Add missing prototypes for altivec References: <20180322202007.23088-1-malat@debian.org> <20180322202007.23088-15-malat@debian.org> <97df68d1-d4fe-bf8e-7852-9b418eec042f@c-s.fr> In-Reply-To: User-Agent: Internet Messaging Program (IMP) H5 (6.2.3) Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mathieu Malaterre a écrit : > On Fri, Mar 23, 2018 at 1:19 PM, christophe leroy > wrote: >> >> >> 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. > > $ 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 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_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 >>