Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1251291imj; Thu, 7 Feb 2019 21:11:28 -0800 (PST) X-Google-Smtp-Source: AHgI3IZIx9EtOxWjhFX9eKmeRTr7v3i8XikzlH9zEBDry/z+xIIjc1uZ3s8gBvbDgfi65Dxs42cC X-Received: by 2002:a17:902:bd0b:: with SMTP id p11mr20731821pls.259.1549602688254; Thu, 07 Feb 2019 21:11:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549602688; cv=none; d=google.com; s=arc-20160816; b=RTy2wk0HBRZVLtsOFJdR92qiHrkYjL3zEq2NTGde9lbIac6pk1IjOEklmPB/0kVylq hXUV4tBt6BKIznTPoqs74/BAfAIzYCCgT65qMmY1m+aZl/yFhGKQ/10m3qgpNIYOXIZ0 FSAgPGuKCyaOnwO14sN7YmekK7s75m4Tn+jqfzXhdFA1Jprw/k3/c90z1KuJoz/4bHG4 NrMB2bSBKO28mDClpesJyTKe+OV2MmR/HBhHoD3EjeYo7P3RfvEgLO6k7myn+TDdhDiE Q+Dn/7nkktS7ITw0bg9GF7FF9ds8Ff5+JOb/0QDCOXjpmju5Gg8fB2SjoW4HY/vB+TG2 3HBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=Xpmvty5nL0sZvatl2VW477OUNsqZQSbd+CWBQl8OdMU=; b=kRlYGtgBVRvrEuWVVcGh1lfRXe5xhOxXHWSzNnZlDarauIa71h/QpFIJRe30HuTfJP B6R+2cwHPo5o11pOCM8jWzv+DKkeLVdig7F69xdE4WOLJUjrfCbZ5lIQp4kfB4h5ZWcY 00t6dP62qxSynQ4298Rr0Y2r9ps2bKxpFSSsW7O8l2RIuJ20glKgIsgrEQ/N0JeMLQvw n8V63V/Bk29PUCl+kYEgNqaXnV7ad1/O51oOxOb3KcHAyOGyMcXqzEAR8tk1ZaOfUmMa QixTjvJEZqm+gCTzllN7BKqBgcGn+1q8YWULUFbnlbOXoRi7UBaLd4i50L+ozoMK5zGD cVxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uN0PHAwu; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l22si1208147pfg.275.2019.02.07.21.11.12; Thu, 07 Feb 2019 21:11: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=pass header.i=@gmail.com header.s=20161025 header.b=uN0PHAwu; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726916AbfBHFJ1 (ORCPT + 99 others); Fri, 8 Feb 2019 00:09:27 -0500 Received: from mail-ed1-f43.google.com ([209.85.208.43]:44160 "EHLO mail-ed1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725901AbfBHFJ0 (ORCPT ); Fri, 8 Feb 2019 00:09:26 -0500 Received: by mail-ed1-f43.google.com with SMTP id y56so1723375edd.11; Thu, 07 Feb 2019 21:09:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=Xpmvty5nL0sZvatl2VW477OUNsqZQSbd+CWBQl8OdMU=; b=uN0PHAwubKZo7UxNHzhh3y9dkX63+kZjKJbMOrJHnivyBSOsLVxVu9nSyFCL1pONVm qQwMNnfumfOwJ5Yzyl7vOJc+tUROTfu41IHRGeJk7vnshGFSd8FhujwlwWygcBcrGhk9 uSR+2cL23ohOw9alPirGPnYEKzM27QFQ4LQFCEhrrGPR30nGSt9oWzKP1ml1Ksz1GHbp oILb0fITlvQGtEzl1ohSb4zLcpPR/NhNXLbUNzXaU/WgdVhdx9YR7/BtSuRKe92HNMYW Y+2XG6J0jRpoGkAA7Yfxzub9RLXpZk6gyoSZx3aNe9R9TE5SgKhUSaoz++xsAYnR1jBO V31A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=Xpmvty5nL0sZvatl2VW477OUNsqZQSbd+CWBQl8OdMU=; b=QOwyr8AXSYj/gpMWCuUkkiHxH5UFr93LTlMNfgC1EquJeRQEr7/ztQr86bIPKk6lou vYbch4VI3efH2D9jpuq4OjhQ7VsuyehYVdn06fmNYXAm6mmIoflm4Go5MfWELdnoVgOb gAntSIDh4F2aj7eAMHJQNOG3xPmF3/5r075f+EycgUBMSkbOEXc7uPDmewTyQ+0INnmq b/yZGU858z3A4S6+m9TG25Dh0TkbuF5R60BfP7NYlg2fFrdw2qnf828NIqkXxb8bkYI2 tq/bWecFBUSSzKIRiN3d10RxtSMjW0b0DZtnzi2EyYAIDpHq5THB+hHzqkWX54Pbn6ZC mmnA== X-Gm-Message-State: AHQUAuacK+HTaoKFtu8bxTosEg7lc0H26+lKiZqTVPcCJZpl+W8wi5Jr HLKep8tbZ13B7YCOO2qI+ITsjaWIKRNiww== X-Received: by 2002:a05:6402:754:: with SMTP id p20mr315195edy.258.1549602564280; Thu, 07 Feb 2019 21:09:24 -0800 (PST) Received: from archlinux-ryzen ([2a01:4f9:2a:1fae::2]) by smtp.gmail.com with ESMTPSA id v2sm336792edr.46.2019.02.07.21.09.23 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 07 Feb 2019 21:09:23 -0800 (PST) Date: Thu, 7 Feb 2019 22:09:21 -0700 From: Nathan Chancellor To: Sasha Neftin , Jeff Kirsher Cc: Aaron Brown , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Nick Desaulniers Subject: Clang warning in drivers/net/ethernet/intel/igc/igc_ethtool.c Message-ID: <20190208050921.GA8758@archlinux-ryzen> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, After commit 8c5ad0dae93c ("igc: Add ethtool support"), Clang warns: drivers/net/ethernet/intel/igc/igc_ethtool.c:9:19: warning: variable 'igc_priv_flags_strings' is not needed and will not be emitted [-Wunneeded-internal-declaration] static const char igc_priv_flags_strings[][ETH_GSTRING_LEN] = { ^ 1 warning generated. igc_priv_flags_strings is only used in an ARRAY_SIZE macro, which is a compile time evaluation, so no reference to it is being emitted in the final assembly. Is it actually needed and was forgotten to be used somewhere or could it be eliminated so that Clang no longer warns? Thanks, Nathan