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: <202211282058.uyIWYuJz-lkp@intel.com>
Date:   Mon, 28 Nov 2022 20:45:47 +0800
From:   kernel test robot <lkp@...el.com>
To:     Xu Panda <xu.panda@....com.cn>
Cc:     llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
        netdev@...r.kernel.org, Yang Yang <yang.yang29@....com>
Subject: [net-next:master 2/28]
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:7583:41: error: too many
 arguments to function call, expected 2, have 3

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head:   c672e37279896f570cfa44926d57497e8d16033b
commit: f72cd76b05ea1ce9258484e8127932d0ea928f22 [2/28] net: stmmac: use sysfs_streq() instead of strncmp()
config: powerpc-buildonly-randconfig-r004-20221128
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 80145dcb011b03a7c54fdfaa3a7beeaf5c18863a)
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
        # install powerpc cross compiling tool for clang build
        # apt-get install binutils-powerpc-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/commit/?id=f72cd76b05ea1ce9258484e8127932d0ea928f22
        git remote add net-next https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
        git fetch --no-tags net-next master
        git checkout f72cd76b05ea1ce9258484e8127932d0ea928f22
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/net/ethernet/stmicro/stmmac/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

>> drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:7583:41: error: too many arguments to function call, expected 2, have 3
                   } else if (sysfs_streq(opt, "pause:", 6)) {
                              ~~~~~~~~~~~                ^
   include/linux/string.h:185:13: note: 'sysfs_streq' declared here
   extern bool sysfs_streq(const char *s1, const char *s2);
               ^
   1 error generated.


vim +7583 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

  7556	
  7557	#ifndef MODULE
  7558	static int __init stmmac_cmdline_opt(char *str)
  7559	{
  7560		char *opt;
  7561	
  7562		if (!str || !*str)
  7563			return 1;
  7564		while ((opt = strsep(&str, ",")) != NULL) {
  7565			if (sysfs_streq(opt, "debug:")) {
  7566				if (kstrtoint(opt + 6, 0, &debug))
  7567					goto err;
  7568			} else if (sysfs_streq(opt, "phyaddr:")) {
  7569				if (kstrtoint(opt + 8, 0, &phyaddr))
  7570					goto err;
  7571			} else if (sysfs_streq(opt, "buf_sz:")) {
  7572				if (kstrtoint(opt + 7, 0, &buf_sz))
  7573					goto err;
  7574			} else if (sysfs_streq(opt, "tc:")) {
  7575				if (kstrtoint(opt + 3, 0, &tc))
  7576					goto err;
  7577			} else if (sysfs_streq(opt, "watchdog:")) {
  7578				if (kstrtoint(opt + 9, 0, &watchdog))
  7579					goto err;
  7580			} else if (sysfs_streq(opt, "flow_ctrl:")) {
  7581				if (kstrtoint(opt + 10, 0, &flow_ctrl))
  7582					goto err;
> 7583			} else if (sysfs_streq(opt, "pause:", 6)) {
  7584				if (kstrtoint(opt + 6, 0, &pause))
  7585					goto err;
  7586			} else if (sysfs_streq(opt, "eee_timer:")) {
  7587				if (kstrtoint(opt + 10, 0, &eee_timer))
  7588					goto err;
  7589			} else if (sysfs_streq(opt, "chain_mode:")) {
  7590				if (kstrtoint(opt + 11, 0, &chain_mode))
  7591					goto err;
  7592			}
  7593		}
  7594		return 1;
  7595	
  7596	err:
  7597		pr_err("%s: ERROR broken module parameter conversion", __func__);
  7598		return 1;
  7599	}
  7600	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (168559 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ