[ath6kl:pending 43/54] drivers/net/wireless/ath/ath10k/bmi.c:140:64: 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:41:21 PST 2017
tree: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git pending
head: 430d36c841c58d7550c3f11684a80237efd4a02d
commit: 30180d168632f1d53de41371e29ec43e0fdbf809 [43/54] ath10k: sdio get target info
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 30180d168632f1d53de41371e29ec43e0fdbf809
# save the attached .config to linux build tree
make ARCH=i386
All warnings (new ones prefixed by >>):
drivers/net/wireless/ath/ath10k/bmi.c: In function 'ath10k_bmi_get_target_info_sdio':
>> drivers/net/wireless/ath/ath10k/bmi.c:140:64: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
ath10k_warn(ar, "Unexpected target info len: %u. Expected: %lu\n",
^
vim +140 drivers/net/wireless/ath/ath10k/bmi.c
124 */
125 if (tmp == TARGET_VERSION_SENTINAL) {
126 /* Step 1b: Read the version length */
127 resplen = sizeof(u32);
128 ret = ath10k_hif_exchange_bmi_msg(ar, NULL, 0, &tmp,
129 &resplen);
130 if (ret) {
131 ath10k_warn(ar, "unable to read from device\n");
132 return ret;
133 }
134 }
135
136 ver_len = __le32_to_cpu(tmp);
137
138 /* Step 2: Check the target info length */
139 if (ver_len != sizeof(resp.get_target_info)) {
> 140 ath10k_warn(ar, "Unexpected target info len: %u. Expected: %lu\n",
141 ver_len, sizeof(resp.get_target_info));
142 return -EINVAL;
143 }
144
145 /* Step 3: Read the rest of the version response */
146 resplen = sizeof(resp.get_target_info) - sizeof(u32);
147 ret = ath10k_hif_exchange_bmi_msg(ar, NULL, 0,
148 &resp.get_target_info.version,
---
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/853c2bf7/attachment-0001.gz>
More information about the ath10k
mailing list