Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9782929pxu; Tue, 29 Dec 2020 05:10:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJyBcweG/Vy78BlbmbM68lLZ8BptvHbBYb6BT6WR6glsDpu3zbRvcCsh4f7oKm+xs5BVBKtf X-Received: by 2002:a17:906:410e:: with SMTP id j14mr45756571ejk.253.1609247438379; Tue, 29 Dec 2020 05:10:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609247438; cv=none; d=google.com; s=arc-20160816; b=YQofDsAJVJMA3bOfPoODdGKVhL1C3S8Pn/PmpfvTowoaFHngiOngFNxUlzaOR6afIg rtGyl/ZAP6EM2bgvjGtky+UkVhKK2p61pVQauHnihme7Z/q5htC7CX8goFC4FfcML+2N 2RP4g+Zez/0eizB/eTHMSWtDNy8AiWvDsC6cIZ+zaeJNM/K2tbkig6+Y/8RYx8MlLEwY 5X17xUyEszVaw7zi8Ydmwx3z7p3N4h5gugakPBEJJDqs4WGpu+bAv1a9C/yd0iTo06FU 8BBJB1YuJNI/ShJLOtUTRxmMtufD06uIF7AIM/fa81+5QXhAPV2veJj4vt9t2B+Gnlz4 38NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=55BF9LGP/3e9LMkfd7/X2NTZkoK/W4LemoCa3QSAEtM=; b=hf/l9hVJuxFdllk4GjPSajQLZYRD5wQbRyruri6YcfvXpeRkl6A335vKkRSgJql2Fa n/W/kRMJfUdz0za5veqZWSg7ITstv+QGk7M/GYHNjAfSe6vIaMZFeGB4LJzkJQshgKzJ dKkzcI/TAPga5buSD6BLYjvN9nB4Vf0mJowRaUPKeqaLLZpv4tfqxwlzhyMk/Buo9wv3 WIlaXQG4aZ2w5RIh54HNamXNOaLZPspFJvuwSUYsMWXSjHAGoGjXwrD3W7NxkORaB+Ff JidnXAB+Qdu7s4WPWNQx/L6QWeHmCWXoxIfPiUZeOyjKLaEFmOGEUGNcJiXQMgFviLf7 Rd4A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hj13si20046739ejb.475.2020.12.29.05.10.14; Tue, 29 Dec 2020 05:10:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726492AbgL2NIo (ORCPT + 99 others); Tue, 29 Dec 2020 08:08:44 -0500 Received: from mail-oi1-f176.google.com ([209.85.167.176]:40902 "EHLO mail-oi1-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726274AbgL2NIn (ORCPT ); Tue, 29 Dec 2020 08:08:43 -0500 Received: by mail-oi1-f176.google.com with SMTP id p5so14541704oif.7; Tue, 29 Dec 2020 05:08:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=55BF9LGP/3e9LMkfd7/X2NTZkoK/W4LemoCa3QSAEtM=; b=GbkOQO5vaCuz56PrUaQ9JvaLvlbV5vxcRquXzpRcVqp7lVrcDmSiz5M7M1vl/NAbj7 rlza2a0Ce2NNGzYPzwtVRLzMSNQMt23V7A4Oo1mHjh8ANLipcm+Ls1+IH5jVSVnpbF/U 3WORGZO1Sqeeg4J4SrCsdwcZbEm3lvyWtoObWqzBqEqyX1idgQXcg74kXykZ/9HsRcdI WooXDuysb/pqQTNbDu2dw5c+r0n4lMsTvs2vT4YuvUdgTwEZE2H60UueLX7Yf0GoT78z egEc1u/iAFlUsze5RF0VGHk6lQkTWtZn/FIZC+5AAw+oVpYzze1L3Oog+uCWra2kKGPP TR+Q== X-Gm-Message-State: AOAM532lsHQUEftdCGT2/wuHOaBdk10V7vGq1zRyvJmsTJE+UENcDKkD YiRTiwDxvdAsU81hwpE2A5/7/dTmkwEzmxj523A= X-Received: by 2002:aca:3cc5:: with SMTP id j188mr2267513oia.54.1609247283124; Tue, 29 Dec 2020 05:08:03 -0800 (PST) MIME-Version: 1.0 References: <20201210124422.3858524-1-anders.roxell@linaro.org> In-Reply-To: <20201210124422.3858524-1-anders.roxell@linaro.org> From: Geert Uytterhoeven Date: Tue, 29 Dec 2020 14:07:52 +0100 Message-ID: Subject: Re: [PATCH] sh: kernel: traps: remove unused variable To: Anders Roxell Cc: Yoshinori Sato , Rich Felker , Linux-sh list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 10, 2020 at 1:46 PM Anders Roxell wrote: > When building defconfig the following warning shows up: > > arch/sh/kernel/traps.c: In function 'nmi_trap_handler': > arch/sh/kernel/traps.c:183:15: warning: unused variable 'cpu' [-Wunused-variable] > unsigned int cpu = smp_processor_id(); > ^~~ > > Remove an unused variable 'cpu'. > > Fixes: fe3f1d5d7cd3 ("sh: Get rid of nmi_count()") > Signed-off-by: Anders Roxell Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds