linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <rong.a.chen@intel.com>
To: Pavel Skripkin <paskripkin@gmail.com>
Cc: "kbuild-all@lists.01.org" <kbuild-all@lists.01.org>,
	Linux Memory Management List <linux-mm@kvack.org>,
	Kalle Valo <quic_kvalo@quicinc.com>
Subject: [linux-next:master 3411/9472] drivers/net/wireless/ath/ath9k/hif_usb.c:251:57: warning: suggest braces around empty body in an 'else' statement
Date: Tue, 12 Jul 2022 18:19:07 +0800	[thread overview]
Message-ID: <11b2e14e-2218-97ff-6298-d99fc644fd69@intel.com> (raw)
In-Reply-To: <202207121528.5ZfB3AVz-lkp@intel.com>

Hi Pavel,

FYI, the error/warning still remains.

tree: 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   4112a8699ae2eac797415b9be1d7901b3f79e772
commit: d7fc76039b74ad37b7056d5607b05d7cb31a5404 [3411/9472] ath9k: htc: 
clean up statistics macros
config: arc-randconfig-r043-20220711 
(https://download.01.org/0day-ci/archive/20220712/202207121528.5ZfB3AVz-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 11.3.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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=d7fc76039b74ad37b7056d5607b05d7cb31a5404
         git remote add linux-next 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
         git fetch --no-tags linux-next master
         git checkout d7fc76039b74ad37b7056d5607b05d7cb31a5404
         # save the config file
         mkdir build_dir && cp config build_dir/.config
         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross 
W=1 O=build_dir ARCH=arc SHELL=/bin/bash drivers/net/wireless/

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

All warnings (new ones prefixed by >>):

    drivers/net/wireless/ath/ath9k/hif_usb.c: In function 
'ath9k_skb_queue_complete':
>> drivers/net/wireless/ath/ath9k/hif_usb.c:251:57: warning: suggest braces around empty body in an 'else' statement [-Wempty-body]
      251 |                         TX_STAT_INC(hif_dev, skb_failed);
          |                                                         ^


vim +/else +251 drivers/net/wireless/ath/ath9k/hif_usb.c

b587fc81a80b965 Sujith Manoharan 2011-04-13  233  b587fc81a80b965 Sujith 
Manoharan 2011-04-13  234  static inline void 
ath9k_skb_queue_complete(struct hif_device_usb *hif_dev,
b587fc81a80b965 Sujith Manoharan 2011-04-13  235  					    struct 
sk_buff_head *queue,
b587fc81a80b965 Sujith Manoharan 2011-04-13  236  					    bool txok)
b587fc81a80b965 Sujith Manoharan 2011-04-13  237  {
b587fc81a80b965 Sujith Manoharan 2011-04-13  238  	struct sk_buff *skb;
b587fc81a80b965 Sujith Manoharan 2011-04-13  239  b587fc81a80b965 Sujith 
Manoharan 2011-04-13  240  	while ((skb = __skb_dequeue(queue)) != NULL) {
68185a4b37d8790 Ben Greear       2013-06-19  241  #ifdef 
CONFIG_ATH9K_HTC_DEBUGFS
68185a4b37d8790 Ben Greear       2013-06-19  242  		int ln = skb->len;
68185a4b37d8790 Ben Greear       2013-06-19  243  #endif
b587fc81a80b965 Sujith Manoharan 2011-04-13  244  	 
ath9k_htc_txcompletion_cb(hif_dev->htc_handle,
b587fc81a80b965 Sujith Manoharan 2011-04-13  245  					  skb, txok);
68185a4b37d8790 Ben Greear       2013-06-19  246  		if (txok) {
d7fc76039b74ad3 Pavel Skripkin   2022-06-13  247  		 
TX_STAT_INC(hif_dev, skb_success);
d7fc76039b74ad3 Pavel Skripkin   2022-06-13  248  		 
TX_STAT_ADD(hif_dev, skb_success_bytes, ln);
68185a4b37d8790 Ben Greear       2013-06-19  249  		}
dfa8fc69d92f841 John W. Linville 2011-04-14  250  		else
d7fc76039b74ad3 Pavel Skripkin   2022-06-13 @251  		 
TX_STAT_INC(hif_dev, skb_failed);
c11d8f89d3b785f Sujith           2010-04-23  252  	}
c11d8f89d3b785f Sujith           2010-04-23  253  }
c11d8f89d3b785f Sujith           2010-04-23  254
-- 
0-DAY CI Kernel Test Service
https://01.org/lkp


           reply	other threads:[~2022-07-12 10:19 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <202207121528.5ZfB3AVz-lkp@intel.com>]

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=11b2e14e-2218-97ff-6298-d99fc644fd69@intel.com \
    --to=rong.a.chen@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    --cc=paskripkin@gmail.com \
    --cc=quic_kvalo@quicinc.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