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: <202103071310.dLM0XxHO-lkp@intel.com>
Date:   Sun, 7 Mar 2021 13:08:16 +0800
From:   kernel test robot <lkp@...el.com>
To:     Mordechay Goodstein <mordechay.goodstein@...el.com>
Cc:     kbuild-all@...org, clang-built-linux@...glegroups.com,
        linux-kernel@...r.kernel.org,
        Luca Coelho <luciano.coelho@...el.com>
Subject: drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c:1807:1: warning:
 unused variable 'iwl_dbgfs_dbg_time_point_ops'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   a38fd8748464831584a19438cbb3082b5a2dab15
commit: 9dbb62a29042e543ab6671dc12c1473c3cbc58c2 iwlwifi: mvm: add debugfs entry to trigger a dump as any time-point
date:   4 weeks ago
config: riscv-randconfig-r031-20210307 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 4d90e460bcc7b3e5ff6c7e2e05e974772489c4b8)
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 riscv cross compiling tool for clang build
        # apt-get install binutils-riscv64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9dbb62a29042e543ab6671dc12c1473c3cbc58c2
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 9dbb62a29042e543ab6671dc12c1473c3cbc58c2
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv 

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/net/wireless/intel/iwlwifi/mvm/debugfs.c:1807:1: warning: unused variable 'iwl_dbgfs_dbg_time_point_ops' [-Wunused-const-variable]
   MVM_DEBUGFS_WRITE_FILE_OPS(dbg_time_point, 64);
   ^
   drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c:1554:2: note: expanded from macro 'MVM_DEBUGFS_WRITE_FILE_OPS'
           _MVM_DEBUGFS_WRITE_FILE_OPS(name, bufsz, struct iwl_mvm)
           ^
   drivers/net/wireless/intel/iwlwifi/mvm/debugfs.h:39:37: note: expanded from macro '_MVM_DEBUGFS_WRITE_FILE_OPS'
   static const struct file_operations iwl_dbgfs_##name##_ops = {          \
                                       ^
   <scratch space>:117:1: note: expanded from here
   iwl_dbgfs_dbg_time_point_ops
   ^
   1 warning generated.


vim +/iwl_dbgfs_dbg_time_point_ops +1807 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c

  1780	
  1781	/* Device wide debugfs entries */
  1782	MVM_DEBUGFS_READ_FILE_OPS(ctdp_budget);
  1783	MVM_DEBUGFS_WRITE_FILE_OPS(stop_ctdp, 8);
  1784	MVM_DEBUGFS_WRITE_FILE_OPS(force_ctkill, 8);
  1785	MVM_DEBUGFS_WRITE_FILE_OPS(tx_flush, 16);
  1786	MVM_DEBUGFS_WRITE_FILE_OPS(sta_drain, 8);
  1787	MVM_DEBUGFS_WRITE_FILE_OPS(send_echo_cmd, 8);
  1788	MVM_DEBUGFS_READ_WRITE_FILE_OPS(sram, 64);
  1789	MVM_DEBUGFS_READ_WRITE_FILE_OPS(set_nic_temperature, 64);
  1790	MVM_DEBUGFS_READ_FILE_OPS(nic_temp);
  1791	MVM_DEBUGFS_READ_FILE_OPS(stations);
  1792	MVM_DEBUGFS_READ_FILE_OPS(rs_data);
  1793	MVM_DEBUGFS_READ_FILE_OPS(bt_notif);
  1794	MVM_DEBUGFS_READ_FILE_OPS(bt_cmd);
  1795	MVM_DEBUGFS_READ_WRITE_FILE_OPS(disable_power_off, 64);
  1796	MVM_DEBUGFS_READ_FILE_OPS(fw_rx_stats);
  1797	MVM_DEBUGFS_READ_FILE_OPS(drv_rx_stats);
  1798	MVM_DEBUGFS_READ_FILE_OPS(fw_ver);
  1799	MVM_DEBUGFS_READ_FILE_OPS(phy_integration_ver);
  1800	MVM_DEBUGFS_WRITE_FILE_OPS(fw_restart, 10);
  1801	MVM_DEBUGFS_WRITE_FILE_OPS(fw_nmi, 10);
  1802	MVM_DEBUGFS_WRITE_FILE_OPS(bt_tx_prio, 10);
  1803	MVM_DEBUGFS_WRITE_FILE_OPS(bt_force_ant, 10);
  1804	MVM_DEBUGFS_READ_WRITE_FILE_OPS(scan_ant_rxchain, 8);
  1805	MVM_DEBUGFS_READ_WRITE_FILE_OPS(fw_dbg_conf, 8);
  1806	MVM_DEBUGFS_WRITE_FILE_OPS(fw_dbg_collect, 64);
> 1807	MVM_DEBUGFS_WRITE_FILE_OPS(dbg_time_point, 64);
  1808	MVM_DEBUGFS_WRITE_FILE_OPS(indirection_tbl,
  1809				   (IWL_RSS_INDIRECTION_TABLE_SIZE * 2));
  1810	MVM_DEBUGFS_WRITE_FILE_OPS(inject_packet, 512);
  1811	MVM_DEBUGFS_WRITE_FILE_OPS(inject_beacon_ie, 512);
  1812	MVM_DEBUGFS_WRITE_FILE_OPS(inject_beacon_ie_restore, 512);
  1813	

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ