[linusw-pinctrl:for-next 72/78] drivers/pinctrl/mediatek/pinctrl-mt8186.c:1254:39: error: too many arguments to function call, expected single argument 'pdev', have 2 arguments

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git for-next
head:   4d3a82e4ec28e7956db55487eeb480407a002c37
commit: 78df7bba4ab88dd6f663335858b92f9cfa2cb850 [72/78] pinctrl: mediatek: paris: Unify probe function by using OF match data
config: arm64-randconfig-r022-20220320 (https://download.01.org/0day-ci/archive/20220322/202203221951.it5LJ3eo-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 85e9b2687a13d1908aa86d1b89c5ce398a06cd39)
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 arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git/commit/?id=78df7bba4ab88dd6f663335858b92f9cfa2cb850
        git remote add linusw-pinctrl https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git
        git fetch --no-tags linusw-pinctrl for-next
        git checkout 78df7bba4ab88dd6f663335858b92f9cfa2cb850
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/pinctrl/mediatek/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> drivers/pinctrl/mediatek/pinctrl-mt8186.c:1254:39: error: too many arguments to function call, expected single argument 'pdev', have 2 arguments
           return mtk_paris_pinctrl_probe(pdev, &mt8186_data);
                  ~~~~~~~~~~~~~~~~~~~~~~~       ^~~~~~~~~~~~
   drivers/pinctrl/mediatek/pinctrl-paris.h:60:5: note: 'mtk_paris_pinctrl_probe' declared here
   int mtk_paris_pinctrl_probe(struct platform_device *pdev);
       ^
   1 error generated.


vim +/pdev +1254 drivers/pinctrl/mediatek/pinctrl-mt8186.c

8b483bda1e46604 Guodong Liu 2022-02-16  1247  
8b483bda1e46604 Guodong Liu 2022-02-16  1248  static const struct of_device_id mt8186_pinctrl_of_match[] = {
8b483bda1e46604 Guodong Liu 2022-02-16  1249  	{ .compatible = "mediatek,mt8186-pinctrl", },
8b483bda1e46604 Guodong Liu 2022-02-16  1250  	{ }
8b483bda1e46604 Guodong Liu 2022-02-16  1251  };
8b483bda1e46604 Guodong Liu 2022-02-16  1252  static int mt8186_pinctrl_probe(struct platform_device *pdev)
8b483bda1e46604 Guodong Liu 2022-02-16  1253  {
8b483bda1e46604 Guodong Liu 2022-02-16 @1254  	return mtk_paris_pinctrl_probe(pdev, &mt8186_data);
8b483bda1e46604 Guodong Liu 2022-02-16  1255  }
8b483bda1e46604 Guodong Liu 2022-02-16  1256  

:::::: The code at line 1254 was first introduced by commit
:::::: 8b483bda1e4660411b24736e5fd6ddab472611bc pinctrl: add pinctrl driver on mt8186

:::::: TO: Guodong Liu <guodong.liu@xxxxxxxxxxxx>
:::::: CC: Linus Walleij <linus.walleij@xxxxxxxxxx>

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



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux