From: kbuild test robot <lkp-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
To: Yuval Shaia <yuval.shaia-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
Cc: kbuild-all-JC7UmRfGjtg@public.gmane.org,
michael.chan-dY08KVG/lbpWk0Htik3J/w@public.gmane.org,
f.fainelli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
siva.kallam-dY08KVG/lbpWk0Htik3J/w@public.gmane.org,
prashant-dY08KVG/lbpWk0Htik3J/w@public.gmane.org,
madalin.bucur-3arQi8VN3Tc@public.gmane.org,
leoli-KZfg59tc24xl57MIdRCFDg@public.gmane.org,
sebastian.hesselbarth-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
sergei.shtylyov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org,
grygorii.strashko-l0cyMroinI0@public.gmane.org,
w-kwok2-l0cyMroinI0@public.gmane.org,
m-karicheri2-l0cyMroinI0@public.gmane.org,
andrew-g2DYL2Zd6BY@public.gmane.org,
woojung.huh-UWL1GkI3JZL3oGB3hsPCZA@public.gmane.org,
UNGLinuxDriver-UWL1GkI3JZL3oGB3hsPCZA@public.gmane.org,
vivien.didelot-4ysUXcep3aM1wj+D4I0NRVaTQe2KTcn/@public.gmane.org,
davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org,
arnd-r2nGTMty4D4@public.gmane.org,
tremyfr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
jarod-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org,
yuval.shaia-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org,
horms+renesas-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org,
kazuya.mizuguchi.ks-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org,
dan.carpenter-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org,
niklas.soderlund+renesas-1zkq55x86MTxsAP9Fp7wbw@public.gmane.org,
johan-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
masaru.nagai.vx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org,
geert+renesas-gXvu3+zWzMSzQB+pC5nmwQ@public.gmane.org,
laurent.pinchart-ryLnwIuWjnjg/C1BVhZhaw@public.gmane.org,
chris.brandt-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org,
ivan.khoronzhuk-QSEj5FYQhm5QFI55V6+gNQ@public.gmane.org
Subject: Re: [PATCH v2] net: phy: Make phy_ethtool_ksettings_get return void
Date: Tue, 13 Jun 2017 02:13:47 +0800 [thread overview]
Message-ID: <201706130229.DNOTV7xx%fengguang.wu@intel.com> (raw)
In-Reply-To: <20170612141508.29229-1-yuval.shaia-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 4065 bytes --]
Hi Yuval,
[auto build test ERROR on net-next/master]
[also build test ERROR on next-20170609]
[cannot apply to v4.12-rc5]
[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/Yuval-Shaia/net-phy-Make-phy_ethtool_ksettings_get-return-void/20170613-005407
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=ia64
All errors (new ones prefixed by >>):
drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c: In function 'xgene_get_link_ksettings':
>> drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c:134:10: error: void value not ignored as it ought to be
return phy_ethtool_ksettings_get(phydev, cmd);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c:140:11: error: void value not ignored as it ought to be
return phy_ethtool_ksettings_get(phydev, cmd);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
drivers/net/ethernet/apm/xgene-v2/ethtool.c: In function 'xge_get_link_ksettings':
>> drivers/net/ethernet/apm/xgene-v2/ethtool.c:160:9: error: void value not ignored as it ought to be
return phy_ethtool_ksettings_get(phydev, cmd);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/apm/xgene-v2/ethtool.c:161:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
vim +134 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c
e6ad7673 Iyappan Subramanian 2014-08-07 118 strcpy(info->version, XGENE_DRV_VERSION);
e6ad7673 Iyappan Subramanian 2014-08-07 119 snprintf(info->fw_version, ETHTOOL_FWVERS_LEN, "N/A");
e6ad7673 Iyappan Subramanian 2014-08-07 120 sprintf(info->bus_info, "%s", pdev->name);
e6ad7673 Iyappan Subramanian 2014-08-07 121 }
e6ad7673 Iyappan Subramanian 2014-08-07 122
36a19b29 Philippe Reynes 2016-09-11 123 static int xgene_get_link_ksettings(struct net_device *ndev,
36a19b29 Philippe Reynes 2016-09-11 124 struct ethtool_link_ksettings *cmd)
e6ad7673 Iyappan Subramanian 2014-08-07 125 {
e6ad7673 Iyappan Subramanian 2014-08-07 126 struct xgene_enet_pdata *pdata = netdev_priv(ndev);
971d3a44 Philippe Reynes 2016-09-11 127 struct phy_device *phydev = ndev->phydev;
36a19b29 Philippe Reynes 2016-09-11 128 u32 supported;
e6ad7673 Iyappan Subramanian 2014-08-07 129
326dde3e Iyappan Subramanian 2017-05-18 130 if (phy_interface_mode_is_rgmii(pdata->phy_mode)) {
e6ad7673 Iyappan Subramanian 2014-08-07 131 if (phydev == NULL)
e6ad7673 Iyappan Subramanian 2014-08-07 132 return -ENODEV;
e6ad7673 Iyappan Subramanian 2014-08-07 133
36a19b29 Philippe Reynes 2016-09-11 @134 return phy_ethtool_ksettings_get(phydev, cmd);
5e6a024b Iyappan Subramanian 2014-10-13 135 } else if (pdata->phy_mode == PHY_INTERFACE_MODE_SGMII) {
52d1fd99 Iyappan Subramanian 2016-07-25 136 if (pdata->mdio_driver) {
52d1fd99 Iyappan Subramanian 2016-07-25 137 if (!phydev)
52d1fd99 Iyappan Subramanian 2016-07-25 138 return -ENODEV;
52d1fd99 Iyappan Subramanian 2016-07-25 139
36a19b29 Philippe Reynes 2016-09-11 140 return phy_ethtool_ksettings_get(phydev, cmd);
52d1fd99 Iyappan Subramanian 2016-07-25 141 }
52d1fd99 Iyappan Subramanian 2016-07-25 142
:::::: The code at line 134 was first introduced by commit
:::::: 36a19b299536746f5c01d7716dac962f831e4d38 net: ethernet: apm: xgene: use new api ethtool_{get|set}_link_ksettings
:::::: TO: Philippe Reynes <tremyfr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
:::::: CC: David S. Miller <davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 47748 bytes --]
prev parent reply other threads:[~2017-06-12 18:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-12 14:15 [PATCH v2] net: phy: Make phy_ethtool_ksettings_get return void Yuval Shaia
2017-06-12 14:25 ` David Miller
2017-06-12 14:59 ` David Miller
[not found] ` <20170612141508.29229-1-yuval.shaia-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2017-06-12 18:13 ` kbuild test robot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201706130229.DNOTV7xx%fengguang.wu@intel.com \
--to=lkp-ral2jqcrhueavxtiumwx3w@public.gmane.org \
--cc=UNGLinuxDriver-UWL1GkI3JZL3oGB3hsPCZA@public.gmane.org \
--cc=andrew-g2DYL2Zd6BY@public.gmane.org \
--cc=arnd-r2nGTMty4D4@public.gmane.org \
--cc=chris.brandt-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org \
--cc=dan.carpenter-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org \
--cc=davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org \
--cc=f.fainelli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=geert+renesas-gXvu3+zWzMSzQB+pC5nmwQ@public.gmane.org \
--cc=grygorii.strashko-l0cyMroinI0@public.gmane.org \
--cc=horms+renesas-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org \
--cc=ivan.khoronzhuk-QSEj5FYQhm5QFI55V6+gNQ@public.gmane.org \
--cc=jarod-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=johan-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=kazuya.mizuguchi.ks-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org \
--cc=kbuild-all-JC7UmRfGjtg@public.gmane.org \
--cc=laurent.pinchart-ryLnwIuWjnjg/C1BVhZhaw@public.gmane.org \
--cc=leoli-KZfg59tc24xl57MIdRCFDg@public.gmane.org \
--cc=m-karicheri2-l0cyMroinI0@public.gmane.org \
--cc=madalin.bucur-3arQi8VN3Tc@public.gmane.org \
--cc=masaru.nagai.vx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org \
--cc=michael.chan-dY08KVG/lbpWk0Htik3J/w@public.gmane.org \
--cc=niklas.soderlund+renesas-1zkq55x86MTxsAP9Fp7wbw@public.gmane.org \
--cc=prashant-dY08KVG/lbpWk0Htik3J/w@public.gmane.org \
--cc=sebastian.hesselbarth-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=sergei.shtylyov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org \
--cc=siva.kallam-dY08KVG/lbpWk0Htik3J/w@public.gmane.org \
--cc=tremyfr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=vivien.didelot-4ysUXcep3aM1wj+D4I0NRVaTQe2KTcn/@public.gmane.org \
--cc=w-kwok2-l0cyMroinI0@public.gmane.org \
--cc=woojung.huh-UWL1GkI3JZL3oGB3hsPCZA@public.gmane.org \
--cc=yuval.shaia-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox