From patchwork Mon Nov 2 11:45:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 320253 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp3657719ilc; Mon, 2 Nov 2020 03:47:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJylH7ET//m0enc20nIwSfdlnqJd1i/1hoDh8JtP000Zimk1rMQz6SkRPZq6XhrhXPhwaAqU X-Received: by 2002:a05:6402:1d85:: with SMTP id dk5mr16750349edb.240.1604317653671; Mon, 02 Nov 2020 03:47:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604317653; cv=none; d=google.com; s=arc-20160816; b=mmNsz4agy9CZPEYBClYHUJfU+kE5ZnjdYUW4ctiPxyyeYwfCfcor59bxfiWCb0dpw4 Mv7ypmUgDtBXd4A3Crm/GApGVQ4P0wQFJLJfbe7SGVy73jj3XtzWW2cV7eKoLEGKSbV9 K8aEKWn3TvwwmPraFx/FIVH6AMVNuGraOcNYtc2VtpCK/63osxjPtM0M4vMByYw0TZFv 8PaXEJ7OHL/EHsoMmerOZUjfAzCarhx8wKUol7dtLzN/L6JpYlCflg5kZTzM4+qD+5ea X2Zc6/7Be9MM8Iua3T1dREm7AwMxJxEgiYEqT9qP6i6Me1yzQ3W67RioQJ/BEjaBB2Ye 4SDA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PCJb8WRZZMprUiDuUrCCgk0qpYM+re9rQeuSrQaWY/Y=; b=G2ToAOU7TSiddeB0+nNT4xaFbV7CaRVR7H2TagbdkoRAxeudNOKJ8Heiia/DC+UVAO vJwWRhi7nMLliAZH/ydRdP294+aqoXNp9iH1WNJpXTIr0dhi9YxDBzo5Vs2j3WlDxJEP K+oD0YqSB9rcyYsRhF2DKMWwhYayx52qpnbh9PWhFMS9XVzR73l8zfrLrm28RNMFafPS IuDDUJbAPJ/cqqLGPZNleE2P2vLxwdPrebynw8McatPBEjXucaZCT82IyjHACJNIJNKa Kb1foGgLA2HWrUvSBpj9uEs1Zc2It2OWXnrvZUP73twupaR+L65zxj8pANPVOSyg2SQB TdIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jzCNUlgP; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-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 ay1si10993390edb.3.2020.11.02.03.47.33; Mon, 02 Nov 2020 03:47:33 -0800 (PST) Received-SPF: pass (google.com: domain of netdev-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=jzCNUlgP; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-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 S1728693AbgKBLrc (ORCPT + 8 others); Mon, 2 Nov 2020 06:47:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728689AbgKBLqB (ORCPT ); Mon, 2 Nov 2020 06:46:01 -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 98C70C0401C6 for ; Mon, 2 Nov 2020 03:45:57 -0800 (PST) Received: by mail-wr1-x444.google.com with SMTP id 33so3428599wrl.7 for ; Mon, 02 Nov 2020 03:45:57 -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=PCJb8WRZZMprUiDuUrCCgk0qpYM+re9rQeuSrQaWY/Y=; b=jzCNUlgPqonybZGC9xi6yfUkXjrLgYS6Y7E0FluwJYKBuaSC55hE9+6HTGWXXasTVQ 6PYP//yPFBxL+EPmhuVDOP/fLknimjudGTxtWw+b30dXehEq8woplqI6gSJBOyxyCg9w nZkMigvlHJkx8zzxPyBRu8YrhRil58NV14HYbifDU+aFIx8P9SG48UcsG7L7CaK4mIK1 qZ5ABtHzZmBr472oSWyGjL+MVsIVdDaov0mo2ZT6f9ray7ul2k4VUddmDEsYG0rxtcZl iRA6D0XmWzuJypSBT28JJKhiVOYKuEzv3oxiBVmOOVL91fipPjncZr8WhC6ShVllZMgq fmsQ== 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=PCJb8WRZZMprUiDuUrCCgk0qpYM+re9rQeuSrQaWY/Y=; b=E9JDBbhI70ySmrtqwxfZWLE11nxdz94R5g5JWj/kNgVukZHUk9TMz3HQKhCB+MaATO UGXDjtZ1wzK0EHuHuXdLiYTfaRgbbOvgaemDi4RJJ51EU4vnBfHSBESPpCp8QlQE/uOJ SHSHrazKggVSlB67Cz7TZk0VlvpGwRGghfcoKyzMMMH3djv+LxBT/xDIWMKXCZomap+v ZWo0hKHWn7kQDeoC+ljwLtTYkrS00kZ7soSVX8QLemEnDLW/M9ReBRlVXc05E2dta1Mx /3SK4ytHAqHWtSj0ti2ODmCRHEORxYIeQng7FD09wCj7jw6sjZqkO8jGEYxalgZx6lef xh/A== X-Gm-Message-State: AOAM533zl9A44g9XfMhPxeBjorSJ/VRKUWnxu9YFvcWJB/14aB75i+D8 /4o4rqfEqRwlMz5d0aZDTQNwtg== X-Received: by 2002:adf:eb4d:: with SMTP id u13mr18862571wrn.146.1604317556383; Mon, 02 Nov 2020 03:45:56 -0800 (PST) Received: from dell.default ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id g66sm15545352wmg.37.2020.11.02.03.45.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2020 03:45:55 -0800 (PST) From: Lee Jones To: davem@davemloft.net Cc: Lee Jones , Nicolas Pitre , Jakub Kicinski , Erik Stahlman , Peter Cammaert , Daris A Nevil , Russell King , netdev@vger.kernel.org Subject: [PATCH 30/30] net: ethernet: smsc: smc91x: Mark 'pkt_len' as __maybe_unused Date: Mon, 2 Nov 2020 11:45:12 +0000 Message-Id: <20201102114512.1062724-31-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 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 'pkt_len' is used to interact with a hardware register. It might not be safe to remove it entirely. Mark it as __maybe_unused instead. Fixes the following W=1 kernel build warning(s): drivers/net/ethernet/smsc/smc91x.c: In function ‘smc_tx’: drivers/net/ethernet/smsc/smc91x.c:706:51: warning: variable ‘pkt_len’ set but not used [-Wunused-but-set-variable] Cc: Nicolas Pitre Cc: "David S. Miller" Cc: Jakub Kicinski Cc: Erik Stahlman Cc: Peter Cammaert Cc: Daris A Nevil Cc: Russell King Cc: netdev@vger.kernel.org Signed-off-by: Lee Jones --- drivers/net/ethernet/smsc/smc91x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 diff --git a/drivers/net/ethernet/smsc/smc91x.c b/drivers/net/ethernet/smsc/smc91x.c index b5d053292e717..a3f37b1f86491 100644 --- a/drivers/net/ethernet/smsc/smc91x.c +++ b/drivers/net/ethernet/smsc/smc91x.c @@ -703,7 +703,7 @@ static void smc_tx(struct net_device *dev) { struct smc_local *lp = netdev_priv(dev); void __iomem *ioaddr = lp->base; - unsigned int saved_packet, packet_no, tx_status, pkt_len; + unsigned int saved_packet, packet_no, tx_status, __maybe_unused pkt_len; DBG(3, dev, "%s\n", __func__);