linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Russell King (Oracle)" <rmk+kernel@armlinux.org.uk>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-arm-kernel@lists.infradead.org
Subject: [arm:zii 103/112] drivers/net/dsa/mv88e6xxx/chip.c:645:46: error: too few arguments to function call, expected 3, have 2
Date: Mon, 4 Jul 2022 04:14:37 +0800	[thread overview]
Message-ID: <202207040416.cCvosav4-lkp@intel.com> (raw)

tree:   git://git.armlinux.org.uk/~rmk/linux-arm.git zii
head:   6069ba5d4265eb4b6ab7a4a2ea2ebe77e7a53e3f
commit: 18b8857e7eb4757f9642e755b06308d61f6c61e8 [103/112] net: dsa: mv88e6xxx: kabel's idea
config: i386-randconfig-a013 (https://download.01.org/0day-ci/archive/20220704/202207040416.cCvosav4-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 5d787689b14574fe58ba9798563f4a6df6059fbf)
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
        git remote add arm git://git.armlinux.org.uk/~rmk/linux-arm.git
        git fetch --no-tags arm zii
        git checkout 18b8857e7eb4757f9642e755b06308d61f6c61e8
        # 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=i386 SHELL=/bin/bash drivers/net/dsa/mv88e6xxx/

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

All errors (new ones prefixed by >>):

>> drivers/net/dsa/mv88e6xxx/chip.c:645:46: error: too few arguments to function call, expected 3, have 2
                           mv88e6xxx_translate_cmode(cmode, supported);
                           ~~~~~~~~~~~~~~~~~~~~~~~~~                 ^
   drivers/net/dsa/mv88e6xxx/chip.c:560:13: note: 'mv88e6xxx_translate_cmode' declared here
   static void mv88e6xxx_translate_cmode(u8 cmode, unsigned long *supported,
               ^
   1 error generated.


vim +645 drivers/net/dsa/mv88e6xxx/chip.c

d4ebf12bcec453 Russell King (Oracle  2022-02-03  615) 
d4ebf12bcec453 Russell King (Oracle  2022-02-03  616) static void mv88e6352_phylink_get_caps(struct mv88e6xxx_chip *chip, int port,
18b8857e7eb475 Russell King (Oracle  2022-07-02  617) 				       struct phylink_config *config,
18b8857e7eb475 Russell King (Oracle  2022-07-02  618) 				       phy_interface_t *default_interface)
d4ebf12bcec453 Russell King (Oracle  2022-02-03  619) {
d4ebf12bcec453 Russell King (Oracle  2022-02-03  620) 	unsigned long *supported = config->supported_interfaces;
d4ebf12bcec453 Russell King (Oracle  2022-02-03  621) 	int err, cmode;
d4ebf12bcec453 Russell King (Oracle  2022-02-03  622) 
d4ebf12bcec453 Russell King (Oracle  2022-02-03  623) 	/* Translate the default cmode */
18b8857e7eb475 Russell King (Oracle  2022-07-02  624) 	mv88e6xxx_translate_cmode(chip->ports[port].cmode, supported,
18b8857e7eb475 Russell King (Oracle  2022-07-02  625) 				  default_interface);
d4ebf12bcec453 Russell King (Oracle  2022-02-03  626) 
d4ebf12bcec453 Russell King (Oracle  2022-02-03  627) 	config->mac_capabilities = MAC_SYM_PAUSE | MAC_10 | MAC_100 |
d4ebf12bcec453 Russell King (Oracle  2022-02-03  628) 				   MAC_1000FD;
d4ebf12bcec453 Russell King (Oracle  2022-02-03  629) 
d4ebf12bcec453 Russell King (Oracle  2022-02-03  630) 	/* Port 4 supports automedia if the serdes is associated with it. */
d4ebf12bcec453 Russell King (Oracle  2022-02-03  631) 	if (port == 4) {
d4ebf12bcec453 Russell King (Oracle  2022-02-03  632) 		mv88e6xxx_reg_lock(chip);
d4ebf12bcec453 Russell King (Oracle  2022-02-03  633) 		err = mv88e6352_g2_scratch_port_has_serdes(chip, port);
d4ebf12bcec453 Russell King (Oracle  2022-02-03  634) 		if (err < 0)
d4ebf12bcec453 Russell King (Oracle  2022-02-03  635) 			dev_err(chip->dev, "p%d: failed to read scratch\n",
d4ebf12bcec453 Russell King (Oracle  2022-02-03  636) 				port);
d4ebf12bcec453 Russell King (Oracle  2022-02-03  637) 		if (err <= 0)
d4ebf12bcec453 Russell King (Oracle  2022-02-03  638) 			goto unlock;
d4ebf12bcec453 Russell King (Oracle  2022-02-03  639) 
d4ebf12bcec453 Russell King (Oracle  2022-02-03  640) 		cmode = mv88e6352_get_port4_serdes_cmode(chip);
d4ebf12bcec453 Russell King (Oracle  2022-02-03  641) 		if (cmode < 0)
d4ebf12bcec453 Russell King (Oracle  2022-02-03  642) 			dev_err(chip->dev, "p%d: failed to read serdes cmode\n",
d4ebf12bcec453 Russell King (Oracle  2022-02-03  643) 				port);
d4ebf12bcec453 Russell King (Oracle  2022-02-03  644) 		else
d4ebf12bcec453 Russell King (Oracle  2022-02-03 @645) 			mv88e6xxx_translate_cmode(cmode, supported);
d4ebf12bcec453 Russell King (Oracle  2022-02-03  646) unlock:
d4ebf12bcec453 Russell King (Oracle  2022-02-03  647) 		mv88e6xxx_reg_unlock(chip);
d4ebf12bcec453 Russell King (Oracle  2022-02-03  648) 	}
d4ebf12bcec453 Russell King (Oracle  2022-02-03  649) }
d4ebf12bcec453 Russell King (Oracle  2022-02-03  650) 

:::::: The code at line 645 was first introduced by commit
:::::: d4ebf12bcec45378f6b3badb63806761e10a4596 net: dsa: mv88e6xxx: populate supported_interfaces and mac_capabilities

:::::: TO: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
:::::: CC: David S. Miller <davem@davemloft.net>

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

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

                 reply	other threads:[~2022-07-03 20:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202207040416.cCvosav4-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=llvm@lists.linux.dev \
    --cc=rmk+kernel@armlinux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).