Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2414274imc; Tue, 12 Mar 2019 13:22:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqz/oESTxQieGoNM4FpwGt6f8Hz5yFZ9YciBYKTioUS3K4d8qWPVsNzQymj8WPQmxvVHWGBU X-Received: by 2002:a65:6210:: with SMTP id d16mr23197986pgv.189.1552422127881; Tue, 12 Mar 2019 13:22:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552422127; cv=none; d=google.com; s=arc-20160816; b=VBuUhMfwtMFkKU9hnqKtggxet7OwHO97RS+90ABJ/yR4QpdGnwgxht3E/clfFOJtag CzZENiej62a8hfTRiNycSUPuD+BWN9k01A0oytzgj2149oG40FJzRlZAYlWHJW2sVGkf VqgXnKSmMMS4bnV7DmMcreUwt666UZtuHvnFEvc/s+Cy3Ab/LgrPcMT94qLmF4ms4PFN sVPoUGN/FVtqjrWzSvL4gqnLSrXEE8a6g8P/UdaZYgVCBNo/3dHvPS6DgMi8EqhL/i+N nsuD5y665CtPYcBBdGy2d0coOR2aixh9Zg3XmalagZyN2JkyIZoY8JvljdIkni51osqU NBjA== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=IeWM4AXVY/e4lDQuN3ToH4SBkbwPxft+9TDRwgvEvBs=; b=xPM2gvGfbV+fKhgIcvfAyYgil+Q+h3t7A/KlQe1n2VbDnZNy3zsY9v9KMxiskOsjKe hEK2Pm7RvG7lj7z7PBVXQw1e/pEw0PlsCULQzGrBgYhfxri3JULzQoVwRHAWC4xliVuf Zr8yRb58H9XDk7TW3U6Hth1+NE5t25RI6I9AjDLKRIvGgYUCOqmti/MSwzuPynQ1sjT2 kThd8qieqPbUaSnmKaYC42t1Ah7mLoTCLtrG7y7lZopm1JjiROWneMTgbLJevhlAF3EM p+OJNahT8Wlcrm90aImXtES1p7vRrGorcDmAmjhdiTaZ7308cwZRm5Wd9N/lnNTyd9L4 cUIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=jhzIYV8c; 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 d21si8974650pll.437.2019.03.12.13.21.51; Tue, 12 Mar 2019 13:22:07 -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=fail header.i=@gmail.com header.s=20161025 header.b=jhzIYV8c; 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 S1727324AbfCLUUR (ORCPT + 99 others); Tue, 12 Mar 2019 16:20:17 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:53332 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726487AbfCLUUQ (ORCPT ); Tue, 12 Mar 2019 16:20:16 -0400 Received: by mail-wm1-f66.google.com with SMTP id e74so4058702wmg.3 for ; Tue, 12 Mar 2019 13:20:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IeWM4AXVY/e4lDQuN3ToH4SBkbwPxft+9TDRwgvEvBs=; b=jhzIYV8cVGg4JVIrmaONRCp7pEMdS+N6PONtCtg3RduPoubskkxozYeGyDDUNmGlkk PZ21bveBsO6Qf7W+ynvpZ9OdHyFaP9Xwi404CN1qy90r4VuvDaru2ksI+ouZu1QN5OL7 sMzoSRP/e8bG2Ml0lCaXt8mUtglACoRmIH+I1vYAEQcaR92LPVcM5LhzLxgOOqk6Fmxn HxveI2fiGndThJ7x7Bg+iO4KvIEhfq6ZB9aFkzOtCyUkA+VTe440VD9dW5GhjBhCMHAP aIlytgntiKJrg3g12gcA7rCs4Pcedq7AJN0ijG9eu24OAEZGHeYtSDUbT2HGQowAa4Y3 g0GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=IeWM4AXVY/e4lDQuN3ToH4SBkbwPxft+9TDRwgvEvBs=; b=aNFQgPgppjo87F0jbL00wF5unCk+Q8QGVf0KTojWwzguFaD/9oO/cQakp2RwpZxkJJ +SlnVCi+oQetqLMz7xIZnWLJjwfBgOkYg6lXM3SOUf3RD0xWXuie/PViWKarn4mJ4mJz MIzGr59RRa378FvszKHkBBVN1SPPKpLsaPGEBi4tWSI3IfiQ7/3N6+xvWAPy+AyUKGNy 9ia8Y4R9f1sy+2TJ7IKQ/5bVGLrbAYm6s9gFB6imRv4ZcceJ1nt/183Sn0hI0HSbTwcm MuCCTIKkEqdVk0Puw45AQPY8p8CFKEC749sdhhAdKLTvIgEW0Tvs4IJ1s06dSGPVMZbf fbtQ== X-Gm-Message-State: APjAAAXqxCiyHrs6VLy08/iydmBBSCral8t700c2VEXQnarHpZ++Yu8U xMUCMMDTbOuMxrE+Uqqzg1U= X-Received: by 2002:a1c:35c5:: with SMTP id c188mr3514485wma.79.1552422014832; Tue, 12 Mar 2019 13:20:14 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-224-134.fbx.proxad.net. [78.225.224.134]) by smtp.gmail.com with ESMTPSA id t2sm1601787wra.9.2019.03.12.13.20.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Mar 2019 13:20:14 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 2BD9F114655E; Tue, 12 Mar 2019 21:20:13 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Cc: Mathieu Malaterre , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH] powerpc: sstep: Mark variable `rc` as unused in function 'analyse_instr' Date: Tue, 12 Mar 2019 21:20:08 +0100 Message-Id: <20190312202008.29681-1-malat@debian.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; unsigned long int imm; unsigned long int val, val2; unsigned int mb, me, sh; -- 2.20.1