All of lore.kernel.org
 help / color / mirror / Atom feed
* [frank-w-bpi-r2-4.14:5.13-rc 7/17] drivers/soc/mediatek/mtk-pmic-wrap.c:2077:16: warning: no previous prototype for function 'pwrap_node_to_regmap'
@ 2021-05-10 21:00 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-05-10 21:00 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/frank-w/BPI-R2-4.14 5.13-rc
head:   3dfc4a057833e2735df50d6514e606ba3ef2ac81
commit: 87619143722070d84579264114c00cbf9f893140 [7/17] mt6625l: add changes outside driver dir
config: x86_64-randconfig-r024-20210510 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 492173d42b32cb91d5d0d72d5ed84fcab80d059a)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://github.com/frank-w/BPI-R2-4.14/commit/87619143722070d84579264114c00cbf9f893140
        git remote add frank-w-bpi-r2-4.14 https://github.com/frank-w/BPI-R2-4.14
        git fetch --no-tags frank-w-bpi-r2-4.14 5.13-rc
        git checkout 87619143722070d84579264114c00cbf9f893140
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64 

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:2077:16: warning: no previous prototype for function 'pwrap_node_to_regmap' [-Wmissing-prototypes]
   struct regmap *pwrap_node_to_regmap(struct device_node *np)
                  ^
   drivers/soc/mediatek/mtk-pmic-wrap.c:2077:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   struct regmap *pwrap_node_to_regmap(struct device_node *np)
   ^
   static 
   1 warning generated.


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

  2076	
> 2077	struct regmap *pwrap_node_to_regmap(struct device_node *np)
  2078	{
  2079		struct platform_device *pdev;
  2080		struct pmic_wrapper *wrp;
  2081		pdev = of_find_device_by_node(np);
  2082		if (!pdev)
  2083			return ERR_PTR(-ENODEV);
  2084		wrp = platform_get_drvdata(pdev);
  2085		return wrp->regmap;
  2086	}
  2087	EXPORT_SYMBOL_GPL(pwrap_node_to_regmap);
  2088	

---
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: 41671 bytes --]

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

only message in thread, other threads:[~2021-05-10 21:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-10 21:00 [frank-w-bpi-r2-4.14:5.13-rc 7/17] drivers/soc/mediatek/mtk-pmic-wrap.c:2077:16: warning: no previous prototype for function '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.