All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Petr Machata <petrm@nvidia.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org
Subject: [jpirko-mlxsw:petrm_soft_counters 6/6] net/core/rtnetlink.c:5486:32: error: unused variable 'ifla_stats_set_policy'
Date: Thu, 4 Nov 2021 10:13:09 +0800	[thread overview]
Message-ID: <202111041001.PddFshai-lkp@intel.com> (raw)

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

tree:   https://github.com/jpirko/linux_mlxsw petrm_soft_counters
head:   7f3ca7ed5c4b775fb9261fd6dfeccf77ad124147
commit: 7f3ca7ed5c4b775fb9261fd6dfeccf77ad124147 [6/6] wip
config: i386-buildonly-randconfig-r004-20211103 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 264d3b6d4e08401c5b50a85bd76e80b3461d77e6)
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=i386 

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

All errors (new ones prefixed by >>):

>> net/core/rtnetlink.c:5486:32: error: unused variable 'ifla_stats_set_policy' [-Werror,-Wunused-const-variable]
   static const struct nla_policy ifla_stats_set_policy[IFLA_STATS_GETSET_MAX + 1] = {
                                  ^
   1 error 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: 37578 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [jpirko-mlxsw:petrm_soft_counters 6/6] net/core/rtnetlink.c:5486:32: error: unused variable 'ifla_stats_set_policy'
Date: Thu, 04 Nov 2021 10:13:09 +0800	[thread overview]
Message-ID: <202111041001.PddFshai-lkp@intel.com> (raw)

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

tree:   https://github.com/jpirko/linux_mlxsw petrm_soft_counters
head:   7f3ca7ed5c4b775fb9261fd6dfeccf77ad124147
commit: 7f3ca7ed5c4b775fb9261fd6dfeccf77ad124147 [6/6] wip
config: i386-buildonly-randconfig-r004-20211103 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 264d3b6d4e08401c5b50a85bd76e80b3461d77e6)
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=i386 

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

All errors (new ones prefixed by >>):

>> net/core/rtnetlink.c:5486:32: error: unused variable 'ifla_stats_set_policy' [-Werror,-Wunused-const-variable]
   static const struct nla_policy ifla_stats_set_policy[IFLA_STATS_GETSET_MAX + 1] = {
                                  ^
   1 error 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(a)lists.01.org

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

             reply	other threads:[~2021-11-04  2:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-04  2:13 kernel test robot [this message]
2021-11-04  2:13 ` [jpirko-mlxsw:petrm_soft_counters 6/6] net/core/rtnetlink.c:5486:32: error: unused variable 'ifla_stats_set_policy' kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202111041001.PddFshai-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=petrm@nvidia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.