[PATCH v2] ath11k: add support of firmware logging for WCN6855
kernel test robot
lkp at intel.com
Fri Dec 17 08:29:30 PST 2021
Hi Cheng,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on kvalo-ath/ath-next]
[also build test WARNING on next-20211217]
[cannot apply to v5.16-rc5]
[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]
url: https://github.com/0day-ci/linux/commits/Cheng-Wang/ath11k-add-support-of-firmware-logging-for-WCN6855/20211217-192713
base: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git ath-next
config: mips-randconfig-r023-20211216 (https://download.01.org/0day-ci/archive/20211218/202112180012.UCXm8ASb-lkp@intel.com/config)
compiler: mips64el-linux-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/3c8528cf3263af58b974c4fdc3a2d3d0ea32bc3c
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Cheng-Wang/ath11k-add-support-of-firmware-logging-for-WCN6855/20211217-192713
git checkout 3c8528cf3263af58b974c4fdc3a2d3d0ea32bc3c
# 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=mips 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 at intel.com>
All warnings (new ones prefixed by >>):
>> drivers/net/wireless/ath/ath11k/qmi.c:2542:5: warning: no previous prototype for 'ath11k_qmi_wlanfw_wlan_ini_send' [-Wmissing-prototypes]
2542 | int ath11k_qmi_wlanfw_wlan_ini_send(struct ath11k_base *ab, bool enable)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/ath11k_qmi_wlanfw_wlan_ini_send +2542 drivers/net/wireless/ath/ath11k/qmi.c
2541
> 2542 int ath11k_qmi_wlanfw_wlan_ini_send(struct ath11k_base *ab, bool enable)
2543 {
2544 int ret;
2545 struct qmi_txn txn;
2546 struct qmi_wlanfw_wlan_ini_req_msg_v01 req = {};
2547 struct qmi_wlanfw_wlan_ini_resp_msg_v01 resp = {};
2548
2549 req.enablefwlog_valid = true;
2550 req.enablefwlog = enable ? 1 : 0;
2551
2552 ret = qmi_txn_init(&ab->qmi.handle, &txn,
2553 qmi_wlanfw_wlan_ini_resp_msg_v01_ei, &resp);
2554 if (ret < 0)
2555 goto out;
2556
2557 ret = qmi_send_request(&ab->qmi.handle, NULL, &txn,
2558 QMI_WLANFW_WLAN_INI_REQ_V01,
2559 QMI_WLANFW_WLAN_INI_REQ_MSG_V01_MAX_LEN,
2560 qmi_wlanfw_wlan_ini_req_msg_v01_ei, &req);
2561 if (ret < 0) {
2562 ath11k_warn(ab, "qmi failed to send wlan ini request, err = %d\n",
2563 ret);
2564 qmi_txn_cancel(&txn);
2565 goto out;
2566 }
2567
2568 ret = qmi_txn_wait(&txn, msecs_to_jiffies(ATH11K_QMI_WLANFW_TIMEOUT_MS));
2569 if (ret < 0) {
2570 ath11k_warn(ab, "qmi failed wlan ini request, err = %d\n", ret);
2571 goto out;
2572 }
2573
2574 if (resp.resp.result != QMI_RESULT_SUCCESS_V01) {
2575 ath11k_warn(ab, "qmi wlan ini request failed, result: %d, err: %d\n",
2576 resp.resp.result, resp.resp.error);
2577 ret = -EINVAL;
2578 }
2579
2580 out:
2581 return ret;
2582 }
2583
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
More information about the ath11k
mailing list