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 for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202009131903.Ime0LN4s%lkp@intel.com>
Date:   Sun, 13 Sep 2020 19:59:08 +0800
From:   kernel test robot <lkp@...el.com>
To:     Rocky Liao <rjliao@...eaurora.org>
Cc:     kbuild-all@...ts.01.org, clang-built-linux@...glegroups.com,
        linux-kernel@...r.kernel.org, Marcel Holtmann <marcel@...tmann.org>
Subject: drivers/bluetooth/hci_qca.c:1692:35: warning: unused variable
 'qca_soc_data_wcn3990'

Hi Rocky,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   ef2e9a563b0cd7965e2a1263125dcbb1c86aa6cc
commit: e5d6468fe9d8dced9af0c548a359a7dbeb31c931 Bluetooth: hci_qca: Add support for Qualcomm Bluetooth SoC QCA6390
date:   5 months ago
config: x86_64-randconfig-r026-20200912 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 45d0343900d3005d1d00cbb1a87c419c085dec71)
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 x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        git checkout e5d6468fe9d8dced9af0c548a359a7dbeb31c931
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

>> drivers/bluetooth/hci_qca.c:1692:35: warning: unused variable 'qca_soc_data_wcn3990' [-Wunused-const-variable]
   static const struct qca_vreg_data qca_soc_data_wcn3990 = {
                                     ^
>> drivers/bluetooth/hci_qca.c:1703:35: warning: unused variable 'qca_soc_data_wcn3991' [-Wunused-const-variable]
   static const struct qca_vreg_data qca_soc_data_wcn3991 = {
                                     ^
>> drivers/bluetooth/hci_qca.c:1714:35: warning: unused variable 'qca_soc_data_wcn3998' [-Wunused-const-variable]
   static const struct qca_vreg_data qca_soc_data_wcn3998 = {
                                     ^
   3 warnings generated.

# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e5d6468fe9d8dced9af0c548a359a7dbeb31c931
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout e5d6468fe9d8dced9af0c548a359a7dbeb31c931
vim +/qca_soc_data_wcn3990 +1692 drivers/bluetooth/hci_qca.c

0ff252c1976da5d Ben Young Tae Kim      2015-08-10  1691  
523760b7ff88712 Harish Bandi           2019-04-26 @1692  static const struct qca_vreg_data qca_soc_data_wcn3990 = {
fa9ad876b8e0ebd Balakrishna Godavarthi 2018-08-03  1693  	.soc_type = QCA_WCN3990,
fa9ad876b8e0ebd Balakrishna Godavarthi 2018-08-03  1694  	.vregs = (struct qca_vreg []) {
f2edd66e515b994 Bjorn Andersson        2019-10-17  1695  		{ "vddio", 15000  },
f2edd66e515b994 Bjorn Andersson        2019-10-17  1696  		{ "vddxo", 80000  },
f2edd66e515b994 Bjorn Andersson        2019-10-17  1697  		{ "vddrf", 300000 },
f2edd66e515b994 Bjorn Andersson        2019-10-17  1698  		{ "vddch0", 450000 },
fa9ad876b8e0ebd Balakrishna Godavarthi 2018-08-03  1699  	},
fa9ad876b8e0ebd Balakrishna Godavarthi 2018-08-03  1700  	.num_vregs = 4,
fa9ad876b8e0ebd Balakrishna Godavarthi 2018-08-03  1701  };
fa9ad876b8e0ebd Balakrishna Godavarthi 2018-08-03  1702  
7d250a062f75e6e Balakrishna Godavarthi 2019-11-06 @1703  static const struct qca_vreg_data qca_soc_data_wcn3991 = {
7d250a062f75e6e Balakrishna Godavarthi 2019-11-06  1704  	.soc_type = QCA_WCN3991,
7d250a062f75e6e Balakrishna Godavarthi 2019-11-06  1705  	.vregs = (struct qca_vreg []) {
7d250a062f75e6e Balakrishna Godavarthi 2019-11-06  1706  		{ "vddio", 15000  },
7d250a062f75e6e Balakrishna Godavarthi 2019-11-06  1707  		{ "vddxo", 80000  },
7d250a062f75e6e Balakrishna Godavarthi 2019-11-06  1708  		{ "vddrf", 300000 },
7d250a062f75e6e Balakrishna Godavarthi 2019-11-06  1709  		{ "vddch0", 450000 },
7d250a062f75e6e Balakrishna Godavarthi 2019-11-06  1710  	},
7d250a062f75e6e Balakrishna Godavarthi 2019-11-06  1711  	.num_vregs = 4,
7d250a062f75e6e Balakrishna Godavarthi 2019-11-06  1712  };
7d250a062f75e6e Balakrishna Godavarthi 2019-11-06  1713  
523760b7ff88712 Harish Bandi           2019-04-26 @1714  static const struct qca_vreg_data qca_soc_data_wcn3998 = {
523760b7ff88712 Harish Bandi           2019-04-26  1715  	.soc_type = QCA_WCN3998,
523760b7ff88712 Harish Bandi           2019-04-26  1716  	.vregs = (struct qca_vreg []) {
f2edd66e515b994 Bjorn Andersson        2019-10-17  1717  		{ "vddio", 10000  },
f2edd66e515b994 Bjorn Andersson        2019-10-17  1718  		{ "vddxo", 80000  },
f2edd66e515b994 Bjorn Andersson        2019-10-17  1719  		{ "vddrf", 300000 },
f2edd66e515b994 Bjorn Andersson        2019-10-17  1720  		{ "vddch0", 450000 },
523760b7ff88712 Harish Bandi           2019-04-26  1721  	},
523760b7ff88712 Harish Bandi           2019-04-26  1722  	.num_vregs = 4,
523760b7ff88712 Harish Bandi           2019-04-26  1723  };
523760b7ff88712 Harish Bandi           2019-04-26  1724  

:::::: The code at line 1692 was first introduced by commit
:::::: 523760b7ff8871281aaedc44c305926469ab47f8 Bluetooth: hci_qca: Added support for WCN3998

:::::: TO: Harish Bandi <c-hbandi@...eaurora.org>
:::::: CC: Marcel Holtmann <marcel@...tmann.org>

---
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" (31176 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ