All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [jpirko-mlxsw:combined_queue 36/47] drivers/net/dsa/dsa_loop.c:214:10: error: 'const struct switchdev_obj_port_vlan' has no member named 'vid_end'
Date: Sat, 09 Jan 2021 04:09:56 +0800	[thread overview]
Message-ID: <202101090451.4rypeW2a-lkp@intel.com> (raw)

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

tree:   https://github.com/jpirko/linux_mlxsw combined_queue
head:   d493062b33bd66a8da27c637efaf2f4b99455ff5
commit: 6436964818ed35444156df6f8c7f08025585c6f0 [36/47] net: switchdev: remove vid_begin -> vid_end range from VLAN objects
config: nios2-randconfig-r015-20210108 (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.3.0
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/6436964818ed35444156df6f8c7f08025585c6f0
        git remote add jpirko-mlxsw https://github.com/jpirko/linux_mlxsw
        git fetch --no-tags jpirko-mlxsw combined_queue
        git checkout 6436964818ed35444156df6f8c7f08025585c6f0
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2 

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 >>):

   drivers/net/dsa/dsa_loop.c: In function 'dsa_loop_port_vlan_prepare':
>> drivers/net/dsa/dsa_loop.c:214:10: error: 'const struct switchdev_obj_port_vlan' has no member named 'vid_end'
     214 |  if (vlan->vid_end > ARRAY_SIZE(ps->vlans))
         |          ^~


vim +214 drivers/net/dsa/dsa_loop.c

98cd1552ea27e512 Florian Fainelli 2017-03-30  201  
80e023607982faa6 Vivien Didelot   2017-11-30  202  static int
80e023607982faa6 Vivien Didelot   2017-11-30  203  dsa_loop_port_vlan_prepare(struct dsa_switch *ds, int port,
80e023607982faa6 Vivien Didelot   2017-11-30  204  			   const struct switchdev_obj_port_vlan *vlan)
98cd1552ea27e512 Florian Fainelli 2017-03-30  205  {
98cd1552ea27e512 Florian Fainelli 2017-03-30  206  	struct dsa_loop_priv *ps = ds->priv;
98cd1552ea27e512 Florian Fainelli 2017-03-30  207  	struct mii_bus *bus = ps->bus;
98cd1552ea27e512 Florian Fainelli 2017-03-30  208  
6436964818ed3544 Vladimir Oltean  2021-01-06  209  	dev_dbg(ds->dev, "%s: port: %d, vlan: %d", __func__, port, vlan->vid);
98cd1552ea27e512 Florian Fainelli 2017-03-30  210  
98cd1552ea27e512 Florian Fainelli 2017-03-30  211  	/* Just do a sleeping operation to make lockdep checks effective */
98cd1552ea27e512 Florian Fainelli 2017-03-30  212  	mdiobus_read(bus, ps->port_base + port, MII_BMSR);
98cd1552ea27e512 Florian Fainelli 2017-03-30  213  
916a8d168e8aea52 Florian Fainelli 2020-08-03 @214  	if (vlan->vid_end > ARRAY_SIZE(ps->vlans))
98cd1552ea27e512 Florian Fainelli 2017-03-30  215  		return -ERANGE;
98cd1552ea27e512 Florian Fainelli 2017-03-30  216  
98cd1552ea27e512 Florian Fainelli 2017-03-30  217  	return 0;
98cd1552ea27e512 Florian Fainelli 2017-03-30  218  }
98cd1552ea27e512 Florian Fainelli 2017-03-30  219  

:::::: The code at line 214 was first introduced by commit
:::::: 916a8d168e8aea52e6f7eb2e323d5dcbd5dc23d5 net: dsa: loop: Support 4K VLANs

:::::: TO: Florian Fainelli <f.fainelli@gmail.com>
:::::: CC: David S. Miller <davem@davemloft.net>

---
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: 33556 bytes --]

                 reply	other threads:[~2021-01-08 20:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202101090451.4rypeW2a-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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.