All of lore.kernel.org
 help / color / mirror / Atom feed
* [frank-w-bpi-r2-4.14:5.8-wifi 6/14] drivers/soc/mediatek/mtk-pmic-wrap.c:2022:16: warning: no previous prototype for 'pwrap_node_to_regmap'
@ 2020-07-06 18:06 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-07-06 18:06 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/frank-w/BPI-R2-4.14 5.8-wifi
head:   f06170b52cc98a1ef4c8b248cc12f785973a0a87
commit: b4fc5054bd320d973f42caf4d221bd40d7adc8b5 [6/14] mt6625l: add changes outside driver dir
config: m68k-randconfig-r015-20200706 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.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
        git checkout b4fc5054bd320d973f42caf4d221bd40d7adc8b5
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k 

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/soc/mediatek/mtk-pmic-wrap.c:2022:16: warning: no previous prototype for 'pwrap_node_to_regmap' [-Wmissing-prototypes]
    2022 | struct regmap *pwrap_node_to_regmap(struct device_node *np)
         |                ^~~~~~~~~~~~~~~~~~~~
   drivers/soc/mediatek/mtk-pmic-wrap.c:1988:34: warning: 'of_pwrap_match_tbl' defined but not used [-Wunused-const-variable=]
    1988 | static const struct of_device_id of_pwrap_match_tbl[] = {
         |                                  ^~~~~~~~~~~~~~~~~~
   drivers/soc/mediatek/mtk-pmic-wrap.c:1842:34: warning: 'of_slave_match_tbl' defined but not used [-Wunused-const-variable=]
    1842 | static const struct of_device_id of_slave_match_tbl[] = {
         |                                  ^~~~~~~~~~~~~~~~~~

vim +/pwrap_node_to_regmap +2022 drivers/soc/mediatek/mtk-pmic-wrap.c

  2021	
> 2022	struct regmap *pwrap_node_to_regmap(struct device_node *np)
  2023	{
  2024		struct platform_device *pdev;
  2025		struct pmic_wrapper *wrp;
  2026		pdev = of_find_device_by_node(np);
  2027		if (!pdev)
  2028			return ERR_PTR(-ENODEV);
  2029		wrp = platform_get_drvdata(pdev);
  2030		return wrp->regmap;
  2031	}
  2032	EXPORT_SYMBOL_GPL(pwrap_node_to_regmap);
  2033	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

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

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

only message in thread, other threads:[~2020-07-06 18:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-06 18:06 [frank-w-bpi-r2-4.14:5.8-wifi 6/14] drivers/soc/mediatek/mtk-pmic-wrap.c:2022:16: warning: no previous prototype for 'pwrap_node_to_regmap' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.