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

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

tree:   https://github.com/frank-w/BPI-R2-4.14 5.12-rc
head:   a818425e37b121cd28d9eb04606db6378daa7345
commit: f7e9a4311fdca372b81742aa0e52ee0725fcca92 [7/8] mt6625l: add changes outside driver dir
config: powerpc-randconfig-r034-20210305 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 4d90e460bcc7b3e5ff6c7e2e05e974772489c4b8)
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 powerpc cross compiling tool for clang build
        # apt-get install binutils-powerpc-linux-gnu
        # https://github.com/frank-w/BPI-R2-4.14/commit/f7e9a4311fdca372b81742aa0e52ee0725fcca92
        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.12-rc
        git checkout f7e9a4311fdca372b81742aa0e52ee0725fcca92
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc 

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 function 'pwrap_node_to_regmap' [-Wmissing-prototypes]
   struct regmap *pwrap_node_to_regmap(struct device_node *np)
                  ^
   drivers/soc/mediatek/mtk-pmic-wrap.c:2022: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 +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: 33453 bytes --]

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

only message in thread, other threads:[~2021-03-05  6:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-05  6:03 [frank-w-bpi-r2-4.14:5.12-rc 7/8] drivers/soc/mediatek/mtk-pmic-wrap.c:2022: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.