[arm:zii 1/47] drivers/net/phy/phylink.c:1375:3: error: implicit declaration of function 'phylink_enable_and_run_resolve'

kernel test robot lkp at intel.com
Sat Sep 18 19:03:56 PDT 2021


tree:   git://git.armlinux.org.uk/~rmk/linux-arm.git zii
head:   9f8234d7e443de598635ed7a7ac69753ce3e71d4
commit: 339ce6faec62a04c1c6a140e98bfaccd713efbe6 [1/47] net: phylink: add suspend/resume support
config: i386-randconfig-r011-20210919 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c8b3d7d6d6de37af68b2f379d0e37304f78e115f)
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 339ce6faec62a04c1c6a140e98bfaccd713efbe6
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=i386 

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

>> drivers/net/phy/phylink.c:1375:3: error: implicit declaration of function 'phylink_enable_and_run_resolve' [-Werror,-Wimplicit-function-declaration]
                   phylink_enable_and_run_resolve(pl, PHYLINK_DISABLE_MAC_WOL);
                   ^
   1 error generated.


vim +/phylink_enable_and_run_resolve +1375 drivers/net/phy/phylink.c

  1346	
  1347	/**
  1348	 * phylink_resume() - handle a network device resume event
  1349	 * @pl: a pointer to a &struct phylink returned from phylink_create()
  1350	 *
  1351	 * Undo the effects of phylink_suspend(), returning the link to an
  1352	 * operational state.
  1353	 */
  1354	void phylink_resume(struct phylink *pl)
  1355	{
  1356		ASSERT_RTNL();
  1357	
  1358		if (test_bit(PHYLINK_DISABLE_MAC_WOL, &pl->phylink_disable_state)) {
  1359			/* Wake-on-Lan enabled, MAC handling */
  1360	
  1361			/* Call mac_link_down() so we keep the overall state balanced.
  1362			 * Do this under the state_mutex lock for consistency. This
  1363			 * will cause a "Link Down" message to be printed during
  1364			 * resume, which is harmless - the true link state will be
  1365			 * printed when we run a resolve.
  1366			 */
  1367			mutex_lock(&pl->state_mutex);
  1368			phylink_link_down(pl);
  1369			mutex_unlock(&pl->state_mutex);
  1370	
  1371			/* Re-apply the link parameters so that all the settings get
  1372			 * restored to the MAC.
  1373			 */
  1374			phylink_mac_initial_config(pl, true);
> 1375			phylink_enable_and_run_resolve(pl, PHYLINK_DISABLE_MAC_WOL);
  1376		} else {
  1377			phylink_start(pl);
  1378		}
  1379	}
  1380	EXPORT_SYMBOL_GPL(phylink_resume);
  1381	

---
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: 36263 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210919/6fe722e4/attachment-0001.gz>


More information about the linux-arm-kernel mailing list