Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4752955pxu; Thu, 10 Dec 2020 04:48:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJzkb29K1pkZvdAgGg8KrOjiU464fKmd2KnnUSNUsGfL8Qu036vewpHZv+fTndru3fiuQR6y X-Received: by 2002:aa7:dbc3:: with SMTP id v3mr6835455edt.199.1607604512845; Thu, 10 Dec 2020 04:48:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607604512; cv=none; d=google.com; s=arc-20160816; b=sKBfSYE4z/wUTOjhuwHvZkoNEiBhYT3cZwM5dxuEBu9AyiQ6fOJ98/TzW0DS2sB6A/ 0LuqzrfY29j4c2fCDG7GQ/y3xdnwh3MPhkrwpnDs1Tz9pa1qmPnPxKOfvqztfWUZr5fr ozaGP6kE4At1VQM68s0azSB87HTarMXrjLmIWYLa+4335E2GMnRMzao3NHA6uHRtzTwc 50HP+ncHMceIShuAHg2IMgQ2V1iOCfcrd8cC9kYw/U9Un+zTAXhz+23BtJIhxM44n4Jg GEck9V8TXzcSJArkrwlkHcVM/QIru49JFDj7jLtIveETM5uqhGY3GJZ9Q1wBMdS3MHrP DGQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=gXISkJRfuu29yjZKwNcwIYWwxoidthXqPj4iaxzKDlc=; b=w9b9t/z9Oqh/CJ7Z8iCZyfZSJ33+D5WFZ9LRDnL1L9bD2KRS17Ghhr29U0n0w3CDfO EYn62PdtG8oFPm3RaPwbZMHiJFHrg0OjTVv2PS88My1EqyXn3C+M0KMWwmiUypXI4Ay+ 3aFygDk7yw+2lQkVh2Cqz56dMNbGcrVjpctrRwP5cneBCH0hYcTHnExxIkUskGD2PM5+ 10+Sey7ysdFcL4N8QGdDa0G9FmkL5wnalEDpWuKnKCFnNb/HYT1HzhQYVjJKiLi7FoRN 1ehXfF9hhhKUM2+wGIS7HSInvKrbxTSTi0erifbEn5ytshxNDPZNaETP5QgOxLRBACX3 wL5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Fz8/+pHJ"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 24si2486363ejx.108.2020.12.10.04.48.09; Thu, 10 Dec 2020 04:48:32 -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; dkim=pass header.i=@linaro.org header.s=google header.b="Fz8/+pHJ"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732303AbgLJMpV (ORCPT + 99 others); Thu, 10 Dec 2020 07:45:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732260AbgLJMpI (ORCPT ); Thu, 10 Dec 2020 07:45:08 -0500 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CE9EC0613D6 for ; Thu, 10 Dec 2020 04:44:26 -0800 (PST) Received: by mail-lj1-x243.google.com with SMTP id f11so6505398ljm.8 for ; Thu, 10 Dec 2020 04:44:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gXISkJRfuu29yjZKwNcwIYWwxoidthXqPj4iaxzKDlc=; b=Fz8/+pHJLyY0S6eIVmi7KN83r5sa2zEd+2fV9GFcAdBbY/A5VTUhlzKFQgXgA+3MjL bcCILtKcRi/c4GFV9iif2seMC3bJe5ExwfFFzODPnVcCgFxSmGkfhn8nZSl2xv9JDzEf 0VQdIb3MZPmod0JAUZ4i9dz3dZE+rUCEvbNRUqGxPSMOMC4upWNHFho+uDGvtMdYHr6s c+mCRuUxxREqNPFasZ+aktHEHECgvuZJenlS5S4sPRtE5aH9ZWV/pMqZaS4m80xo2so4 mTe1qMoIO0CBwBOkiRK87fBvmofjsAoOHt3xEh/MxZBHjm+AZnWlPPRJ8l867VrkTOU3 lKdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gXISkJRfuu29yjZKwNcwIYWwxoidthXqPj4iaxzKDlc=; b=TJXh4YZzH3zyOEaQcpFPPFm37obIzMwq0Lb9kBpcUgyRZQp9wL6exOojHx99Bnb0ZU qb6Zmjoj4z8bYo7EZBovEBRIhaE4kNA7t7Hvp67yx+AAH5nuCxRTIUD70H0l8ac9cK6p rjhwOqwDOsEzS2G+qvyB9aiBSWvBGoVVTBIGCMkgR0KiEqdHqSOy7sDmyJNuErv+XQ6L rX53pJQg60Sc5x/f7wKn5ebHAnZKtkLhhzYkeHwJ8BUPlyURzGn+Uox1cryhBNprM1p+ 3IrFP7pBkzhCyrzoY8RNN5lIgVbPUPs+Wa2XVJgJvnwDE9mA9ppU2gwOaYIWIjlSRcPU 3NVQ== X-Gm-Message-State: AOAM530dzaxJ5njuugjcmKubwdBPolQifswIbP3VSPQ5DGQdRFn+Doni VK8vVI7Jnd+I45cVzlR/RCnQ6w== X-Received: by 2002:a2e:1657:: with SMTP id 23mr2951196ljw.12.1607604264913; Thu, 10 Dec 2020 04:44:24 -0800 (PST) Received: from localhost (c-9b28e555.07-21-73746f28.bbcust.telenor.se. [85.229.40.155]) by smtp.gmail.com with ESMTPSA id z20sm592544ljh.86.2020.12.10.04.44.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Dec 2020 04:44:24 -0800 (PST) From: Anders Roxell To: ysato@users.sourceforge.jp, dalias@libc.org Cc: linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] sh: kernel: traps: remove unused variable Date: Thu, 10 Dec 2020 13:44:22 +0100 Message-Id: <20201210124422.3858524-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- arch/sh/kernel/traps.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/sh/kernel/traps.c b/arch/sh/kernel/traps.c index f5beecdac693..e76b22157099 100644 --- a/arch/sh/kernel/traps.c +++ b/arch/sh/kernel/traps.c @@ -180,7 +180,6 @@ static inline void arch_ftrace_nmi_exit(void) { } BUILD_TRAP_HANDLER(nmi) { - unsigned int cpu = smp_processor_id(); TRAP_HANDLER_DECL; arch_ftrace_nmi_enter(); -- 2.29.2