[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190208050921.GA8758@archlinux-ryzen>
Date: Thu, 7 Feb 2019 22:09:21 -0700
From: Nathan Chancellor <natechancellor@...il.com>
To: Sasha Neftin <sasha.neftin@...el.com>,
Jeff Kirsher <jeffrey.t.kirsher@...el.com>
Cc: Aaron Brown <aaron.f.brown@...el.com>,
intel-wired-lan@...ts.osuosl.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org,
Nick Desaulniers <ndesaulniers@...gle.com>
Subject: Clang warning in drivers/net/ethernet/intel/igc/igc_ethtool.c
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
Powered by blists - more mailing lists