linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [jpirko-mlxsw:petrm_soft_counters 6/6] net/core/rtnetlink.c:5486:32: warning: unused variable 'ifla_stats_set_policy'
@ 2021-11-04  9:22 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-04  9:22 UTC (permalink / raw)
  To: Petr Machata; +Cc: llvm, kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1848 bytes --]

INFO skip CC for reported error in another kconfig

tree:   https://github.com/jpirko/linux_mlxsw petrm_soft_counters
head:   7f3ca7ed5c4b775fb9261fd6dfeccf77ad124147
commit: 7f3ca7ed5c4b775fb9261fd6dfeccf77ad124147 [6/6] wip
config: hexagon-randconfig-r041-20211103 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 847a6807332b13f43704327c2d30103ec0347c77)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/jpirko/linux_mlxsw/commit/7f3ca7ed5c4b775fb9261fd6dfeccf77ad124147
        git remote add jpirko-mlxsw https://github.com/jpirko/linux_mlxsw
        git fetch --no-tags jpirko-mlxsw petrm_soft_counters
        git checkout 7f3ca7ed5c4b775fb9261fd6dfeccf77ad124147
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> net/core/rtnetlink.c:5486:32: warning: unused variable 'ifla_stats_set_policy' [-Wunused-const-variable]
   static const struct nla_policy ifla_stats_set_policy[IFLA_STATS_GETSET_MAX + 1] = {
                                  ^
   1 warning generated.


vim +/ifla_stats_set_policy +5486 net/core/rtnetlink.c

  5485	
> 5486	static const struct nla_policy ifla_stats_set_policy[IFLA_STATS_GETSET_MAX + 1] = {
  5487		[IFLA_STATS_GETSET_UNSPEC]		= { .strict_start_type = 1 },
  5488		[IFLA_STATS_SET_OFFLOAD_XSTATS_HW_STATS] = { .type = NLA_BITFIELD32 },
  5489	};
  5490	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 33189 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-04  9:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-04  9:22 [jpirko-mlxsw:petrm_soft_counters 6/6] net/core/rtnetlink.c:5486:32: warning: unused variable 'ifla_stats_set_policy' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).