Message ID | 20201102114512.1062724-22-lee.jones@linaro.org (mailing list archive) |
---|---|
State | Not Applicable |
Delegated to: | Netdev Maintainers |
Headers | show
Return-Path: <SRS0=kv5d=EI=vger.kernel.org=netdev-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 67AE0C388F2 for <netdev@archiver.kernel.org>; Mon, 2 Nov 2020 11:48:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0BCE0223AC for <netdev@archiver.kernel.org>; Mon, 2 Nov 2020 11:48:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="IjD0gMxm" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728807AbgKBLsM (ORCPT <rfc822;netdev@archiver.kernel.org>); Mon, 2 Nov 2020 06:48:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728520AbgKBLpw (ORCPT <rfc822;netdev@vger.kernel.org>); Mon, 2 Nov 2020 06:45:52 -0500 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 673ACC061A4A for <netdev@vger.kernel.org>; Mon, 2 Nov 2020 03:45:46 -0800 (PST) Received: by mail-wr1-x444.google.com with SMTP id k10so12873683wrw.13 for <netdev@vger.kernel.org>; Mon, 02 Nov 2020 03:45:46 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=t4/hDwsvOptYgItp/Hg6I8g87o5PfiaXnk0Gr30j7xY=; b=IjD0gMxmeBMbl5Fxzs/adRvcFXbegxhnhe+EHvQBBVselVbzpYWyxza1xqm+HgVhMz Res+pm/vli1k3kxnF1AwcnrKx7OT+cI9CfKhWsxTUI8PKndeBGAr8JL9xUquPHF8b2/A ihGFlslj18W1noJW0ZGPuS0R+AvcIu2eTRYrnS4GN304H691qpO+Occf4Bvpv+hZ6nvv OI6K46SbUH3b2krhX6/UArGwBHsDmduwsZNMEbOCF+5iMLqtBbO7zeqXVjsXwH9Fyrvk SNAjxKcUsOfFcrUvl4x3jw52blAukAR4dRzDaD7swrOge33TIfD8pra6vrCxWayILnMm aXAw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=t4/hDwsvOptYgItp/Hg6I8g87o5PfiaXnk0Gr30j7xY=; b=dHA+KAJWekCpRK7S2mWrLc1eH/PKVTCHrf2afBntFHg49s/l46IUaEaR2Qs73TYyfF NI7JQWUsHD4aBcu0VfS2eNUrO1rf0if1ow3V7WrtXi9lJu9P763eLwMc9qXCEnviUYY2 P0jdXGwqCu6bbqpwCpTbhJV4H36q/fZdiuqfmhZSncetwS0GBwH7xPLUpAVMhP8UGcTR yeU7xm2H4eVrLXoYxXe6nhwq6jw/ynhAb07AHuaBVjg7fd0xMgFDXk342EfZt7k9TuQ/ 4w9gfbx4Y7esXf1HYfMfsGaVLI2ncrQ2+0R7PcckNP++NuxdZvx9hqvTtLrlPFcJBU6e 6P0w== X-Gm-Message-State: AOAM533PkDReYeZeSYARl7Zb5WYOU6OfvX3P5pA3UqcV5wN8FxqzPzj9 deZOyW0He91aYRASK07WbYwudg== X-Google-Smtp-Source: ABdhPJyCgVL1JXYgDh/fD+3/EbFSvF9TbeAHn7Rmj+Ae+8dMfP4pXIDM8+T2FvgZ7NsyMssDD/cTGQ== X-Received: by 2002:adf:e40e:: with SMTP id g14mr18352866wrm.285.1604317545189; Mon, 02 Nov 2020 03:45:45 -0800 (PST) Received: from dell.default ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id g66sm15545352wmg.37.2020.11.02.03.45.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2020 03:45:44 -0800 (PST) From: Lee Jones <lee.jones@linaro.org> To: davem@davemloft.net Cc: Lee Jones <lee.jones@linaro.org>, Jakub Kicinski <kuba@kernel.org>, netdev@vger.kernel.org, linux-parisc@vger.kernel.org Subject: [PATCH 21/30] net: ethernet: dec: tulip: tulip_core: 'last_irq' is only used when i386 or x86 Date: Mon, 2 Nov 2020 11:45:03 +0000 Message-Id: <20201102114512.1062724-22-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201102114512.1062724-1-lee.jones@linaro.org> References: <20201102114512.1062724-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <netdev.vger.kernel.org> X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org |
Series |
[01/30] net: fddi: skfp: ecm: Protect 'if' when AIX_EVENT is not defined
|
expand
|
diff --git a/drivers/net/ethernet/dec/tulip/tulip_core.c b/drivers/net/ethernet/dec/tulip/tulip_core.c index e7b0d7de40fd6..94f615869827c 100644 --- a/drivers/net/ethernet/dec/tulip/tulip_core.c +++ b/drivers/net/ethernet/dec/tulip/tulip_core.c @@ -1293,7 +1293,7 @@ static int tulip_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) static unsigned char last_phys_addr[ETH_ALEN] = { 0x00, 'L', 'i', 'n', 'u', 'x' }; - static int last_irq; + static int __maybe_unused last_irq; int i, irq; unsigned short sum; unsigned char *ee_data;
Fixes the following W=1 kernel build warning(s): drivers/net/ethernet/dec/tulip/tulip_core.c: In function ‘tulip_init_one’: drivers/net/ethernet/dec/tulip/tulip_core.c:1296:13: warning: variable ‘last_irq’ set but not used [-Wunused-but-set-variable] Cc: "David S. Miller" <davem@davemloft.net> Cc: Jakub Kicinski <kuba@kernel.org> Cc: netdev@vger.kernel.org Cc: linux-parisc@vger.kernel.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/net/ethernet/dec/tulip/tulip_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)