* [ath6kl:ath11k-qca6390-bringup 66/66] drivers/net/wireless/ath/ath11k/qmi.c:1676:8: warning: format '%d' expects a matching 'int' argument
@ 2020-06-01 20:19 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-06-01 20:19 UTC (permalink / raw)
To: Kalle, Valo,; +Cc: kbuild-all, ath10k
[-- Attachment #1: Type: text/plain, Size: 4572 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git ath11k-qca6390-bringup
head: d63a45325ba8378b7fd477083fcadc41ca7c1bc8
commit: d63a45325ba8378b7fd477083fcadc41ca7c1bc8 [66/66] HACK: ath11k: add more debug message for kvalo
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 9.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
git checkout d63a45325ba8378b7fd477083fcadc41ca7c1bc8
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sh
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
In file included from drivers/net/wireless/ath/ath11k/qmi.c:8:
drivers/net/wireless/ath/ath11k/qmi.c: In function 'ath11k_qmi_respond_fw_mem_request':
>> drivers/net/wireless/ath/ath11k/qmi.c:1676:8: warning: format '%d' expects a matching 'int' argument [-Wformat=]
1676 | "qmi mem_seg %d paddr 0x%x size %d type %dn",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/ath/ath11k/debug.h:304:30: note: in definition of macro 'ath11k_dbg'
304 | __ath11k_dbg(ar, dbg_mask, fmt, ##__VA_ARGS__); | ^~~
drivers/net/wireless/ath/ath11k/qmi.c:1676:49: note: format string is defined here
1676 | "qmi mem_seg %d paddr 0x%x size %d type %dn",
| ~^
| |
| int
vim +1676 drivers/net/wireless/ath/ath11k/qmi.c
1645
1646 static int ath11k_qmi_respond_fw_mem_request(struct ath11k_base *ab)
1647 {
1648 struct qmi_wlanfw_respond_mem_req_msg_v01 *req;
1649 struct qmi_wlanfw_respond_mem_resp_msg_v01 resp;
1650 struct qmi_txn txn = {};
1651 int ret = 0, i;
1652
1653 req = kzalloc(sizeof(*req), GFP_KERNEL);
1654 if (!req)
1655 return -ENOMEM;
1656
1657 memset(&resp, 0, sizeof(resp));
1658
1659 /*For QCA6390, by default FW requests a block of ~4M contiguous DMA
1660 *memory, it's hard to allocate from OS. So host returns failure to
1661 *FW and FW will then request mulitple blocks of small chunk size
1662 *memory.
1663 */
1664 if (!ab->fixed_mem_region && ab->qmi.mem_seg_count <= 2) {
1665 ath11k_dbg(ab, ATH11K_DBG_QMI, "qmi delays mem_request %d\n",
1666 ab->qmi.mem_seg_count);
1667 memset(req, 0, sizeof(*req));
1668 } else {
1669 req->mem_seg_len = ab->qmi.mem_seg_count;
1670
1671 ath11k_dbg(ab, ATH11K_DBG_QMI, "qmi no need to delay mem_request %d\n",
1672 ab->qmi.mem_seg_count);
1673
1674 for (i = 0; i < req->mem_seg_len ; i++) {
1675 ath11k_dbg(ab, ATH11K_DBG_QMI,
> 1676 "qmi mem_seg %d paddr 0x%x size %d type %d\n",
1677 ab->qmi.target_mem[i].paddr,
1678 ab->qmi.target_mem[i].size,
1679 ab->qmi.target_mem[i].type);
1680
1681 req->mem_seg[i].addr = ab->qmi.target_mem[i].paddr;
1682 req->mem_seg[i].size = ab->qmi.target_mem[i].size;
1683 req->mem_seg[i].type = ab->qmi.target_mem[i].type;
1684 }
1685 }
1686
1687 ret = qmi_txn_init(&ab->qmi.handle, &txn,
1688 qmi_wlanfw_respond_mem_resp_msg_v01_ei, &resp);
1689 if (ret < 0)
1690 goto out;
1691
1692 ret = qmi_send_request(&ab->qmi.handle, NULL, &txn,
1693 QMI_WLANFW_RESPOND_MEM_REQ_V01,
1694 QMI_WLANFW_RESPOND_MEM_REQ_MSG_V01_MAX_LEN,
1695 qmi_wlanfw_respond_mem_req_msg_v01_ei, req);
1696 if (ret < 0) {
1697 ath11k_warn(ab, "qmi failed to respond memory request, err = %d\n",
1698 ret);
1699 goto out;
1700 }
1701
1702 ret = qmi_txn_wait(&txn, msecs_to_jiffies(ATH11K_QMI_WLANFW_TIMEOUT_MS));
1703 if (ret < 0) {
1704 ath11k_warn(ab, "qmi failed memory request, err = %d\n", ret);
1705 goto out;
1706 }
1707
1708 if (resp.resp.result != QMI_RESULT_SUCCESS_V01) {
1709 ath11k_warn(ab, "Respond mem req failed, result: %d, err: %d\n",
1710 resp.resp.result, resp.resp.error);
1711 ret = -EINVAL;
1712 goto out;
1713 }
1714 out:
1715 kfree(req);
1716 return ret;
1717 }
1718
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 54708 bytes --]
[-- Attachment #3: Type: text/plain, Size: 146 bytes --]
_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-06-01 20:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-01 20:19 [ath6kl:ath11k-qca6390-bringup 66/66] drivers/net/wireless/ath/ath11k/qmi.c:1676:8: warning: format '%d' expects a matching 'int' argument kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).