From: Remi Pommarel <repk@triplefau.lt>
To: Dan Carpenter <dan.carpenter@linaro.org>
Cc: oe-kbuild@lists.linux.dev, ath10k@lists.infradead.org,
linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org,
lkp@intel.com, oe-kbuild-all@lists.linux.dev,
Kalle Valo <kvalo@kernel.org>, Jeff Johnson <jjohnson@kernel.org>,
Cedric Veilleux <veilleux.cedric@gmail.com>,
Vasanthakumar Thiagarajan <quic_vthiagar@quicinc.com>
Subject: Re: [PATCH v2 2/2] wifi: ath10k: Flush only requested txq in ath10k_flush()
Date: Fri, 25 Oct 2024 10:01:52 +0200 [thread overview]
Message-ID: <ZxtQcCZlQOfqkTEa@pilgrim> (raw)
In-Reply-To: <60d579e2-5eb7-4239-9a23-95fa4b32f351@stanley.mountain>
Hi,
On Fri, Oct 25, 2024 at 10:44:09AM +0300, Dan Carpenter wrote:
> Hi Remi,
>
> kernel test robot noticed the following build warnings:
>
> https://git-scm.com/docs/git-format-patch#_base_tree_information]
>
> url: https://github.com/intel-lab-lkp/linux/commits/Remi-Pommarel/wifi-ath10k-Implement-ieee80211-flush_sta-callback/20241022-172038
> base: https://git.kernel.org/pub/scm/linux/kernel/git/ath/ath.git ath-next
> patch link: https://lore.kernel.org/r/0f55986ebe34f2b5aa4ccbcb0bed445324099fbd.1729586267.git.repk%40triplefau.lt
> patch subject: [PATCH v2 2/2] wifi: ath10k: Flush only requested txq in ath10k_flush()
> config: parisc-randconfig-r071-20241024 (https://download.01.org/0day-ci/archive/20241025/202410251152.A5axJliR-lkp@intel.com/config)
> compiler: hppa-linux-gcc (GCC) 14.1.0
>
> 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>
> | Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
> | Closes: https://lore.kernel.org/r/202410251152.A5axJliR-lkp@intel.com/
>
> New smatch warnings:
> drivers/net/wireless/ath/ath10k/mac.c:8076 _ath10k_mac_wait_tx_complete() error: uninitialized symbol 'empty'.
>
> vim +/empty +8076 drivers/net/wireless/ath/ath10k/mac.c
>
> c4f7022f0ef0aa Remi Pommarel 2024-10-22 8062 static void _ath10k_mac_wait_tx_complete(struct ath10k *ar,
> c4f7022f0ef0aa Remi Pommarel 2024-10-22 8063 unsigned long queues)
> 5e3dd157d7e70f Kalle Valo 2013-06-12 8064 {
> affd321733eebc Michal Kazior 2013-07-16 8065 bool skip;
> d4298a3a8c92a1 Nicholas Mc Guire 2015-06-15 8066 long time_left;
> c4f7022f0ef0aa Remi Pommarel 2024-10-22 8067 unsigned int q;
> 5e3dd157d7e70f Kalle Valo 2013-06-12 8068
> 5e3dd157d7e70f Kalle Valo 2013-06-12 8069 /* mac80211 doesn't care if we really xmit queued frames or not
> d6dfe25c8bb200 Marcin Rokicki 2017-02-20 8070 * we'll collect those frames either way if we stop/delete vdevs
> d6dfe25c8bb200 Marcin Rokicki 2017-02-20 8071 */
> 548db54cc1890b Michal Kazior 2013-07-05 8072
> affd321733eebc Michal Kazior 2013-07-16 8073 if (ar->state == ATH10K_STATE_WEDGED)
> 828853ac58265c Wen Gong 2018-08-28 8074 return;
> affd321733eebc Michal Kazior 2013-07-16 8075
> d4298a3a8c92a1 Nicholas Mc Guire 2015-06-15 @8076 time_left = wait_event_timeout(ar->htt.empty_tx_wq, ({
> 5e3dd157d7e70f Kalle Valo 2013-06-12 8077 bool empty;
> affd321733eebc Michal Kazior 2013-07-16 8078
> edb8236df4d042 Michal Kazior 2013-07-05 8079 spin_lock_bh(&ar->htt.tx_lock);
> c4f7022f0ef0aa Remi Pommarel 2024-10-22 8080 for_each_set_bit(q, &queues, ar->hw->queues) {
>
> Smatch is concerned that there might not be any set bits. (You know that the
> compiler is automatically going to ininitialize empty to false so it costs
> nothing to initialize it to false explicitly and silence this warning).
Actually I think empty should be true here, if there is no queue to
wait for being drained then no need to wait at all. Will send a v3
with that fixed.
Thanks for the report and the analysis.
--
Remi
next prev parent reply other threads:[~2024-10-25 9:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-22 9:14 [PATCH v2 0/2] Improve ath10k flush queue mechanism Remi Pommarel
2024-10-22 9:14 ` [PATCH v2 1/2] wifi: ath10k: Implement ieee80211 flush_sta callback Remi Pommarel
2024-10-22 9:14 ` [PATCH v2 2/2] wifi: ath10k: Flush only requested txq in ath10k_flush() Remi Pommarel
2024-10-25 7:44 ` Dan Carpenter
2024-10-25 8:01 ` Remi Pommarel [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-10-25 3:40 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=ZxtQcCZlQOfqkTEa@pilgrim \
--to=repk@triplefau.lt \
--cc=ath10k@lists.infradead.org \
--cc=dan.carpenter@linaro.org \
--cc=jjohnson@kernel.org \
--cc=kvalo@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=oe-kbuild@lists.linux.dev \
--cc=quic_vthiagar@quicinc.com \
--cc=veilleux.cedric@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.