[ath6kl:pending 43/54] drivers/net/wireless/ath/ath10k/bmi.c:141:8: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'unsigned int'

kbuild test robot fengguang.wu at intel.com
Tue Jan 24 08:02:19 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: openrisc-allmodconfig (attached as .config)
compiler: or32-linux-gcc (GCC) 4.5.1-or32-1.0rc1
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 30180d168632f1d53de41371e29ec43e0fdbf809
        # save the attached .config to linux build tree
        make.cross ARCH=openrisc 

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:141:8: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'unsigned int'

vim +141 drivers/net/wireless/ath/ath10k/bmi.c

   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,
   149						  &resplen);

---
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: 39973 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/ath10k/attachments/20170125/b92b3aae/attachment-0001.gz>


More information about the ath10k mailing list