lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202111130337.9FW6dG7l-lkp@intel.com>
Date:   Sat, 13 Nov 2021 03:36:41 +0800
From:   kernel test robot <lkp@...el.com>
To:     Russell King <rmk+kernel@...linux.org.uk>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org
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@...el.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@...oirfairelinux.com>
:::::: CC: Russell King (Oracle) <rmk+kernel@...linux.org.uk>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (35220 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ