LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [linux-chenxing:msc313_mainlining 24/41] drivers/pinctrl/mstar/pinctrl-msc313.c:1528:5: warning: no previous prototype for 'mstar_pin_config_get'
@ 2021-08-22 13:10 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-08-22 13:10 UTC (permalink / raw)
  To: Daniel Palmer; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 3798 bytes --]

tree:   git://github.com/linux-chenxing/linux.git msc313_mainlining
head:   57db68128a4c2d6de54743980d3f8d6abd32be5c
commit: 02ec8cd4df8a7eba2362bf89ba3ccbd8940ef074 [24/41] 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/02ec8cd4df8a7eba2362bf89ba3ccbd8940ef074
        git remote add linux-chenxing git://github.com/linux-chenxing/linux.git
        git fetch --no-tags linux-chenxing msc313_mainlining
        git checkout 02ec8cd4df8a7eba2362bf89ba3ccbd8940ef074
        # 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@intel.com>

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@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 78466 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-22 13:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-22 13:10 [linux-chenxing:msc313_mainlining 24/41] drivers/pinctrl/mstar/pinctrl-msc313.c:1528:5: warning: no previous prototype for 'mstar_pin_config_get' kernel test robot

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).