Received: by 10.213.65.68 with SMTP id h4csp1696846imn; Thu, 29 Mar 2018 09:18:41 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+rIeTTQQzF3mt2jLB6sqDi11CVh2vKls9mdQXaCbyiORhPpBpx2anl/w8U6VPU8fQEo7AM X-Received: by 10.101.92.74 with SMTP id v10mr2598906pgr.26.1522340321415; Thu, 29 Mar 2018 09:18:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522340321; cv=none; d=google.com; s=arc-20160816; b=KgGpmUnQXyZyq5kIFUyUnizgGGy/nt2KiULKJ0D470ZJGg5HFGyRtTAxcq/bqUrD67 Xlpu+y3sy+QwVXs7vDplK0cbCOik33gqik4APSuoLo81Ih/N6C8PCkBW2hbluirrnGge MXCidPfXP8p3yrTjQa+RKTQoJGb2lyLlIcY4M0KzWFaN8WsU4apr8ipEZOYwLM5eUKFL OK9Ll+f3+pOJWTfcykM6F0g68o8HHpKIliqU+GOf0GQDXEyze+nt9fFClp22DMiLFzJo mqGcmJaAmyeUmDUuVf5ahqZMrJ96PMLVQbkDp66ALq7VbR0nBigkuYRJ4epx5/5lpT6q YYBw== 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=f+gKrmZfrduKZwei3MYbFBA9uKcdv9XTT12Zkniw+Sg=; b=c2q7jZyU3bh0mzvVkCBYgy1cmdeZq/vTdAs87pSwXBjosO9NYCkud7vUopGH7Z2jrt +TLLOWYu2FXAd8qTI9BbWAg5JBJqKo6KEMDUXVnTRAigfqSeY4U6zSa6hr1nt1zIC5+I yt+gIztlWtGD5kEIcgwHB8CsJFEgrqRL/bbtOd1/DHkfwO9oyiKzYVWEFg0MDvNCeqp+ ys61YAojHtjoloopNjHADcJfZf8+lWMHM8loQgdnLp4SvG0jar1Ozd1h1wgwMqcV66tv jEBnpUXDmScDz29YT95Eeh8XSHZhlEiV4gg4vEHHuMKxog/IXlzzGbzOR/34K141Cnqy uzpQ== 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 t23si4611989pfg.387.2018.03.29.09.18.27; Thu, 29 Mar 2018 09:18:41 -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 S1752464AbeC2QQa convert rfc822-to-8bit (ORCPT + 99 others); Thu, 29 Mar 2018 12:16:30 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:15930 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751968AbeC2QQ2 (ORCPT ); Thu, 29 Mar 2018 12:16:28 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 40BqcF4Fwmz9v0Wt; Thu, 29 Mar 2018 18:15:57 +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 zsZ89dvkX6Tt; Thu, 29 Mar 2018 18:15:57 +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 40BqcF3bGhz9ttC4; Thu, 29 Mar 2018 18:15:57 +0200 (CEST) Received: by vm-hermes.si.c-s.fr (Postfix, from userid 33) id 8C77390E; Thu, 29 Mar 2018 18:16:09 +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 18:16:09 +0200 Date: Thu, 29 Mar 2018 18:16:09 +0200 Message-ID: <20180329181609.Horde.TWj0eWAkAjHcBe3PlwHHEQ6@messagerie.si.c-s.fr> From: LEROY Christophe To: Mathieu Malaterre Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Paul Mackerras , Benjamin Herrenschmidt , Michael Ellerman Subject: Re: [PATCH v2 05/19] powerpc/chrp/setup: Add attribute unused and make some functions static References: <20180322202007.23088-6-malat@debian.org> <20180328193553.1122-1-malat@debian.org> In-Reply-To: <20180328193553.1122-1-malat@debian.org> 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 The subject of the patch should be updated as well Christophe Mathieu Malaterre a écrit : > Remove variable declaration idu_size and associated code since not used. > > These functions can all be static, make it so. Fix warnings treated as > errors with W=1: > > arch/powerpc/platforms/chrp/setup.c:97:6: error: no previous > prototype for ‘chrp_show_cpuinfo’ [-Werror=missing-prototypes] > arch/powerpc/platforms/chrp/setup.c:302:13: error: no previous > prototype for ‘chrp_setup_arch’ [-Werror=missing-prototypes] > arch/powerpc/platforms/chrp/setup.c:385:16: error: variable > ‘idu_size’ set but not used [-Werror=unused-but-set-variable] > arch/powerpc/platforms/chrp/setup.c:526:13: error: no previous > prototype for ‘chrp_init_IRQ’ [-Werror=missing-prototypes] > arch/powerpc/platforms/chrp/setup.c:559:1: error: no previous > prototype for ‘chrp_init2’ [-Werror=missing-prototypes] > > Suggested-by: Christophe Leroy > Signed-off-by: Mathieu Malaterre > --- > v2: Remove totally variable idu_size > arch/powerpc/platforms/chrp/setup.c | 12 +++++------- > 1 file changed, 5 insertions(+), 7 deletions(-) > > diff --git a/arch/powerpc/platforms/chrp/setup.c > b/arch/powerpc/platforms/chrp/setup.c > index 481ed133e04b..d6d8ffc0271e 100644 > --- a/arch/powerpc/platforms/chrp/setup.c > +++ b/arch/powerpc/platforms/chrp/setup.c > @@ -94,7 +94,7 @@ static const char *chrp_names[] = { > "Total Impact Briq" > }; > > -void chrp_show_cpuinfo(struct seq_file *m) > +static void chrp_show_cpuinfo(struct seq_file *m) > { > int i, sdramen; > unsigned int t; > @@ -299,7 +299,7 @@ static __init void chrp_init(void) > of_node_put(node); > } > > -void __init chrp_setup_arch(void) > +static void __init chrp_setup_arch(void) > { > struct device_node *root = of_find_node_by_path("/"); > const char *machine = NULL; > @@ -382,7 +382,7 @@ static void __init chrp_find_openpic(void) > { > struct device_node *np, *root; > int len, i, j; > - int isu_size, idu_size; > + int isu_size; > const unsigned int *iranges, *opprop = NULL; > int oplen = 0; > unsigned long opaddr; > @@ -427,11 +427,9 @@ static void __init chrp_find_openpic(void) > } > > isu_size = 0; > - idu_size = 0; > if (len > 0 && iranges[1] != 0) { > printk(KERN_INFO "OpenPIC irqs %d..%d in IDU\n", > iranges[0], iranges[0] + iranges[1] - 1); > - idu_size = iranges[1]; > } > if (len > 1) > isu_size = iranges[3]; > @@ -523,7 +521,7 @@ static void __init chrp_find_8259(void) > } > } > > -void __init chrp_init_IRQ(void) > +static void __init chrp_init_IRQ(void) > { > #if defined(CONFIG_VT) && defined(CONFIG_INPUT_ADBHID) && > defined(CONFIG_XMON) > struct device_node *kbd; > @@ -555,7 +553,7 @@ void __init chrp_init_IRQ(void) > #endif > } > > -void __init > +static void __init > chrp_init2(void) > { > #ifdef CONFIG_NVRAM > -- > 2.11.0