All of lore.kernel.org
 help / color / mirror / Atom feed
* [arm:zii 18/56] drivers/net/phy/phylink.c:2335:45: error: 'struct phylink' has no member named 'sfp_link_an_mode'; did you mean 'cfg_link_an_mode'?
@ 2021-10-08  3:45 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-10-08  3:45 UTC (permalink / raw)
  To: Russell King; +Cc: kbuild-all, linux-arm-kernel

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

tree:   git://git.armlinux.org.uk/~rmk/linux-arm.git zii
head:   9d5a0bb393c66f90a0c0e2b405282b697745152e
commit: 3e0d51c361f5191111af206e3ed024d4367fce78 [18/56] net: phylink: use phy_interface_t bitmaps for optical modules
config: ia64-allmodconfig (attached as .config)
compiler: ia64-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 3e0d51c361f5191111af206e3ed024d4367fce78
        # 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=ia64 SHELL=/bin/bash drivers/net/phy/

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

   In file included from include/linux/printk.h:456,
                    from include/linux/kernel.h:19,
                    from include/linux/list.h:9,
                    from include/linux/kobject.h:19,
                    from include/linux/of.h:17,
                    from include/linux/irqdomain.h:35,
                    from include/linux/acpi.h:13,
                    from drivers/net/phy/phylink.c:8:
   drivers/net/phy/phylink.c: In function 'phylink_sfp_config_nophy':
>> drivers/net/phy/phylink.c:2335:45: error: 'struct phylink' has no member named 'sfp_link_an_mode'; did you mean 'cfg_link_an_mode'?
    2335 |                     phylink_an_mode_str(pl->sfp_link_an_mode),
         |                                             ^~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:134:29: note: in definition of macro '__dynamic_func_call'
     134 |                 func(&id, ##__VA_ARGS__);               \
         |                             ^~~~~~~~~~~
   include/linux/dynamic_debug.h:170:9: note: in expansion of macro '_dynamic_func_call'
     170 |         _dynamic_func_call(fmt, __dynamic_netdev_dbg,           \
         |         ^~~~~~~~~~~~~~~~~~
   include/linux/netdevice.h:5281:9: note: in expansion of macro 'dynamic_netdev_dbg'
    5281 |         dynamic_netdev_dbg(__dev, format, ##args);              \
         |         ^~~~~~~~~~~~~~~~~~
   drivers/net/phy/phylink.c:103:17: note: in expansion of macro 'netdev_dbg'
     103 |                 netdev_dbg((pl)->netdev, fmt, ##__VA_ARGS__);           \
         |                 ^~~~~~~~~~
   drivers/net/phy/phylink.c:2334:9: note: in expansion of macro 'phylink_dbg'
    2334 |         phylink_dbg(pl, "requesting link mode %s/%s with support %*pb\n",
         |         ^~~~~~~~~~~
>> drivers/net/phy/phylink.c:2335:45: error: 'struct phylink' has no member named 'sfp_link_an_mode'; did you mean 'cfg_link_an_mode'?
    2335 |                     phylink_an_mode_str(pl->sfp_link_an_mode),
         |                                             ^~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:134:29: note: in definition of macro '__dynamic_func_call'
     134 |                 func(&id, ##__VA_ARGS__);               \
         |                             ^~~~~~~~~~~
   include/linux/dynamic_debug.h:166:9: note: in expansion of macro '_dynamic_func_call'
     166 |         _dynamic_func_call(fmt,__dynamic_dev_dbg,               \
         |         ^~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:123:9: note: in expansion of macro 'dynamic_dev_dbg'
     123 |         dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~
   drivers/net/phy/phylink.c:105:17: note: in expansion of macro 'dev_dbg'
     105 |                 dev_dbg((pl)->dev, fmt, ##__VA_ARGS__);                 \
         |                 ^~~~~~~
   drivers/net/phy/phylink.c:2334:9: note: in expansion of macro 'phylink_dbg'
    2334 |         phylink_dbg(pl, "requesting link mode %s/%s with support %*pb\n",
         |         ^~~~~~~~~~~
   drivers/net/phy/phylink.c:2347:41: error: 'struct phylink' has no member named 'sfp_link_an_mode'; did you mean 'cfg_link_an_mode'?
    2347 |         if (pl->cur_link_an_mode != pl->sfp_link_an_mode ||
         |                                         ^~~~~~~~~~~~~~~~
         |                                         cfg_link_an_mode
   drivers/net/phy/phylink.c:2350:44: error: 'struct phylink' has no member named 'sfp_link_an_mode'; did you mean 'cfg_link_an_mode'?
    2350 |                 pl->cur_link_an_mode = pl->sfp_link_an_mode;
         |                                            ^~~~~~~~~~~~~~~~
         |                                            cfg_link_an_mode
   drivers/net/phy/phylink.c:2355:54: error: 'struct phylink' has no member named 'sfp_link_an_mode'; did you mean 'cfg_link_an_mode'?
    2355 |                              phylink_an_mode_str(pl->sfp_link_an_mode),
         |                                                      ^~~~~~~~~~~~~~~~
   drivers/net/phy/phylink.c:88:67: note: in definition of macro 'phylink_printk'
      88 |                         netdev_printk(level, (pl)->netdev, fmt, ##__VA_ARGS__); \
         |                                                                   ^~~~~~~~~~~
   drivers/net/phy/phylink.c:2354:17: note: in expansion of macro 'phylink_info'
    2354 |                 phylink_info(pl, "switched to %s/%s link mode\n",
         |                 ^~~~~~~~~~~~
   drivers/net/phy/phylink.c:2355:54: error: 'struct phylink' has no member named 'sfp_link_an_mode'; did you mean 'cfg_link_an_mode'?
    2355 |                              phylink_an_mode_str(pl->sfp_link_an_mode),
         |                                                      ^~~~~~~~~~~~~~~~
   drivers/net/phy/phylink.c:90:61: note: in definition of macro 'phylink_printk'
      90 |                         dev_printk(level, (pl)->dev, fmt, ##__VA_ARGS__); \
         |                                                             ^~~~~~~~~~~
   drivers/net/phy/phylink.c:2354:17: note: in expansion of macro 'phylink_info'
    2354 |                 phylink_info(pl, "switched to %s/%s link mode\n",
         |                 ^~~~~~~~~~~~


vim +2335 drivers/net/phy/phylink.c

  2299	
  2300	static int phylink_sfp_config_nophy(struct phylink *pl)
  2301	{
  2302		__ETHTOOL_DECLARE_LINK_MODE_MASK(support);
  2303		struct phylink_link_state config;
  2304		phy_interface_t interface;
  2305		bool changed;
  2306		int ret;
  2307	
  2308		if (phy_interface_empty(pl->config->supported_interfaces))
  2309			return phylink_sfp_config(pl, MLO_AN_INBAND,
  2310						  pl->sfp_support, pl->sfp_support);
  2311	
  2312		interface = phylink_select_interface(pl, pl->sfp_interfaces, "sfp");
  2313		if (interface == PHY_INTERFACE_MODE_NA)
  2314			return -EINVAL;
  2315	
  2316		linkmode_copy(support, pl->sfp_support);
  2317	
  2318		memset(&config, 0, sizeof(config));
  2319		linkmode_copy(config.advertising, pl->sfp_support);
  2320		config.interface = interface;
  2321		config.speed = SPEED_UNKNOWN;
  2322		config.duplex = DUPLEX_UNKNOWN;
  2323		config.pause = MLO_PAUSE_AN;
  2324		config.an_enabled = true;
  2325	
  2326		/* Ignore errors if we're expecting a PHY to attach later */
  2327		ret = phylink_validate(pl, support, &config);
  2328		if (ret) {
  2329			phylink_err(pl, "validation with support %*pb failed: %d\n",
  2330				    __ETHTOOL_LINK_MODE_MASK_NBITS, support, ret);
  2331			return ret;
  2332		}
  2333	
  2334		phylink_dbg(pl, "requesting link mode %s/%s with support %*pb\n",
> 2335			    phylink_an_mode_str(pl->sfp_link_an_mode),
  2336			    phy_modes(config.interface),
  2337			    __ETHTOOL_LINK_MODE_MASK_NBITS, support);
  2338	
  2339		changed = !linkmode_equal(pl->supported, support) ||
  2340			  !linkmode_equal(pl->link_config.advertising,
  2341					  config.advertising);
  2342		if (changed) {
  2343			linkmode_copy(pl->supported, support);
  2344			linkmode_copy(pl->link_config.advertising, config.advertising);
  2345		}
  2346	
  2347		if (pl->cur_link_an_mode != pl->sfp_link_an_mode ||
  2348		    pl->link_config.interface != config.interface) {
  2349			pl->link_config.interface = config.interface;
  2350			pl->cur_link_an_mode = pl->sfp_link_an_mode;
  2351	
  2352			changed = true;
  2353	
  2354			phylink_info(pl, "switched to %s/%s link mode\n",
  2355				     phylink_an_mode_str(pl->sfp_link_an_mode),
  2356				     phy_modes(config.interface));
  2357		}
  2358	
  2359		pl->link_port = pl->sfp_port;
  2360	
  2361		if (changed && !test_bit(PHYLINK_DISABLE_STOPPED,
  2362					 &pl->phylink_disable_state))
  2363			phylink_mac_initial_config(pl, false);
  2364	
  2365		return 0;
  2366	}
  2367	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 64471 bytes --]

[-- Attachment #3: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [arm:zii 18/56] drivers/net/phy/phylink.c:2335:45: error: 'struct phylink' has no member named 'sfp_link_an_mode'; did you mean 'cfg_link_an_mode'?
@ 2021-10-08  3:45 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-10-08  3:45 UTC (permalink / raw)
  To: kbuild-all

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

tree:   git://git.armlinux.org.uk/~rmk/linux-arm.git zii
head:   9d5a0bb393c66f90a0c0e2b405282b697745152e
commit: 3e0d51c361f5191111af206e3ed024d4367fce78 [18/56] net: phylink: use phy_interface_t bitmaps for optical modules
config: ia64-allmodconfig (attached as .config)
compiler: ia64-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 3e0d51c361f5191111af206e3ed024d4367fce78
        # 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=ia64 SHELL=/bin/bash drivers/net/phy/

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

   In file included from include/linux/printk.h:456,
                    from include/linux/kernel.h:19,
                    from include/linux/list.h:9,
                    from include/linux/kobject.h:19,
                    from include/linux/of.h:17,
                    from include/linux/irqdomain.h:35,
                    from include/linux/acpi.h:13,
                    from drivers/net/phy/phylink.c:8:
   drivers/net/phy/phylink.c: In function 'phylink_sfp_config_nophy':
>> drivers/net/phy/phylink.c:2335:45: error: 'struct phylink' has no member named 'sfp_link_an_mode'; did you mean 'cfg_link_an_mode'?
    2335 |                     phylink_an_mode_str(pl->sfp_link_an_mode),
         |                                             ^~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:134:29: note: in definition of macro '__dynamic_func_call'
     134 |                 func(&id, ##__VA_ARGS__);               \
         |                             ^~~~~~~~~~~
   include/linux/dynamic_debug.h:170:9: note: in expansion of macro '_dynamic_func_call'
     170 |         _dynamic_func_call(fmt, __dynamic_netdev_dbg,           \
         |         ^~~~~~~~~~~~~~~~~~
   include/linux/netdevice.h:5281:9: note: in expansion of macro 'dynamic_netdev_dbg'
    5281 |         dynamic_netdev_dbg(__dev, format, ##args);              \
         |         ^~~~~~~~~~~~~~~~~~
   drivers/net/phy/phylink.c:103:17: note: in expansion of macro 'netdev_dbg'
     103 |                 netdev_dbg((pl)->netdev, fmt, ##__VA_ARGS__);           \
         |                 ^~~~~~~~~~
   drivers/net/phy/phylink.c:2334:9: note: in expansion of macro 'phylink_dbg'
    2334 |         phylink_dbg(pl, "requesting link mode %s/%s with support %*pb\n",
         |         ^~~~~~~~~~~
>> drivers/net/phy/phylink.c:2335:45: error: 'struct phylink' has no member named 'sfp_link_an_mode'; did you mean 'cfg_link_an_mode'?
    2335 |                     phylink_an_mode_str(pl->sfp_link_an_mode),
         |                                             ^~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:134:29: note: in definition of macro '__dynamic_func_call'
     134 |                 func(&id, ##__VA_ARGS__);               \
         |                             ^~~~~~~~~~~
   include/linux/dynamic_debug.h:166:9: note: in expansion of macro '_dynamic_func_call'
     166 |         _dynamic_func_call(fmt,__dynamic_dev_dbg,               \
         |         ^~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:123:9: note: in expansion of macro 'dynamic_dev_dbg'
     123 |         dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~
   drivers/net/phy/phylink.c:105:17: note: in expansion of macro 'dev_dbg'
     105 |                 dev_dbg((pl)->dev, fmt, ##__VA_ARGS__);                 \
         |                 ^~~~~~~
   drivers/net/phy/phylink.c:2334:9: note: in expansion of macro 'phylink_dbg'
    2334 |         phylink_dbg(pl, "requesting link mode %s/%s with support %*pb\n",
         |         ^~~~~~~~~~~
   drivers/net/phy/phylink.c:2347:41: error: 'struct phylink' has no member named 'sfp_link_an_mode'; did you mean 'cfg_link_an_mode'?
    2347 |         if (pl->cur_link_an_mode != pl->sfp_link_an_mode ||
         |                                         ^~~~~~~~~~~~~~~~
         |                                         cfg_link_an_mode
   drivers/net/phy/phylink.c:2350:44: error: 'struct phylink' has no member named 'sfp_link_an_mode'; did you mean 'cfg_link_an_mode'?
    2350 |                 pl->cur_link_an_mode = pl->sfp_link_an_mode;
         |                                            ^~~~~~~~~~~~~~~~
         |                                            cfg_link_an_mode
   drivers/net/phy/phylink.c:2355:54: error: 'struct phylink' has no member named 'sfp_link_an_mode'; did you mean 'cfg_link_an_mode'?
    2355 |                              phylink_an_mode_str(pl->sfp_link_an_mode),
         |                                                      ^~~~~~~~~~~~~~~~
   drivers/net/phy/phylink.c:88:67: note: in definition of macro 'phylink_printk'
      88 |                         netdev_printk(level, (pl)->netdev, fmt, ##__VA_ARGS__); \
         |                                                                   ^~~~~~~~~~~
   drivers/net/phy/phylink.c:2354:17: note: in expansion of macro 'phylink_info'
    2354 |                 phylink_info(pl, "switched to %s/%s link mode\n",
         |                 ^~~~~~~~~~~~
   drivers/net/phy/phylink.c:2355:54: error: 'struct phylink' has no member named 'sfp_link_an_mode'; did you mean 'cfg_link_an_mode'?
    2355 |                              phylink_an_mode_str(pl->sfp_link_an_mode),
         |                                                      ^~~~~~~~~~~~~~~~
   drivers/net/phy/phylink.c:90:61: note: in definition of macro 'phylink_printk'
      90 |                         dev_printk(level, (pl)->dev, fmt, ##__VA_ARGS__); \
         |                                                             ^~~~~~~~~~~
   drivers/net/phy/phylink.c:2354:17: note: in expansion of macro 'phylink_info'
    2354 |                 phylink_info(pl, "switched to %s/%s link mode\n",
         |                 ^~~~~~~~~~~~


vim +2335 drivers/net/phy/phylink.c

  2299	
  2300	static int phylink_sfp_config_nophy(struct phylink *pl)
  2301	{
  2302		__ETHTOOL_DECLARE_LINK_MODE_MASK(support);
  2303		struct phylink_link_state config;
  2304		phy_interface_t interface;
  2305		bool changed;
  2306		int ret;
  2307	
  2308		if (phy_interface_empty(pl->config->supported_interfaces))
  2309			return phylink_sfp_config(pl, MLO_AN_INBAND,
  2310						  pl->sfp_support, pl->sfp_support);
  2311	
  2312		interface = phylink_select_interface(pl, pl->sfp_interfaces, "sfp");
  2313		if (interface == PHY_INTERFACE_MODE_NA)
  2314			return -EINVAL;
  2315	
  2316		linkmode_copy(support, pl->sfp_support);
  2317	
  2318		memset(&config, 0, sizeof(config));
  2319		linkmode_copy(config.advertising, pl->sfp_support);
  2320		config.interface = interface;
  2321		config.speed = SPEED_UNKNOWN;
  2322		config.duplex = DUPLEX_UNKNOWN;
  2323		config.pause = MLO_PAUSE_AN;
  2324		config.an_enabled = true;
  2325	
  2326		/* Ignore errors if we're expecting a PHY to attach later */
  2327		ret = phylink_validate(pl, support, &config);
  2328		if (ret) {
  2329			phylink_err(pl, "validation with support %*pb failed: %d\n",
  2330				    __ETHTOOL_LINK_MODE_MASK_NBITS, support, ret);
  2331			return ret;
  2332		}
  2333	
  2334		phylink_dbg(pl, "requesting link mode %s/%s with support %*pb\n",
> 2335			    phylink_an_mode_str(pl->sfp_link_an_mode),
  2336			    phy_modes(config.interface),
  2337			    __ETHTOOL_LINK_MODE_MASK_NBITS, support);
  2338	
  2339		changed = !linkmode_equal(pl->supported, support) ||
  2340			  !linkmode_equal(pl->link_config.advertising,
  2341					  config.advertising);
  2342		if (changed) {
  2343			linkmode_copy(pl->supported, support);
  2344			linkmode_copy(pl->link_config.advertising, config.advertising);
  2345		}
  2346	
  2347		if (pl->cur_link_an_mode != pl->sfp_link_an_mode ||
  2348		    pl->link_config.interface != config.interface) {
  2349			pl->link_config.interface = config.interface;
  2350			pl->cur_link_an_mode = pl->sfp_link_an_mode;
  2351	
  2352			changed = true;
  2353	
  2354			phylink_info(pl, "switched to %s/%s link mode\n",
  2355				     phylink_an_mode_str(pl->sfp_link_an_mode),
  2356				     phy_modes(config.interface));
  2357		}
  2358	
  2359		pl->link_port = pl->sfp_port;
  2360	
  2361		if (changed && !test_bit(PHYLINK_DISABLE_STOPPED,
  2362					 &pl->phylink_disable_state))
  2363			phylink_mac_initial_config(pl, false);
  2364	
  2365		return 0;
  2366	}
  2367	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-08  3:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-08  3:45 [arm:zii 18/56] drivers/net/phy/phylink.c:2335:45: error: 'struct phylink' has no member named 'sfp_link_an_mode'; did you mean 'cfg_link_an_mode'? kernel test robot
2021-10-08  3:45 ` kernel test robot

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.