Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2436908imc; Tue, 12 Mar 2019 13:57:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8AT3yahwDKgt2H+yJv9iWDJ1EUyQC0w5ZC0xXPPvKjjWNHwu5b+nVm+3ICitxtrlZxobP X-Received: by 2002:a17:902:9304:: with SMTP id bc4mr42627308plb.81.1552424256544; Tue, 12 Mar 2019 13:57:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552424256; cv=none; d=google.com; s=arc-20160816; b=CjtONh+XxKbPef0FqvsDM1IpS5DIhs3gr8+kzM2a2ucyruyhJ/VpUtoPIVR6lyvqVc maF5N439Sp0Ftth1rQ/SQTdabhvMTrW0kp4aEKseh3rHq73CTY5M6Hd9rFvf4PfEe5pu 2MRPCs2mVwS2R+/8WTDXMN509SJBp2EZQpQVprOEltKjdSzGqN9aSCgNRqr8YgJnw+7s Uc+InM2XHNqYe6bfl6A5/yDkgL74yO1VGZd/R85cGrCWdC8Zx06dnw551WcdFDzbaCMu 6AQ4jDZIZ0fSa8av4uTeIsmeTivLUzTyNove457e6Ih7AwUl3DaS11X6djhJ2AKjXOy7 A9hw== 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:dkim-signature; bh=ma12Y6RsnhRzCTumhsFUFzmI7UYA2S9LBdNggvbgfh4=; b=JF/8M6j6gJO9TxIPNXJZXZU0iKDOwvybniwNEnPI8aH1E8erP2lMzGcJryFoRcVNLM j+SIKxGSBDLvk2XWqzor1q/L+rSarkx9uIdfe8mFA7L3Hdere9st5134vpk9wVukBhLY s2voLgEgi/vBc1T0B+DltSU0tBY96nLtRvul3nQ6ExRFsozvAZ+TwBxPimN5xa5XrswV EmPTO60N8RHdVfuik8BA9zoeKm8+Lk53fdz1tc1j6hnP1V3bM4kVfOhZHU7l1prKUK6D Y6y4TDZYYZr7vp9Ib2Im7+PLnzsSxlvcOg9HPMisajpAgVXMvdJl76E63zYWVEJ3tb9q SEMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=j+7NkOIc; 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 r1si218664plb.367.2019.03.12.13.57.21; Tue, 12 Mar 2019 13:57: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; dkim=pass header.i=@c-s.fr header.s=mail header.b=j+7NkOIc; 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 S1726656AbfCLU4m (ORCPT + 99 others); Tue, 12 Mar 2019 16:56:42 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:36821 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726534AbfCLU4j (ORCPT ); Tue, 12 Mar 2019 16:56:39 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 44JnMT37Mpz9tyk3; Tue, 12 Mar 2019 21:56:37 +0100 (CET) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=j+7NkOIc; dkim-adsp=pass; dkim-atps=neutral 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 ZcMN-w2vrowR; Tue, 12 Mar 2019 21:56:37 +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 44JnMT228Hz9tyk2; Tue, 12 Mar 2019 21:56:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1552424197; bh=ma12Y6RsnhRzCTumhsFUFzmI7UYA2S9LBdNggvbgfh4=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=j+7NkOIcSOtL2Zr7m1ZKmqzCnx7pzpi7kQTqWvw7JcMF6x9Wfd3t1eGYLaRC4v9KI buY/zpWcVu2j2yef2WYcEuMXArRIjDS7tllj0Txwv4tx352klG5RLA/YY4pLK2gPzF ovkURbG7rdfgoABjJEMpMoeX0bAu7aBv/Wsw5W14= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 65D7B8B8B1; Tue, 12 Mar 2019 21:56:37 +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 YEhftJxJO-Tp; Tue, 12 Mar 2019 21:56:37 +0100 (CET) Received: from PO15451 (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id EF75B8B8A7; Tue, 12 Mar 2019 21:56:36 +0100 (CET) Subject: Re: [PATCH] powerpc: sstep: Mark variable `rc` as unused in function 'analyse_instr' To: Mathieu Malaterre , Michael Ellerman Cc: Paul Mackerras , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org References: <20190312202008.29681-1-malat@debian.org> From: Christophe Leroy Message-ID: <57a0d93c-8784-d6af-a5fb-75e31455ae57@c-s.fr> Date: Tue, 12 Mar 2019 21:56:36 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.3 MIME-Version: 1.0 In-Reply-To: <20190312202008.29681-1-malat@debian.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 12/03/2019 à 21:20, Mathieu Malaterre a écrit : > Add gcc attribute unused for `rc` variable. > > Fix warnings treated as errors with W=1: > > arch/powerpc/lib/sstep.c:1172:31: error: variable 'rc' set but not used [-Werror=unused-but-set-variable] > > Signed-off-by: Mathieu Malaterre > --- > arch/powerpc/lib/sstep.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/powerpc/lib/sstep.c b/arch/powerpc/lib/sstep.c > index 3d33fb509ef4..32d092f62ae0 100644 > --- a/arch/powerpc/lib/sstep.c > +++ b/arch/powerpc/lib/sstep.c > @@ -1169,7 +1169,7 @@ static nokprobe_inline int trap_compare(long v1, long v2) > int analyse_instr(struct instruction_op *op, const struct pt_regs *regs, > unsigned int instr) > { > - unsigned int opcode, ra, rb, rc, rd, spr, u; > + unsigned int opcode, ra, rb, rc __maybe_unused, rd, spr, u; I think it would be better to enclose 'rc' inside a #ifdef CONFIG_PPC64 Christophe > unsigned long int imm; > unsigned long int val, val2; > unsigned int mb, me, sh; >