[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202109080636.8P45wt1G-lkp@intel.com>
Date: Wed, 8 Sep 2021 06:14:42 +0800
From: kernel test robot <lkp@...el.com>
To: Daniel Palmer <daniel@...f.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [linux-chenxing:msc313_mainlining 24/40]
drivers/pinctrl/mstar/pinctrl-msc313.c:1528:5: error: no previous prototype
for 'mstar_pin_config_get'
tree: git://github.com/linux-chenxing/linux.git msc313_mainlining
head: 611cf9683a194ce70f49b3ee1b20234bc71cd250
commit: 64b6d96c63968c1d1dd1c3202d97cf7e1171da4d [24/40] pinctrl: mstar: msc313 pinctrl driver
config: arm-allyesconfig (attached as .config)
compiler: arm-linux-gnueabi-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/linux-chenxing/linux/commit/64b6d96c63968c1d1dd1c3202d97cf7e1171da4d
git remote add linux-chenxing git://github.com/linux-chenxing/linux.git
git fetch --no-tags linux-chenxing msc313_mainlining
git checkout 64b6d96c63968c1d1dd1c3202d97cf7e1171da4d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
>> drivers/pinctrl/mstar/pinctrl-msc313.c:1528:5: error: no previous prototype for 'mstar_pin_config_get' [-Werror=missing-prototypes]
1528 | int mstar_pin_config_get(struct pinctrl_dev *pctldev,
| ^~~~~~~~~~~~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313.c:1537:5: error: no previous prototype for 'mstar_pin_config_set' [-Werror=missing-prototypes]
1537 | int mstar_pin_config_set(struct pinctrl_dev *pctldev,
| ^~~~~~~~~~~~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313.c:1550:5: error: no previous prototype for 'mstar_pin_config_group_get' [-Werror=missing-prototypes]
1550 | int mstar_pin_config_group_get(struct pinctrl_dev *pctldev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313.c:1557:5: error: no previous prototype for 'mstar_pin_config_group_set' [-Werror=missing-prototypes]
1557 | int mstar_pin_config_group_set(struct pinctrl_dev *pctldev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/mstar_pin_config_get +1528 drivers/pinctrl/mstar/pinctrl-msc313.c
1527
> 1528 int mstar_pin_config_get(struct pinctrl_dev *pctldev,
1529 unsigned int pin,
1530 unsigned long *config)
1531 {
1532 struct msc313_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctldev);
1533
1534 return msc313_pinctrl_get_config(pinctrl, pin, config);
1535 }
1536
> 1537 int mstar_pin_config_set(struct pinctrl_dev *pctldev,
1538 unsigned int pin,
1539 unsigned long *configs,
1540 unsigned int num_configs)
1541 {
1542 int i;
1543 struct msc313_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctldev);
1544
1545 for (i = 0; i < num_configs; i++)
1546 mstar_set_config(pinctrl, pin, configs[i]);
1547 return 0;
1548 }
1549
> 1550 int mstar_pin_config_group_get(struct pinctrl_dev *pctldev,
1551 unsigned int selector,
1552 unsigned long *config)
1553 {
1554 return -ENOTSUPP;
1555 }
1556
> 1557 int mstar_pin_config_group_set(struct pinctrl_dev *pctldev,
1558 unsigned int selector,
1559 unsigned long *configs,
1560 unsigned int num_configs)
1561 {
1562 struct msc313_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctldev);
1563 struct group_desc *group = pinctrl_generic_get_group(pctldev, selector);
1564 int i, j, ret;
1565
1566 for (i = 0; i < group->num_pins; i++) {
1567 for (j = 0; j < num_configs; j++) {
1568 ret = mstar_set_config(pinctrl, group->pins[i], configs[j]);
1569 if (ret)
1570 return ret;
1571 }
1572 }
1573 return 0;
1574 }
1575
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (79076 bytes)
Powered by blists - more mailing lists