Hi Carl,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on 76680d49b5e0e661bc4abcdaf13fb7e124b4ca08]
url:
https://github.com/0day-ci/linux/commits/Carl-Huang/ath11k-support-WoW-fu...
base: 76680d49b5e0e661bc4abcdaf13fb7e124b4ca08
config: arc-allyesconfig
(
https://download.01.org/0day-ci/archive/20220208/202202081841.ZjlgFyK7-lk...)
compiler: arceb-elf-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/0day-ci/linux/commit/e2f5c30ed6c6deadc01bfdd0210ce36ef...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Carl-Huang/ath11k-support-WoW-functionalities/20220208-161634
git checkout e2f5c30ed6c6deadc01bfdd0210ce36ef2fbdf41
# 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=arc 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(a)intel.com>
All warnings (new ones prefixed by >>):
> drivers/net/wireless/ath/ath11k/mac.c:7242:5: warning: no
previous prototype for 'ath11k_mac_flush_tx_complete' [-Wmissing-prototypes]
7242 | int ath11k_mac_flush_tx_complete(struct ath11k *ar)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/ath11k_mac_flush_tx_complete +7242 drivers/net/wireless/ath/ath11k/mac.c
7241
7242 int ath11k_mac_flush_tx_complete(struct ath11k *ar)
7243 {
7244 long time_left;
7245 int ret = 0;
7246
7247 time_left = wait_event_timeout(ar->dp.tx_empty_waitq,
7248 (atomic_read(&ar->dp.num_tx_pending) == 0),
7249 ATH11K_FLUSH_TIMEOUT);
7250 if (time_left == 0) {
7251 ath11k_warn(ar->ab, "failed to flush transmit queue, data pkts pending
%d\n",
7252 atomic_read(&ar->dp.num_tx_pending));
7253 ret = -ETIMEDOUT;
7254 }
7255
7256 time_left = wait_event_timeout(ar->txmgmt_empty_waitq,
7257 (atomic_read(&ar->num_pending_mgmt_tx) == 0),
7258 ATH11K_FLUSH_TIMEOUT);
7259 if (time_left == 0) {
7260 ath11k_warn(ar->ab, "failed to flush mgmt transmit queue, mgmt pkts
pending %d\n",
7261 atomic_read(&ar->num_pending_mgmt_tx));
7262 ret = -ETIMEDOUT;
7263 }
7264
7265 return ret;
7266 }
7267
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org