public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [rmk-arm:zii 78/87] drivers/net/dsa/ocelot/felix.c:952:51: error: 'state' undeclared; did you mean 'statx'?
@ 2022-08-04 20:37 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-08-04 20:37 UTC (permalink / raw)
  To: Russell King (Oracle); +Cc: kbuild-all, linux-kernel

tree:   git://git.armlinux.org.uk/~rmk/linux-arm zii
head:   315d00812d1f8ed8bbbce4e4fd8d32fc883900a0
commit: f8d2148d3f86d7253a86ccbf0e9af7071457218a [78/87] net: dsa: ocelot: alternative
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20220805/202208050438.TH4My4lR-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 12.1.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 rmk-arm git://git.armlinux.org.uk/~rmk/linux-arm
        git fetch --no-tags rmk-arm zii
        git checkout f8d2148d3f86d7253a86ccbf0e9af7071457218a
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=alpha 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 >>):

   drivers/net/dsa/ocelot/felix.c: In function 'felix_phylink_get_caps':
>> drivers/net/dsa/ocelot/felix.c:952:51: error: 'state' undeclared (first use in this function); did you mean 'statx'?
     952 |                         felix->info->phylink_caps(state->interface);
         |                                                   ^~~~~
         |                                                   statx
   drivers/net/dsa/ocelot/felix.c:952:51: note: each undeclared identifier is reported only once for each function it appears in


vim +952 drivers/net/dsa/ocelot/felix.c

   938	
   939	static void felix_phylink_get_caps(struct dsa_switch *ds, int port,
   940					   struct phylink_config *config,
   941					   phy_interface_t *default_interface)
   942	{
   943		struct ocelot *ocelot = ds->priv;
   944		struct felix *felix;
   945	
   946		__set_bit(ocelot->ports[port]->phy_mode,
   947			  config->supported_interfaces);
   948	
   949		felix = ocelot_to_felix(ocelot);
   950		if (felix->info->phylink_caps)
   951			config->mac_capabilities =
 > 952				felix->info->phylink_caps(state->interface);
   953	}
   954	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

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

only message in thread, other threads:[~2022-08-04 20:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-04 20:37 [rmk-arm:zii 78/87] drivers/net/dsa/ocelot/felix.c:952:51: error: 'state' undeclared; did you mean 'statx'? 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