[ath6kl:pending 42/54] drivers/net/wireless/ath/ath10k/sdio.h:44:47: 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:28:26 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: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.0
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 a74c3fcc4ff299b7f7c0273ed2f5d891ea7b6ab3
        # save the attached .config to linux build tree
        make.cross ARCH=xtensa 

All warnings (new ones prefixed by >>):

   In file included from drivers/net/wireless/ath/ath10k/sdio.c:35:0:
   drivers/net/wireless/ath/ath10k/sdio.c: In function 'ath10k_sdio_mbox_rx_alloc':
>> drivers/net/wireless/ath/ath10k/sdio.h:44:47: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
     (ATH10K_SDIO_MAX_BUFFER_SIZE - sizeof(struct ath10k_htc_hdr))
                                                  ^
>> drivers/net/wireless/ath/ath10k/sdio.c:452:9: note: in expansion of macro 'ATH10K_HTC_MBOX_MAX_PAYLOAD_LENGTH'
            ATH10K_HTC_MBOX_MAX_PAYLOAD_LENGTH);
            ^

vim +44 drivers/net/wireless/ath/ath10k/sdio.h

    28	#define ATH10K_SDIO_MAX_BUFFER_SIZE             4096 /*Unsure of this constant*/
    29	
    30	/* Mailbox address in SDIO address space */
    31	#define ATH10K_HIF_MBOX_BASE_ADDR               0x1000
    32	#define ATH10K_HIF_MBOX_WIDTH                   0x800
    33	
    34	#define ATH10K_HIF_MBOX_TOT_WIDTH \
    35		(ATH10K_HIF_MBOX_NUM_MAX * ATH10K_HIF_MBOX_WIDTH)
    36	
    37	#define ATH10K_HIF_MBOX0_EXT_BASE_ADDR          0x5000
    38	#define ATH10K_HIF_MBOX0_EXT_WIDTH              (36 * 1024)
    39	#define ATH10K_HIF_MBOX0_EXT_WIDTH_ROME_2_0     (56 * 1024)
    40	#define ATH10K_HIF_MBOX1_EXT_WIDTH              (36 * 1024)
    41	#define ATH10K_HIF_MBOX_DUMMY_SPACE_SIZE        (2 * 1024)
    42	
    43	#define ATH10K_HTC_MBOX_MAX_PAYLOAD_LENGTH \
  > 44		(ATH10K_SDIO_MAX_BUFFER_SIZE - sizeof(struct ath10k_htc_hdr))
    45	
    46	#define ATH10K_HIF_MBOX_NUM_MAX                 4
    47	#define ATH10K_SDIO_BUS_REQUEST_MAX_NUM         64
    48	
    49	#define ATH10K_SDIO_HIF_COMMUNICATION_TIMEOUT_HZ (100 * HZ)
    50	
    51	/* HTC runs over mailbox 0 */
    52	#define ATH10K_HTC_MAILBOX                      0

---
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: 48181 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/ath10k/attachments/20170123/2bf715fa/attachment-0001.gz>


More information about the ath10k mailing list