[linux-chenxing:mstar_v5_14_rebase 25/352] drivers/pinctrl/mstar/pinctrl-msc313.c:1528:5: warning: no previous prototype for 'mstar_pin_config_get'
From: kernel test robot
Date: Mon Jul 19 2021 - 13:36:42 EST
tree: git://github.com/linux-chenxing/linux.git mstar_v5_14_rebase
head: 651efd0e52f225e60faa8b30f9768021e2104d3c
commit: de4c18f97c2e8ca0f097a5f65857e25609151126 [25/352] pinctrl: mstar: msc313 pinctrl driver
config: arm-allyesconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 10.3.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/de4c18f97c2e8ca0f097a5f65857e25609151126
git remote add linux-chenxing git://github.com/linux-chenxing/linux.git
git fetch --no-tags linux-chenxing mstar_v5_14_rebase
git checkout de4c18f97c2e8ca0f097a5f65857e25609151126
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
All warnings (new ones prefixed by >>):
>> drivers/pinctrl/mstar/pinctrl-msc313.c:1528:5: warning: no previous prototype for 'mstar_pin_config_get' [-Wmissing-prototypes]
1528 | int mstar_pin_config_get(struct pinctrl_dev *pctldev,
| ^~~~~~~~~~~~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313.c:1537:5: warning: no previous prototype for 'mstar_pin_config_set' [-Wmissing-prototypes]
1537 | int mstar_pin_config_set(struct pinctrl_dev *pctldev,
| ^~~~~~~~~~~~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313.c:1550:5: warning: no previous prototype for 'mstar_pin_config_group_get' [-Wmissing-prototypes]
1550 | int mstar_pin_config_group_get(struct pinctrl_dev *pctldev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313.c:1557:5: warning: no previous prototype for 'mstar_pin_config_group_set' [-Wmissing-prototypes]
1557 | int mstar_pin_config_group_set(struct pinctrl_dev *pctldev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
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@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip