* [arm:clearfog 2/13] drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:52:12: error: '_mv88e6xxx_pvt_read' defined but not used
@ 2021-11-11 10:53 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-11 10:53 UTC (permalink / raw)
To: Russell King; +Cc: kbuild-all, linux-arm-kernel
[-- Attachment #1: Type: text/plain, Size: 3022 bytes --]
Hi Russell,
First bad commit (maybe != root cause):
tree: git://git.armlinux.org.uk/~rmk/linux-arm.git clearfog
head: 81fa62b801fcff2960aaf3ae50d586e84ad41fb1
commit: 79d4556027c96d9cb569bf50ae889fd148344999 [2/13] net: dsa: mv88e6xxx: debugfs hacks to fix the compile
config: nios2-allyesconfig (attached as .config)
compiler: nios2-linux-gcc (GCC) 11.2.0
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 clearfog
git checkout 79d4556027c96d9cb569bf50ae889fd148344999
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=nios2
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: '_mv88e6xxx_pvt_read' defined but not used [-Werror=unused-function]
52 | static int _mv88e6xxx_pvt_read(struct mv88e6xxx_chip *chip, int src_dev,
| ^~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
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
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 61033 bytes --]
[-- Attachment #3: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-11-11 10:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-11 10:53 [arm:clearfog 2/13] drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:52:12: error: '_mv88e6xxx_pvt_read' defined but not used kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).