[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201606131624.X2cWzCIR%fengguang.wu@intel.com>
Date: Mon, 13 Jun 2016 16:11:34 +0800
From: kbuild test robot <lkp@...el.com>
To: Dongpo Li <lidongpo@...ilicon.com>
Cc: kbuild-all@...org, f.fainelli@...il.com, robh+dt@...nel.org,
mark.rutland@....com, davem@...emloft.net,
xuejiancheng@...ilicon.com, netdev@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
Dongpo Li <lidongpo@...ilicon.com>
Subject: Re: [PATCH 2/3] ethtool: Add common functions for get and set
settings
Hi,
[auto build test ERROR on net/master]
[also build test ERROR on v4.7-rc3 next-20160609]
[cannot apply to net-next/master]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Dongpo-Li/Add-Hisilicon-MDIO-bus-driver-and-FEMAC-driver/20160613-141459
config: sh-sh7785lcr_32bit_defconfig (attached as .config)
compiler: sh4-linux-gnu-gcc (Debian 5.3.1-8) 5.3.1 20160205
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=sh
All errors (new ones prefixed by >>):
net/built-in.o: In function `ethtool_op_get_settings':
>> net/core/ethtool.c:56: undefined reference to `phy_ethtool_gset'
net/built-in.o: In function `ethtool_op_set_settings':
>> net/core/ethtool.c:68: undefined reference to `phy_ethtool_sset'
vim +56 net/core/ethtool.c
50 }
51 EXPORT_SYMBOL(ethtool_op_get_ts_info);
52
53 int ethtool_op_get_settings(struct net_device *dev, struct ethtool_cmd *cmd)
54 {
55 if (!dev->phydev)
> 56 return -ENODEV;
57
58 return phy_ethtool_gset(dev->phydev, cmd);
59 }
60 EXPORT_SYMBOL(ethtool_op_get_settings);
61
62 int ethtool_op_set_settings(struct net_device *dev, struct ethtool_cmd *cmd)
63 {
64 if (!capable(CAP_NET_ADMIN))
65 return -EPERM;
66
67 if (!dev->phydev)
> 68 return -ENODEV;
69
70 return phy_ethtool_sset(dev->phydev, cmd);
71 }
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Download attachment ".config.gz" of type "application/octet-stream" (16936 bytes)
Powered by blists - more mailing lists