[arm:clearfog 2/13] drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:52:12: error: '_mv88e6xxx_pvt_read' defined but not used

kernel test robot lkp at intel.com
Thu Nov 11 02:53:32 PST 2021


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 at 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 at savoirfairelinux.com>
:::::: CC: Russell King (Oracle) <rmk+kernel at armlinux.org.uk>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 61033 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20211111/af999b85/attachment-0001.gz>


More information about the linux-arm-kernel mailing list