[ath6kl:pending 42/54] drivers/net/wireless/ath/ath10k/sdio.c:450:45: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int'
kbuild test robot
fengguang.wu at intel.com
Mon Jan 23 05:05:59 PST 2017
tree: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git pending
head: 430d36c841c58d7550c3f11684a80237efd4a02d
commit: a74c3fcc4ff299b7f7c0273ed2f5d891ea7b6ab3 [42/54] ath10k: sdio support
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout a74c3fcc4ff299b7f7c0273ed2f5d891ea7b6ab3
# save the attached .config to linux build tree
make ARCH=i386
All warnings (new ones prefixed by >>):
drivers/net/wireless/ath/ath10k/sdio.c: In function 'ath10k_sdio_mbox_rx_alloc':
>> drivers/net/wireless/ath/ath10k/sdio.c:450:45: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
"payload len %d exceeds max htc : %lu!\n",
^
vim +450 drivers/net/wireless/ath/ath10k/sdio.c
434 "The total number of pkgs to be fetched (%u) exceeds maximum %u !\n",
435 n_lookaheads,
436 ATH10K_SDIO_MAX_RX_MSGS);
437 ret = -ENOMEM;
438 goto err;
439 }
440
441 for (i = 0; i < n_lookaheads; i++) {
442 struct ath10k_htc_hdr *htc_hdr =
443 (struct ath10k_htc_hdr *)&lookaheads[i];
444 size_t full_len, act_len;
445 bool last_in_bundle = false;
446
447 if (le16_to_cpu(htc_hdr->len) >
448 ATH10K_HTC_MBOX_MAX_PAYLOAD_LENGTH) {
449 ath10k_warn(ar,
> 450 "payload len %d exceeds max htc : %lu!\n",
451 le16_to_cpu(htc_hdr->len),
452 ATH10K_HTC_MBOX_MAX_PAYLOAD_LENGTH);
453 ret = -ENOMEM;
454 goto err;
455 }
456
457 act_len = le16_to_cpu(htc_hdr->len) + sizeof(*htc_hdr);
458 full_len = ath10k_sdio_calc_txrx_padded_len(ar_sdio, act_len);
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 57945 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/ath10k/attachments/20170123/2a892b63/attachment-0001.gz>
More information about the ath10k
mailing list