Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp31285imu; Wed, 7 Nov 2018 12:27:28 -0800 (PST) X-Google-Smtp-Source: AJdET5eH5GoctTwWUwqOmD30bDqg+a3RHaJWwLvmpvnlMTLnk7a/nwCfMy3HBe7QY6EcDttLWBP5 X-Received: by 2002:a63:801:: with SMTP id 1mr1425274pgi.275.1541622448833; Wed, 07 Nov 2018 12:27:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541622448; cv=none; d=google.com; s=arc-20160816; b=C9pr6padoh9rRIewnfCafhCuflcEtBz6OMRjwz8n0w1THihkQ5Aukw6sOhkGMbLRrK PzzTbiUpYz0umn5PbhULvoZpLyY3q2uWiKQn4fVhHxNOYYqN4onOVvCqBh8haGUlOk4m cINh5JszEam/yZgDODNReYUAD7+mL4E72NgUt8TJg/P7v2/UMQMOaVhKuXhDyyb/Ngdb 1cQ1dY0bJrlQEi+Ns3aGCPseK96KUXlcYw1Sv7pEudsLXvgoqmMz0CJWwpqdem8xX/W3 H1cfheYWodQ1vCZ63fXz3+/gD27Oxy6IEq9XEbSZeA7xZQFqBSWIqw+vNh5tyBZx4TSh bQ5A== 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=oqwrTTqvGsUpLX2SWvD7XWIT2tTdoRIiwxsCG3LUJnc=; b=kov6al6iMY56/VCPxO9YxEL+vEyc1EDuedkcr68ELrXnKExvjAS2Xqftb8PC0olY9D Hg4OTFcc5dDcIa3DRUwfL3u5ARkZv1UJBsdrLWTBIhoGndIY+mbbaTfYsju7NrYtzYsR wc0PL5P7m5APGpoz6dTb9jfevnAB9HKHknx2DtmW51fpWt19VldOnZvlyWgXEvTAu/+w I2E2au3kyjOv+fzLqc98lsXE/hWI5wJzGwxXkisqMoxRNjl977ikLowz84CSAukRz5Ga 1ATyyJdkSU3a36YnCYaNpOXUFkTszaqxnxBgOXxOHVrN1L6Ij8fuJz0YvTjy9EBgx3On hjWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Qxtj3hc2; 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 i20-v6si1357629pgk.562.2018.11.07.12.27.13; Wed, 07 Nov 2018 12:27:28 -0800 (PST) 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=Qxtj3hc2; 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 S1727062AbeKHF6q (ORCPT + 99 others); Thu, 8 Nov 2018 00:58:46 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:42164 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726697AbeKHF6q (ORCPT ); Thu, 8 Nov 2018 00:58:46 -0500 Received: by mail-wr1-f67.google.com with SMTP id y15-v6so18806068wru.9 for ; Wed, 07 Nov 2018 12:26:46 -0800 (PST) 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=oqwrTTqvGsUpLX2SWvD7XWIT2tTdoRIiwxsCG3LUJnc=; b=Qxtj3hc2m3rjDLj86DqFS0SG3/MQwRYZHk2fnZavQnjY7kRIgoVdcmHkInbTaYzn62 n6tyvBShSyfofdBwcMWxGhCyKAUTzUH9gdMArubI8XsK8afN/hH8gf3hTEs9HmBPDZ1O 14hvQEKJA+ZnP5VRYUQSyXOzYFjbOYyU5CKcbN/JdFt+oGnAIBSZcWxk7ffsmyztu8EX WWUQcfX6okOqya632GNpUA2PSWvGu8w8ZXsCnBnDQypZMEnKiCHwcVvyY6eywwdqdQl8 wzD6FxqKl6+6/Zclmj6jgHu02YlsZQ/ycL3iBr482As5ZZfz9m5HdG45GbGfih5P3LIR g5uA== 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=oqwrTTqvGsUpLX2SWvD7XWIT2tTdoRIiwxsCG3LUJnc=; b=rOtb1iOdn2Im76KoZRRif54Efu3c920fTyHMOBM14w/0V4yVzJeSRApPNWh3BG1T3U gbgvXWNF0GcGC+SxVfSqGIRpK6D1mkNekPAJkAdeLoEsQYdH2RjuPBkkHVBKIP8xv8lT WNzlVD6R/OJtjlhdzXxE3Kq4gVwLtNUBWTGH/evyWJY78l6WDqWiss1UIQfp8yCouRON 7a4AEGctF1QELdolvvTq8t3fILw9WMeQ9h03m+bjnz81H+DfD37jjJkonytFlDeGmbQI hqs7amQa4AtRZ7tCZKRRDx0pn7yyHoKi3UfF37XyWW7Qd3wyql1g5x8CNpHIlZh7WYjJ mJBA== X-Gm-Message-State: AGRZ1gJMeXaV3TK7GfoL43ODjkFb938Xg32BuklPM44ChC//F40rBl7S +HBO8qEg3vbFU53cCvO8mTo= X-Received: by 2002:adf:d1c6:: with SMTP id m6-v6mr1575709wri.138.1541622405551; Wed, 07 Nov 2018 12:26:45 -0800 (PST) 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 f67-v6sm1892405wme.22.2018.11.07.12.26.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Nov 2018 12:26:44 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 129C61142B69; Wed, 7 Nov 2018 21:26:43 +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: Mark variable `cpumsr` as unused Date: Wed, 7 Nov 2018 21:26:41 +0100 Message-Id: <20181107202641.7865-1-malat@debian.org> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 `cpumsr` variable. Fix warnings treated as errors with W=1: arch/powerpc/kernel/process.c:231:16: error: variable ‘cpumsr’ set but not used [-Werror=unused-but-set-variable] arch/powerpc/kernel/process.c:296:16: error: variable ‘cpumsr’ set but not used [-Werror=unused-but-set-variable] Signed-off-by: Mathieu Malaterre --- arch/powerpc/kernel/process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index 96f34730010f..b9f1a2408738 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c @@ -228,7 +228,7 @@ EXPORT_SYMBOL_GPL(flush_fp_to_thread); void enable_kernel_fp(void) { - unsigned long cpumsr; + unsigned long cpumsr __maybe_unused; WARN_ON(preemptible()); @@ -293,7 +293,7 @@ EXPORT_SYMBOL(giveup_altivec); void enable_kernel_altivec(void) { - unsigned long cpumsr; + unsigned long cpumsr __maybe_unused; WARN_ON(preemptible()); -- 2.11.0