From: kernel test robot <lkp@intel.com>
To: sean.wang@kernel.org, nbd@nbd.name, lorenzo.bianconi@redhat.com
Cc: oe-kbuild-all@lists.linux.dev, sean.wang@mediatek.com,
deren.wu@mediatek.com, mingyen.hsieh@mediatek.com,
linux-wireless@vger.kernel.org,
linux-mediatek@lists.infradead.org,
Michael Lo <michael.lo@mediatek.com>
Subject: Re: [PATCH 2/2] wifi: mt76: mt7925: add test mode support
Date: Sat, 10 May 2025 21:37:53 +0800 [thread overview]
Message-ID: <202505102153.oOZ0YXsZ-lkp@intel.com> (raw)
In-Reply-To: <20250505233618.1951021-2-sean.wang@kernel.org>
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@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
prev parent reply other threads:[~2025-05-10 13:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-05 23:36 [PATCH 1/2] wifi: mt76: mt7925: extend MCU support for testmode sean.wang
2025-05-05 23:36 ` [PATCH 2/2] wifi: mt76: mt7925: add test mode support sean.wang
2025-05-10 13:37 ` kernel test robot [this message]
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=202505102153.oOZ0YXsZ-lkp@intel.com \
--to=lkp@intel.com \
--cc=deren.wu@mediatek.com \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-wireless@vger.kernel.org \
--cc=lorenzo.bianconi@redhat.com \
--cc=michael.lo@mediatek.com \
--cc=mingyen.hsieh@mediatek.com \
--cc=nbd@nbd.name \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=sean.wang@kernel.org \
--cc=sean.wang@mediatek.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