Received: by 10.213.65.68 with SMTP id h4csp1671481imn; Thu, 29 Mar 2018 08:53:06 -0700 (PDT) X-Google-Smtp-Source: AIpwx49VDExElGM7BqSkRgVk//AhIevXVN0nYDK7FIh9ZWFCJmOLs17sJWtbPJRp9yTFhQYo/YsV X-Received: by 2002:a17:902:5a4e:: with SMTP id f14-v6mr8812347plm.116.1522338786518; Thu, 29 Mar 2018 08:53:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522338786; cv=none; d=google.com; s=arc-20160816; b=L6o9pZgc5ulfjldXtIjyCydAhOb1D7OkUe/jdkdvD3c73GNL4Kv8ldv1Dw8NQYqbh+ q30tuaEzTXGCcwwY+Z4vxgF0jU2KRoxRLUnyU1Wadj0RZl2D61ApY0Bgq5IctaF3JXek r/boU6kA7YBq/z0WwoBJ29Oc8Mq5oVk5mGUB8w/pLRqPMK1s/tmyGQK/mgPJw7np7T5+ nulG3Duz2/U2x22aKjiYx9aBetztcWmQt0li1fpQG0OGT+nNPV1XAexOmq2KIp8RUey6 k41+Einq/rO1A4gf3AZmIjUxLbuJKIdgw4ge/pZH6d7SClCxMWOYy8DeKAa4wluR07Wq wLEg== 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=jDsq7jmparSJYCPvTmw0XfpqtuYCsF07XyI1v99VRS8=; b=MI3GlngyJ6TvaN0F1Ovg3VagA1zBKbEhiv5wfA1cwnz4y659hwapM9gawJGrPGebL+ gphvYPQF2k5IlK4PLrFujUonYAj2FhmKXFXP1IQsPIcDhOWnEJ5VIpc6hylLXXMkYnrv Ju4utnqayUwRoGG/erVLiljjvqIFsRbAf5A6ueD1/dojbTe1178GKynZYpLQgMBW71vP BsGmxEj0H3UA5bD9SkLUM6QQIE1V7MHGA0PYY9/tyIen3pjjbfYw57SmUQdWexzBBbLS 1qpA7ooX+r6Gm4eSs11zhqNtN/DUVTJBXg/jIprD0/uaWfoOiEFCjqX2uIaf3DtSysPe W6mg== 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 m4si4122502pgv.88.2018.03.29.08.52.50; Thu, 29 Mar 2018 08:53:06 -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 S1752058AbeC2Pvh convert rfc822-to-8bit (ORCPT + 99 others); Thu, 29 Mar 2018 11:51:37 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:49612 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751868AbeC2Pvg (ORCPT ); Thu, 29 Mar 2018 11:51:36 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 40Bq3X5F15z9tvTQ; Thu, 29 Mar 2018 17:51:04 +0200 (CEST) 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 oLeTjvbw0pOE; Thu, 29 Mar 2018 17:51:04 +0200 (CEST) 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 40Bq3X4l8tz9tvTd; Thu, 29 Mar 2018 17:51:04 +0200 (CEST) Received: by vm-hermes.si.c-s.fr (Postfix, from userid 33) id C3E3A23B2; Thu, 29 Mar 2018 17:51:16 +0200 (CEST) Received: from 37.170.163.30 ([37.170.163.30]) by messagerie.si.c-s.fr (Horde Framework) with HTTP; Thu, 29 Mar 2018 17:51:16 +0200 Date: Thu, 29 Mar 2018 17:51:16 +0200 Message-ID: <20180329175116.Horde.jk-Ax19FyXhtLB_VgKxDAg9@messagerie.si.c-s.fr> From: LEROY Christophe To: Mathieu Malaterre Cc: linuxppc-dev , Paul Mackerras , LKML , Michael Ellerman Subject: Re: [PATCH 11/19] powerpc/powermac: Move pmac_pfunc_base_install prototype to header file References: <20180322202007.23088-1-malat@debian.org> <20180322202007.23088-12-malat@debian.org> 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:13 PM, christophe leroy > wrote: >> >> >> Le 22/03/2018 à 21:19, Mathieu Malaterre a écrit : >>> >>> The pmac_pfunc_base_install prototype was declared in powermac/smp.c since >>> function was used there, move it to pmac_pfunc.h header to be visible in >>> pfunc_base.c. Fix a warning treated as error with W=1: >>> >>> arch/powerpc/platforms/powermac/pfunc_base.c:330:12: error: no previous >>> prototype for ‘pmac_pfunc_base_install’ [-Werror=missing-prototypes] >>> >>> Signed-off-by: Mathieu Malaterre >>> --- >>> arch/powerpc/include/asm/pmac_pfunc.h | 1 + >>> arch/powerpc/platforms/powermac/smp.c | 1 - >>> 2 files changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/arch/powerpc/include/asm/pmac_pfunc.h >>> b/arch/powerpc/include/asm/pmac_pfunc.h >>> index 73bd8f28f2a8..99f7a288789a 100644 >>> --- a/arch/powerpc/include/asm/pmac_pfunc.h >>> +++ b/arch/powerpc/include/asm/pmac_pfunc.h >>> @@ -245,6 +245,7 @@ extern void pmf_put_function(struct pmf_function >>> *func); >>> extern int pmf_call_one(struct pmf_function *func, struct pmf_args >>> *args); >>> +extern int pmac_pfunc_base_install(void); >> >> >> >> extern keyword is not needed > > I understand; but for consistency every single protoypes in this > header file actually use the extern keyword. Is there a guide/best > practice to refer to in this case ? Consistancy is not a valid reason to continue bad practice. Every single modufication is an opportunity to clean things up You should run script/checkpatch.pl --strict on all your patches before submitting. And follow as much as possible the linux codying style Christophe > >> Christophe >> >>> /* Suspend/resume code called by via-pmu directly for now */ >>> extern void pmac_pfunc_base_suspend(void); >>> diff --git a/arch/powerpc/platforms/powermac/smp.c >>> b/arch/powerpc/platforms/powermac/smp.c >>> index 95275e0e2efa..447da6db450a 100644 >>> --- a/arch/powerpc/platforms/powermac/smp.c >>> +++ b/arch/powerpc/platforms/powermac/smp.c >>> @@ -65,7 +65,6 @@ >>> #endif >>> extern void __secondary_start_pmac_0(void); >>> -extern int pmac_pfunc_base_install(void); >>> static void (*pmac_tb_freeze)(int freeze); >>> static u64 timebase; >>> >> >> --- >> L'absence de virus dans ce courrier électronique a été vérifiée par le >> logiciel antivirus Avast. >> https://www.avast.com/antivirus >>