Received: by 10.213.65.68 with SMTP id h4csp255637imn; Fri, 23 Mar 2018 04:03:36 -0700 (PDT) X-Google-Smtp-Source: AG47ELtBwlYzRF/MjB44ke0OcrpdhnEePm5gAN3J2dgNpqXcqDo0kjGbxx5n5VHXJ9FVhVFVh8DR X-Received: by 10.99.60.89 with SMTP id i25mr3061856pgn.208.1521803016379; Fri, 23 Mar 2018 04:03:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521803016; cv=none; d=google.com; s=arc-20160816; b=nbT9wKctC/AThrtrfOB2wss9N3fzYByxylEw2FB0eCK6K8uSf2LaUPauqAnHiWGP3q h+0oDtD7KtTDZ19uD7thP3tsAx1klt2pHv3HiRrTkUDDChTuH89u8e2shA5cYLodE5Js s2Fk5Av/UIRolzHfVoX4S5Jsg44FYIQIpIJX2LkDNI0SrQEC9e+hZpQSIwzi5ZNA6+vA bAmZE5ALtzjuI0H3nvzXLSY4vFp6q8R5pPpGM0qwzrfEYiL3/Ddr/0a2qG/8wB7X6L3y m5CDXJmjwYgruBPT7ORH8XXz1C7tNGLiyo4rZzO9w25j6Br7EcZcNBq4UuObal9Iskc8 seiw== 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=M6GW4O9Lr6au+CJz0JoX+0HimkMpW/zPOe/a2+RlTwI=; b=OHk455tAIHtjpdYmnkfpvE7Bf+q0cfsDm70dF6xdhzk9LJSLhD9s5FIda22TEI3AwV vW/p/E/lztrP7lmTU1FIqp7Fts7W3La9uaj/m6GEfj4RcNGxjcgp4Pkw8A1RJWJlnakx cyaIWW93DUHYdKPj/LwqHgWYyBsLblq+LXL4HNG0tJ/y9YczQvF8Mg6EOmRTvbX2BITU 0gz91fyZUZLwhu/LJzQvWyoXvgDIpKrMd7VKm8871wsd8aeuRAfNbATGdM6BZbqktxcy bBi8yKBX1tPMDdgHh/deYC9xvdBRqP2sm5Hd3/9QbCFTOn8pbA3RrKZ3b5PUO1rh1RiL 8kTw== 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 w2-v6si8618593plk.702.2018.03.23.04.03.21; Fri, 23 Mar 2018 04:03:36 -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 S1755820AbeCWLBx (ORCPT + 99 others); Fri, 23 Mar 2018 07:01:53 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:65496 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752386AbeCWLBv (ORCPT ); Fri, 23 Mar 2018 07:01:51 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 4070wG3hnkz9tvSV; Fri, 23 Mar 2018 12:01:34 +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 W7MXg1myZFTz; Fri, 23 Mar 2018 12:01:34 +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 4070wG3BQQz9tvS3; Fri, 23 Mar 2018 12:01:34 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 0BC1E8B8E4; Fri, 23 Mar 2018 12:01:49 +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 teFCk6Cb22Zu; Fri, 23 Mar 2018 12:01:48 +0100 (CET) Received: from [192.168.232.53] (unknown [192.168.232.53]) by messagerie.si.c-s.fr (Postfix) with ESMTP id D9CFA8B8E1; Fri, 23 Mar 2018 12:01:42 +0100 (CET) Subject: Re: [PATCH 05/19] powerpc/chrp/setup: Add attribute unused and make some functions static 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-6-malat@debian.org> From: christophe leroy Message-ID: <9c166091-970d-7f09-365e-6dceb4742da4@c-s.fr> Date: Fri, 23 Mar 2018 12:01:36 +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-6-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:19, Mathieu Malaterre a écrit : > Add gcc attribute unused to silence a warning. > > 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] > > Signed-off-by: Mathieu Malaterre > --- > arch/powerpc/platforms/chrp/setup.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/arch/powerpc/platforms/chrp/setup.c b/arch/powerpc/platforms/chrp/setup.c > index 481ed133e04b..85df479fd631 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, idu_size __maybe_unused; idu_size is never used, you could remove it completely Christophe > const unsigned int *iranges, *opprop = NULL; > int oplen = 0; > unsigned long opaddr; > @@ -523,7 +523,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 +555,7 @@ void __init chrp_init_IRQ(void) > #endif > } > > -void __init > +static void __init > chrp_init2(void) > { > #ifdef CONFIG_NVRAM > --- L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast. https://www.avast.com/antivirus