LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Daniel Palmer <daniel@0x0f.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [linux-chenxing:msc313_mainlining 24/41] drivers/pinctrl/mstar/pinctrl-msc313.c:1528:5: warning: no previous prototype for 'mstar_pin_config_get'
Date: Sun, 22 Aug 2021 21:10:12 +0800	[thread overview]
Message-ID: <202108222108.Q4Vw2ixc-lkp@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2021-08-22 13:10 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=202108222108.Q4Vw2ixc-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=daniel@0x0f.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --subject='Re: [linux-chenxing:msc313_mainlining 24/41] drivers/pinctrl/mstar/pinctrl-msc313.c:1528:5: warning: no previous prototype for '\''mstar_pin_config_get'\''' \
    /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

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