lkml.org 
[lkml]   [2021]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[rmk-arm:clearfog 2/13] drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:52:12: error: unused function '_mv88e6xxx_pvt_read'
Hi Russell,

First bad commit (maybe != root cause):

tree: git://git.armlinux.org.uk/~rmk/linux-arm clearfog
head: fb3ab88e93237a6e27fbc9fe4537d63c9163787d
commit: 79d4556027c96d9cb569bf50ae889fd148344999 [2/13] net: dsa: mv88e6xxx: debugfs hacks to fix the compile
config: arm-buildonly-randconfig-r002-20211112 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c3dddeeafb529e769cde87bd29ef6271ac6bfa5c)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
git remote add rmk-arm git://git.armlinux.org.uk/~rmk/linux-arm
git fetch --no-tags rmk-arm clearfog
git checkout 79d4556027c96d9cb569bf50ae889fd148344999
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm

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 drivers/net/dsa/mv88e6xxx/chip.c:3164:
>> drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:52:12: error: unused function '_mv88e6xxx_pvt_read' [-Werror,-Wunused-function]
static int _mv88e6xxx_pvt_read(struct mv88e6xxx_chip *chip, int src_dev,
^
1 error generated.


vim +/_mv88e6xxx_pvt_read +52 drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c

fe8a2a1725d821 Vivien Didelot 2015-10-22 51
fe8a2a1725d821 Vivien Didelot 2015-10-22 @52 static int _mv88e6xxx_pvt_read(struct mv88e6xxx_chip *chip, int src_dev,
fe8a2a1725d821 Vivien Didelot 2015-10-22 53 int src_port, u16 *data)
fe8a2a1725d821 Vivien Didelot 2015-10-22 54 {
fe8a2a1725d821 Vivien Didelot 2015-10-22 55 int ret;
fe8a2a1725d821 Vivien Didelot 2015-10-22 56
fe8a2a1725d821 Vivien Didelot 2015-10-22 57 ret = _mv88e6xxx_pvt_wait(chip);
fe8a2a1725d821 Vivien Didelot 2015-10-22 58 if (ret < 0)
fe8a2a1725d821 Vivien Didelot 2015-10-22 59 return ret;
fe8a2a1725d821 Vivien Didelot 2015-10-22 60
fe8a2a1725d821 Vivien Didelot 2015-10-22 61 ret = _mv88e6xxx_pvt_cmd(chip, src_dev, src_port,
fe8a2a1725d821 Vivien Didelot 2015-10-22 62 GLOBAL2_PVT_ADDR_OP_READ);
fe8a2a1725d821 Vivien Didelot 2015-10-22 63 if (ret < 0)
fe8a2a1725d821 Vivien Didelot 2015-10-22 64 return ret;
fe8a2a1725d821 Vivien Didelot 2015-10-22 65
fe8a2a1725d821 Vivien Didelot 2015-10-22 66 return mv88e6xxx_g2_read(chip, GLOBAL2_PVT_DATA, data);
fe8a2a1725d821 Vivien Didelot 2015-10-22 67 }
fe8a2a1725d821 Vivien Didelot 2015-10-22 68

:::::: The code at line 52 was first introduced by commit
:::::: fe8a2a1725d821bb81755cefe6483985aee89fba net: dsa: mv88e6xxx: add debugfs interface

:::::: TO: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
:::::: CC: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-11-12 20:39    [W:0.027 / U:0.728 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site