lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202112211644.oOqVGMC7-lkp@intel.com>
Date:   Tue, 21 Dec 2021 16:13:55 +0800
From:   kernel test robot <lkp@...el.com>
To:     Hector Martin <marcan@...can.st>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [asahilinux:wifi-wip 69/69]
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c:1960:25: warning:
 format '%ld' expects argument of type 'long int', but argument 4 has type
 'size_t' {aka 'unsigned int'}

tree:   https://github.com/AsahiLinux/linux wifi-wip
head:   f23b880a0e670605f762a659fae44c4cb198bf8d
commit: f23b880a0e670605f762a659fae44c4cb198bf8d [69/69] WIP: wifi stuff
config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20211221/202112211644.oOqVGMC7-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 11.2.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/f23b880a0e670605f762a659fae44c4cb198bf8d
        git remote add asahilinux https://github.com/AsahiLinux/linux
        git fetch --no-tags asahilinux wifi-wip
        git checkout f23b880a0e670605f762a659fae44c4cb198bf8d
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc 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 <lkp@...el.com>

All warnings (new ones prefixed by >>):

   In file included from drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c:32:
   drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c: In function 'brcmf_pcie_parse_otp':
>> drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c:1960:25: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
    1960 |         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:1960:43: note: format string is defined here
    1960 |         brcmf_dbg(PCIE, "parse_otp size=%ld\n", size);
         |                                         ~~^
         |                                           |
         |                                           long int
         |                                         %d

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for SND_AMD_ACP_CONFIG
   Depends on SOUND && !UML && SND && SND_SOC && SND_SOC_ACPI
   Selected by
   - SND_SOC_SOF_AMD_COMMON && SOUND && !UML && SND && SND_SOC && SND_SOC_SOF_TOPLEVEL && SND_SOC_SOF_AMD_TOPLEVEL


vim +1960 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c

  1953	
  1954	static int
  1955	brcmf_pcie_parse_otp(struct brcmf_pciedev_info *devinfo, u8 *otp, size_t size)
  1956	{
  1957		int p = 0;
  1958		int ret = -1;
  1959	
> 1960		brcmf_dbg(PCIE, "parse_otp size=%ld\n", size);
  1961	
  1962		while (p < (size - 1)) {
  1963			u8 type = otp[p];
  1964			u8 length = otp[p + 1];
  1965	
  1966			if (type == 0)
  1967				break;
  1968	
  1969			if ((p + 2 + length) > size)
  1970				break;
  1971	
  1972			switch (type) {
  1973			case BRCMF_OTP_SYS_VENDOR:
  1974				brcmf_dbg(PCIE, "OTP @ 0x%x (0x%x): SYS_VENDOR\n",
  1975					  p, length);
  1976				ret = brcmf_pcie_parse_otp_sys_vendor(devinfo,
  1977								      &otp[p + 2],
  1978								      length);
  1979				break;
  1980			case BRCMF_OTP_BRCM_CIS:
  1981				brcmf_dbg(PCIE, "OTP @ 0x%x (0x%x): BRCM_CIS\n",
  1982					  p, length);
  1983				break;
  1984			default:
  1985				brcmf_dbg(PCIE, "OTP @ 0x%x (0x%x): Unknown type 0x%x\n",
  1986					  p, length, type);
  1987				break;
  1988			}
  1989	
  1990			p += 2 + length;
  1991		}
  1992	
  1993		return ret;
  1994	}
  1995	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ