linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [ammarfaizi2-block:netdev/net-next/master 111/126] drivers/net/ethernet/mscc/ocelot.c:2920:14: error: use of undeclared identifier 'IEEE_8021QAZ_MAX_TCS'
@ 2022-03-15  2:36 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-03-15  2:36 UTC (permalink / raw)
  To: Vladimir Oltean; +Cc: llvm, kbuild-all, GNU/Weeb Mailing List, linux-kernel

tree:   https://github.com/ammarfaizi2/linux-block netdev/net-next/master
head:   5e7350e8a618ebfea0713b30986976fcbb90b8bb
commit: 978777d0fb06663523281aa50a5040c3aa31fbe7 [111/126] net: dsa: felix: configure default-prio and dscp priorities
config: hexagon-randconfig-r032-20220313 (https://download.01.org/0day-ci/archive/20220315/202203151054.NrsDHU0t-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 3e4950d7fa78ac83f33bbf1658e2f49a73719236)
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/ammarfaizi2/linux-block/commit/978777d0fb06663523281aa50a5040c3aa31fbe7
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block netdev/net-next/master
        git checkout 978777d0fb06663523281aa50a5040c3aa31fbe7
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/net/ethernet/mscc/

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/ethernet/mscc/ocelot.c:2920:14: error: use of undeclared identifier 'IEEE_8021QAZ_MAX_TCS'
           if (prio >= IEEE_8021QAZ_MAX_TCS)
                       ^
   drivers/net/ethernet/mscc/ocelot.c:2962:14: error: use of undeclared identifier 'IEEE_8021QAZ_MAX_TCS'
           if (prio >= IEEE_8021QAZ_MAX_TCS)
                       ^
   2 errors generated.


vim +/IEEE_8021QAZ_MAX_TCS +2920 drivers/net/ethernet/mscc/ocelot.c

  2917	
  2918	int ocelot_port_set_default_prio(struct ocelot *ocelot, int port, u8 prio)
  2919	{
> 2920		if (prio >= IEEE_8021QAZ_MAX_TCS)
  2921			return -ERANGE;
  2922	
  2923		ocelot_rmw_gix(ocelot,
  2924			       ANA_PORT_QOS_CFG_QOS_DEFAULT_VAL(prio),
  2925			       ANA_PORT_QOS_CFG_QOS_DEFAULT_VAL_M,
  2926			       ANA_PORT_QOS_CFG,
  2927			       port);
  2928	
  2929		return 0;
  2930	}
  2931	EXPORT_SYMBOL_GPL(ocelot_port_set_default_prio);
  2932	

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

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

only message in thread, other threads:[~2022-03-15  2:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-15  2:36 [ammarfaizi2-block:netdev/net-next/master 111/126] drivers/net/ethernet/mscc/ocelot.c:2920:14: error: use of undeclared identifier 'IEEE_8021QAZ_MAX_TCS' 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).