public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ido Schimmel <idosch@nvidia.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [RFC PATCH net-next 06/13] rtnetlink: bridge: mcast: Move MDB handlers out of bridge driver
Date: Sun, 5 Feb 2023 18:36:04 +0800	[thread overview]
Message-ID: <202302051820.pWDrttJj-lkp@intel.com> (raw)
In-Reply-To: <20230204170801.3897900-7-idosch@nvidia.com>

Hi Ido,

[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on net-next/master]

url:    https://github.com/intel-lab-lkp/linux/commits/Ido-Schimmel/bridge-mcast-Use-correct-define-in-MDB-dump/20230205-011545
patch link:    https://lore.kernel.org/r/20230204170801.3897900-7-idosch%40nvidia.com
patch subject: [RFC PATCH net-next 06/13] rtnetlink: bridge: mcast: Move MDB handlers out of bridge driver
config: i386-randconfig-a002 (https://download.01.org/0day-ci/archive/20230205/202302051820.pWDrttJj-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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/intel-lab-lkp/linux/commit/dd1f784995f3efdbf26e2b2694a0cd1ca181d35e
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Ido-Schimmel/bridge-mcast-Use-correct-define-in-MDB-dump/20230205-011545
        git checkout dd1f784995f3efdbf26e2b2694a0cd1ca181d35e
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

>> net/core/rtnetlink.c:6105:2: error: call to __compiletime_assert_651 declared with 'error' attribute: BUILD_BUG_ON failed: sizeof(*ctx) != sizeof(cb->ctx)
           BUILD_BUG_ON(sizeof(*ctx) != sizeof(cb->ctx));
           ^
   include/linux/build_bug.h:50:2: note: expanded from macro 'BUILD_BUG_ON'
           BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
           ^
   include/linux/build_bug.h:39:37: note: expanded from macro 'BUILD_BUG_ON_MSG'
   #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                       ^
   include/linux/compiler_types.h:358:2: note: expanded from macro 'compiletime_assert'
           _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
           ^
   include/linux/compiler_types.h:346:2: note: expanded from macro '_compiletime_assert'
           __compiletime_assert(condition, msg, prefix, suffix)
           ^
   include/linux/compiler_types.h:339:4: note: expanded from macro '__compiletime_assert'
                           prefix ## suffix();                             \
                           ^
   <scratch space>:20:1: note: expanded from here
   __compiletime_assert_651
   ^
   1 error generated.


vim +/error +6105 net/core/rtnetlink.c

  6096	
  6097	static int rtnl_mdb_dump(struct sk_buff *skb, struct netlink_callback *cb)
  6098	{
  6099		struct rtnl_mdb_dump_ctx *ctx = (void *)cb->ctx;
  6100		struct net *net = sock_net(skb->sk);
  6101		struct net_device *dev;
  6102		int idx, s_idx;
  6103		int err;
  6104	
> 6105		BUILD_BUG_ON(sizeof(*ctx) != sizeof(cb->ctx));
  6106	
  6107		if (cb->strict_check) {
  6108			err = rtnl_mdb_valid_dump_req(cb->nlh, cb->extack);
  6109			if (err)
  6110				return err;
  6111		}
  6112	
  6113		s_idx = ctx->idx;
  6114		idx = 0;
  6115	
  6116		for_each_netdev(net, dev) {
  6117			if (idx < s_idx)
  6118				goto skip;
  6119			if (!dev->netdev_ops->ndo_mdb_dump)
  6120				goto skip;
  6121	
  6122			err = dev->netdev_ops->ndo_mdb_dump(dev, skb, cb);
  6123			if (err == -EMSGSIZE)
  6124				goto out;
  6125			/* Moving on to next device, reset device's markers. */
  6126			memset(ctx->dev_markers, 0, sizeof(ctx->dev_markers));
  6127	skip:
  6128			idx++;
  6129		}
  6130	
  6131	out:
  6132		ctx->idx = idx;
  6133		return skb->len;
  6134	}
  6135	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

       reply	other threads:[~2023-02-05 10:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20230204170801.3897900-7-idosch@nvidia.com>
2023-02-05 10:36 ` kernel test robot [this message]
2023-02-05 13:32 ` [RFC PATCH net-next 06/13] rtnetlink: bridge: mcast: Move MDB handlers out of bridge driver 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=202302051820.pWDrttJj-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=idosch@nvidia.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox