From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 869BBC433FE for ; Mon, 2 May 2022 12:07:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1384883AbiEBMKr (ORCPT ); Mon, 2 May 2022 08:10:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358164AbiEBMKm (ORCPT ); Mon, 2 May 2022 08:10:42 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E40F6140F6 for ; Mon, 2 May 2022 05:07:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651493233; x=1683029233; h=date:from:to:cc:subject:message-id:mime-version; bh=S4zRqF7wBu13eawZ9T5/EyBFgesQlI5D9pMOFKmrM6E=; b=a6rGR7Vdj6VS6c/nVR4npIG1gj04lTTm18V60IaA5Ir92Nux0eaKTJFv XpVqFC0pah74lasXaZiFmLaNZD1dXe8G0jEbgy2J2Q/U5jrbas0CTKJcm i5X5yImdkJr8oQzOgw+W0p/H9iS5ekhhI+NMIa4FhS8kfV6TQTLjBhH6q RTnz0iSLWJ5pdfU007LYPEEuIefqnS1IKMhUgKjiORgmTRF4bVMl88MiI ZjA5xKWa3jklSLJ4J2HZqBtzhNP/mGS0wgO9EZ7EFNXcRmarxz677yf9G a8Y9wdBVJzGf6Ky0yzygnN8hnInfns58ODL3oeeP+ueWSrgobXY6l/tOC A==; X-IronPort-AV: E=McAfee;i="6400,9594,10334"; a="267063652" X-IronPort-AV: E=Sophos;i="5.91,190,1647327600"; d="scan'208";a="267063652" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 May 2022 05:07:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,190,1647327600"; d="scan'208";a="652792713" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 02 May 2022 05:07:12 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1nlUpb-0009XR-ES; Mon, 02 May 2022 12:07:11 +0000 Date: Mon, 2 May 2022 20:06:55 +0800 From: kernel test robot To: Hector Martin Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Arend van Spriel Subject: [asahilinux:bits/080-wifi 5/28] drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c:1849:25: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'size_t' {aka 'unsigned int'} Message-ID: <202205021926.yNtpCBqV-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://github.com/AsahiLinux/linux bits/080-wifi head: a61fbffc5fad05fe49dfd9a09b3c2482ac250d46 commit: deeb9254b770bcac4848911a5af7d496138e2ab8 [5/28] brcmfmac: pcie: Read Apple OTP information config: powerpc-buildonly-randconfig-r006-20220501 (https://download.01.org/0day-ci/archive/20220502/202205021926.yNtpCBqV-lkp@intel.com/config) compiler: powerpc-linux-gcc (GCC) 11.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 # https://github.com/AsahiLinux/linux/commit/deeb9254b770bcac4848911a5af7d496138e2ab8 git remote add asahilinux https://github.com/AsahiLinux/linux git fetch --no-tags asahilinux bits/080-wifi git checkout deeb9254b770bcac4848911a5af7d496138e2ab8 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/net/wireless/broadcom/brcm80211/brcmfmac/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c:33: drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c: In function 'brcmf_pcie_parse_otp': >> drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c:1849:25: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 1849 | brcmf_dbg(PCIE, "parse_otp size=%ld\n", size); | ^~~~~~~~~~~~~~~~~~~~~~ ~~~~ | | | size_t {aka unsigned int} drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.h:77:21: note: in definition of macro 'brcmf_dbg' 77 | fmt, ##__VA_ARGS__); \ | ^~~ drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c:1849:43: note: format string is defined here 1849 | brcmf_dbg(PCIE, "parse_otp size=%ld\n", size); | ~~^ | | | long int | %d vim +1849 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c 1842 1843 static int 1844 brcmf_pcie_parse_otp(struct brcmf_pciedev_info *devinfo, u8 *otp, size_t size) 1845 { 1846 int p = 0; 1847 int ret = -EINVAL; 1848 > 1849 brcmf_dbg(PCIE, "parse_otp size=%ld\n", size); 1850 1851 while (p < (size - 1)) { 1852 u8 type = otp[p]; 1853 u8 length = otp[p + 1]; 1854 1855 if (type == 0) 1856 break; 1857 1858 if ((p + 2 + length) > size) 1859 break; 1860 1861 switch (type) { 1862 case BRCMF_OTP_SYS_VENDOR: 1863 brcmf_dbg(PCIE, "OTP @ 0x%x (%d): SYS_VENDOR\n", 1864 p, length); 1865 ret = brcmf_pcie_parse_otp_sys_vendor(devinfo, 1866 &otp[p + 2], 1867 length); 1868 break; 1869 case BRCMF_OTP_BRCM_CIS: 1870 brcmf_dbg(PCIE, "OTP @ 0x%x (%d): BRCM_CIS\n", 1871 p, length); 1872 break; 1873 default: 1874 brcmf_dbg(PCIE, "OTP @ 0x%x (%d): Unknown type 0x%x\n", 1875 p, length, type); 1876 break; 1877 } 1878 1879 p += 2 + length; 1880 } 1881 1882 return ret; 1883 } 1884 -- 0-DAY CI Kernel Test Service https://01.org/lkp