[PATCH 2/2] wifi: mt76: mt7925: add test mode support
kernel test robot
lkp at intel.com
Sat May 10 06:37:53 PDT 2025
Hi,
kernel test robot noticed the following build warnings:
[auto build test WARNING on wireless-next/main]
[also build test WARNING on wireless/main linus/master v6.15-rc5 next-20250509]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/sean-wang-kernel-org/wifi-mt76-mt7925-add-test-mode-support/20250506-115641
base: https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next.git main
patch link: https://lore.kernel.org/r/20250505233618.1951021-2-sean.wang%40kernel.org
patch subject: [PATCH 2/2] wifi: mt76: mt7925: add test mode support
config: loongarch-allyesconfig (https://download.01.org/0day-ci/archive/20250510/202505102153.oOZ0YXsZ-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250510/202505102153.oOZ0YXsZ-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505102153.oOZ0YXsZ-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/net/wireless/mediatek/mt76/mt7925/testmode.c: In function 'mt7925_tm_query':
>> drivers/net/wireless/mediatek/mt76/mt7925/testmode.c:92:38: warning: variable 'evt' set but not used [-Wunused-but-set-variable]
92 | struct uni_cmd_testmode_evt *evt;
| ^~~
vim +/evt +92 drivers/net/wireless/mediatek/mt76/mt7925/testmode.c
85
86 static int
87 mt7925_tm_query(struct mt792x_dev *dev, struct mt7925_tm_cmd *req,
88 char *evt_resp)
89 {
90 struct mt7925_rftest_cmd cmd;
91 char *pcmd = (char *)&cmd;
> 92 struct uni_cmd_testmode_evt *evt;
93 struct sk_buff *skb = NULL;
94 int ret = 1;
95
96 memset(pcmd, 0, sizeof(*pcmd));
97 memcpy(pcmd + 4, (char *)&req->c, sizeof(struct uni_cmd_testmode_ctrl));
98
99 if (*((uint16_t *)req->padding) == MCU_UNI_CMD_TESTMODE_CTRL)
100 ret = mt76_mcu_send_and_get_msg(&dev->mt76, MCU_UNI_QUERY(TESTMODE_CTRL),
101 &cmd, sizeof(cmd), true, &skb);
102 else if (*((uint16_t *)req->padding) == MCU_UNI_CMD_TESTMODE_RX_STAT)
103 ret = mt76_mcu_send_and_get_msg(&dev->mt76, MCU_UNI_QUERY(TESTMODE_RX_STAT),
104 &cmd, sizeof(cmd), true, &skb);
105
106 if (ret)
107 goto out;
108
109 evt = (struct uni_cmd_testmode_evt *)skb->data;
110
111 memcpy((char *)evt_resp, (char *)skb->data + 8, MT7925_EVT_RSP_LEN);
112
113 out:
114 dev_kfree_skb(skb);
115
116 return ret;
117 }
118
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
More information about the Linux-mediatek
mailing list