tree:
https://github.com/lunn/linux.git v5.10-rc5-net-next-sfp
head: fcc924a183b34a15eec0a4b76fbbf86178a02d19
commit: fcc924a183b34a15eec0a4b76fbbf86178a02d19 [1/1] net: phy: Remove module_info member
from phy driver
config: mips-randconfig-r026-20201209 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
1968804ac726e7674d5de22bc2204b45857da344)
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
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
#
https://github.com/lunn/linux/commit/fcc924a183b34a15eec0a4b76fbbf86178a0...
git remote add lunn
https://github.com/lunn/linux.git
git fetch --no-tags lunn v5.10-rc5-net-next-sfp
git checkout fcc924a183b34a15eec0a4b76fbbf86178a02d19
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
> net/ethtool/ioctl.c:2183:21: warning: unused variable
'phydev'
struct phy_device = dev->phydev;
^
fatal error: error in backend: Nested variants found in inline asm string: ' .set
push
.set mips64r2
.if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data
__attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch")))
__if_trace = $( .func = __func__, .file = "arch/mips/include/asm/bitops.h",
.line = 192, $); 0x00 ) != -1)) : $))) ) && ( 0 ); .set push; .set mips64r2; .rept
1; sync 0x00; .endr; .set pop; .else; ; .endif
1: ll $0, $2
or $1, $0, $3
sc $1, $2
beqz $1, 1b
.set pop
'
clang-12: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 12.0.0 (git://gitmirror/llvm_project
1968804ac726e7674d5de22bc2204b45857da344)
Target: mipsel-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/cross/clang-1968804ac7/bin
clang-12: note: diagnostic msg:
Makefile arch drivers include kernel lib net scripts source usr
vim +/phydev +2183 net/ethtool/ioctl.c
c8f3a8c3106913 net/core/ethtool.c Richard Cochran 2012-04-03 2178
2f4383667d57d1 net/core/ethtool.c Ed Swierk 2015-01-02 2179 static int
__ethtool_get_module_info(struct net_device *dev,
2f4383667d57d1 net/core/ethtool.c Ed Swierk 2015-01-02 2180 struct
ethtool_modinfo *modinfo)
2f4383667d57d1 net/core/ethtool.c Ed Swierk 2015-01-02 2181 {
2f4383667d57d1 net/core/ethtool.c Ed Swierk 2015-01-02 2182 const struct
ethtool_ops *ops = dev->ethtool_ops;
2f4383667d57d1 net/core/ethtool.c Ed Swierk 2015-01-02 @2183 struct phy_device
*phydev = dev->phydev;
2f4383667d57d1 net/core/ethtool.c Ed Swierk 2015-01-02 2184
e679c9c1dbfdba net/core/ethtool.c Russell King 2018-03-28 2185 if (dev->sfp_bus)
e679c9c1dbfdba net/core/ethtool.c Russell King 2018-03-28 2186 return
sfp_get_module_info(dev->sfp_bus, modinfo);
e679c9c1dbfdba net/core/ethtool.c Russell King 2018-03-28 2187
2f4383667d57d1 net/core/ethtool.c Ed Swierk 2015-01-02 2188 if
(ops->get_module_info)
2f4383667d57d1 net/core/ethtool.c Ed Swierk 2015-01-02 2189 return
ops->get_module_info(dev, modinfo);
2f4383667d57d1 net/core/ethtool.c Ed Swierk 2015-01-02 2190
2f4383667d57d1 net/core/ethtool.c Ed Swierk 2015-01-02 2191 return -EOPNOTSUPP;
2f4383667d57d1 net/core/ethtool.c Ed Swierk 2015-01-02 2192 }
2f4383667d57d1 net/core/ethtool.c Ed Swierk 2015-01-02 2193
:::::: The code at line 2183 was first introduced by commit
:::::: 2f4383667d57d1c719070db86b14277277752841 ethtool: Extend ethtool plugin module
eeprom API to phylib
:::::: TO: Ed Swierk <eswierk(a)skyportsystems.com>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org