linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Mordechay Goodstein <mordechay.goodstein@intel.com>
Cc: kbuild-all@01.org, clang-built-linux@googlegroups.com,
	linux-kernel@vger.kernel.org,
	Luca Coelho <luciano.coelho@intel.com>
Subject: drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c:1807:1: warning: unused variable 'iwl_dbgfs_dbg_time_point_ops'
Date: Sun, 7 Mar 2021 13:08:16 +0800	[thread overview]
Message-ID: <202103071310.dLM0XxHO-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3942 bytes --]

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@intel.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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 34470 bytes --]

             reply	other threads:[~2021-03-07  5:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-07  5:08 kernel test robot [this message]
2021-03-15  0:51 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c:1807:1: warning: unused variable 'iwl_dbgfs_dbg_time_point_ops' kernel test robot
2021-05-13  9:05 kernel test robot
2021-05-27 22:13 kernel test robot
2021-06-23  4:34 kernel test robot
2021-07-27 11:42 kernel test robot
2021-08-22  7:59 kernel test robot
2021-11-15  4:12 kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202103071310.dLM0XxHO-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=clang-built-linux@googlegroups.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luciano.coelho@intel.com \
    --cc=mordechay.goodstein@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).