lkml.org 
[lkml]   [2022]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[ammarfaizi2-block:kvalo/ath/pending 255/273] drivers/net/wireless/ath/ath11k/wmi.c:7833:39: error: 'struct ath11k' has no member named 'debug'
tree:   https://github.com/ammarfaizi2/linux-block kvalo/ath/pending
head: 061c4062835233faef6961a898155015fc5e0631
commit: 3af45eb104584443956572fa9d2a332123816b37 [255/273] ath11k: Add debugfs interface to configure firmware debug log level
config: xtensa-randconfig-r024-20220112 (https://download.01.org/0day-ci/archive/20220113/202201130245.W7Ps705H-lkp@intel.com/config)
compiler: xtensa-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
# https://github.com/ammarfaizi2/linux-block/commit/3af45eb104584443956572fa9d2a332123816b37
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block kvalo/ath/pending
git checkout 3af45eb104584443956572fa9d2a332123816b37
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=xtensa SHELL=/bin/bash drivers/net/wireless/ath/ath11k/

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

All errors (new ones prefixed by >>):

drivers/net/wireless/ath/ath11k/wmi.c: In function 'ath11k_wmi_fw_dbglog_cfg':
>> drivers/net/wireless/ath/ath11k/wmi.c:7833:39: error: 'struct ath11k' has no member named 'debug'
7833 | memcpy(tlv->value, &ar->debug.module_id_bitmap,
| ^~
drivers/net/wireless/ath/ath11k/wmi.c:7836:27: error: 'struct ath11k' has no member named 'debug'
7836 | memset(&ar->debug.module_id_bitmap, 0,
| ^~


vim +7833 drivers/net/wireless/ath/ath11k/wmi.c

7800
7801 int ath11k_wmi_fw_dbglog_cfg(struct ath11k *ar, struct ath11k_fw_dbglog *dbglog)
7802 {
7803 struct ath11k_pdev_wmi *wmi = ar->wmi;
7804 struct wmi_debug_log_config_cmd_fixed_param *cmd;
7805 struct sk_buff *skb;
7806 struct wmi_tlv *tlv;
7807 int ret, len;
7808
7809 len = sizeof(*cmd) + TLV_HDR_SIZE + (MAX_MODULE_ID_BITMAP_WORDS * sizeof(u32));
7810 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, len);
7811 if (!skb)
7812 return -ENOMEM;
7813
7814 cmd = (struct wmi_debug_log_config_cmd_fixed_param *)skb->data;
7815 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_DEBUG_LOG_CONFIG_CMD) |
7816 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE);
7817 cmd->dbg_log_param = dbglog->param;
7818
7819 tlv = (struct wmi_tlv *)((u8 *)cmd + sizeof(*cmd));
7820 tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_UINT32) |
7821 FIELD_PREP(WMI_TLV_LEN, MAX_MODULE_ID_BITMAP_WORDS * sizeof(u32));
7822
7823 switch (dbglog->param) {
7824 case WMI_DEBUG_LOG_PARAM_LOG_LEVEL:
7825 case WMI_DEBUG_LOG_PARAM_VDEV_ENABLE:
7826 case WMI_DEBUG_LOG_PARAM_VDEV_DISABLE:
7827 case WMI_DEBUG_LOG_PARAM_VDEV_ENABLE_BITMAP:
7828 cmd->value = dbglog->value;
7829 break;
7830 case WMI_DEBUG_LOG_PARAM_MOD_ENABLE_BITMAP:
7831 case WMI_DEBUG_LOG_PARAM_WOW_MOD_ENABLE_BITMAP:
7832 cmd->value = dbglog->value;
> 7833 memcpy(tlv->value, &ar->debug.module_id_bitmap,
7834 MAX_MODULE_ID_BITMAP_WORDS * sizeof(u32));
7835 /* clear current config to be used for next user config */
7836 memset(&ar->debug.module_id_bitmap, 0,
7837 MAX_MODULE_ID_BITMAP_WORDS * sizeof(u32));
7838 break;
7839 default:
7840 dev_kfree_skb(skb);
7841 return -EINVAL;
7842 }
7843
7844 ret = ath11k_wmi_cmd_send(wmi, skb, WMI_DBGLOG_CFG_CMDID);
7845 if (ret) {
7846 ath11k_warn(ar->ab,
7847 "failed to send WMI_DBGLOG_CFG_CMDID\n");
7848 dev_kfree_skb(skb);
7849 }
7850 return ret;
7851 }
7852

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

\
 
 \ /
  Last update: 2022-01-12 19:50    [W:0.054 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site