[arm:zii 78/128] drivers/net/dsa/ocelot/seville_vsc9953.c:996:19: error: 'ocelot_port' undeclared

kernel test robot lkp at intel.com
Sat Nov 20 04:02:05 PST 2021


tree:   git://git.armlinux.org.uk/~rmk/linux-arm.git zii
head:   e2b78f9343e58d06b9b8561ade72f4d5aeb43e4f
commit: aa6c6c92d19e81faebd965a56b582fdc7371126c [78/128] net: dsa: ocelot: convert to phylink_generic_validate()
config: m68k-allyesconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 11.2.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
        git remote add arm git://git.armlinux.org.uk/~rmk/linux-arm.git
        git fetch --no-tags arm zii
        git checkout aa6c6c92d19e81faebd965a56b582fdc7371126c
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=m68k SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

   In file included from include/linux/bitops.h:33,
                    from include/linux/kernel.h:12,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/pid.h:5,
                    from include/linux/sched.h:14,
                    from include/linux/ratelimit.h:6,
                    from include/linux/dev_printk.h:16,
                    from include/linux/device.h:15,
                    from include/linux/ptp_clock_kernel.h:11,
                    from include/soc/mscc/ocelot.h:8,
                    from include/soc/mscc/ocelot_vcap.h:9,
                    from drivers/net/dsa/ocelot/seville_vsc9953.c:6:
   drivers/net/dsa/ocelot/seville_vsc9953.c: In function 'vsc9953_phylink_get_caps':
>> drivers/net/dsa/ocelot/seville_vsc9953.c:996:19: error: 'ocelot_port' undeclared (first use in this function)
     996 |         __set_bit(ocelot_port->phy_mode,
         |                   ^~~~~~~~~~~
   arch/m68k/include/asm/bitops.h:63:55: note: in definition of macro 'set_bit'
      63 | #define set_bit(nr, vaddr)      (__builtin_constant_p(nr) ? \
         |                                                       ^~
   drivers/net/dsa/ocelot/seville_vsc9953.c:996:9: note: in expansion of macro '__set_bit'
     996 |         __set_bit(ocelot_port->phy_mode,
         |         ^~~~~~~~~
   drivers/net/dsa/ocelot/seville_vsc9953.c:996:19: note: each undeclared identifier is reported only once for each function it appears in
     996 |         __set_bit(ocelot_port->phy_mode,
         |                   ^~~~~~~~~~~
   arch/m68k/include/asm/bitops.h:63:55: note: in definition of macro 'set_bit'
      63 | #define set_bit(nr, vaddr)      (__builtin_constant_p(nr) ? \
         |                                                       ^~
   drivers/net/dsa/ocelot/seville_vsc9953.c:996:9: note: in expansion of macro '__set_bit'
     996 |         __set_bit(ocelot_port->phy_mode,
         |         ^~~~~~~~~


vim +/ocelot_port +996 drivers/net/dsa/ocelot/seville_vsc9953.c

   992	
   993	static void vsc9953_phylink_get_caps(struct ocelot *ocelot, int port,
   994					     struct phylink_config *config)
   995	{
 > 996		__set_bit(ocelot_port->phy_mode,
   997			  config->supported_interfaces);
   998	
   999		config->mac_capabilities = MAC_ASYM_PAUSE | MAC_SYM_PAUSE |
  1000			MAC_10 | MAC_100 | MAC_1000FD | MAC_2500FD;
  1001	}
  1002	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 61872 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20211120/adf8889c/attachment-0001.gz>


More information about the linux-arm-kernel mailing list