All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [frank-w-bpi-r2-4.14:5.14-otg 8/29] drivers/soc/mediatek/mtk-pmic-wrap.c:2112:16: warning: no previous prototype for 'pwrap_node_to_regmap'
Date: Sun, 22 Aug 2021 11:17:40 +0800	[thread overview]
Message-ID: <202108221133.mgz350eC-lkp@intel.com> (raw)

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

tree:   https://github.com/frank-w/BPI-R2-4.14 5.14-otg
head:   e365457a96cfe4f1f784f8ac48cfe2d0e92ac100
commit: daf840cab15926e075953cf836e903114868c074 [8/29] mt6625l: add changes outside driver dir
config: m68k-buildonly-randconfig-r001-20210822 (attached as .config)
compiler: m68k-linux-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/frank-w/BPI-R2-4.14/commit/daf840cab15926e075953cf836e903114868c074
        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.14-otg
        git checkout daf840cab15926e075953cf836e903114868c074
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.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:2112:16: warning: no previous prototype for 'pwrap_node_to_regmap' [-Wmissing-prototypes]
    2112 | struct regmap *pwrap_node_to_regmap(struct device_node *np)
         |                ^~~~~~~~~~~~~~~~~~~~
   drivers/soc/mediatek/mtk-pmic-wrap.c:2072:34: warning: 'of_pwrap_match_tbl' defined but not used [-Wunused-const-variable=]
    2072 | static const struct of_device_id of_pwrap_match_tbl[] = {
         |                                  ^~~~~~~~~~~~~~~~~~
   drivers/soc/mediatek/mtk-pmic-wrap.c:1900:34: warning: 'of_slave_match_tbl' defined but not used [-Wunused-const-variable=]
    1900 | static const struct of_device_id of_slave_match_tbl[] = {
         |                                  ^~~~~~~~~~~~~~~~~~


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

  2111	
> 2112	struct regmap *pwrap_node_to_regmap(struct device_node *np)
  2113	{
  2114		struct platform_device *pdev;
  2115		struct pmic_wrapper *wrp;
  2116		pdev = of_find_device_by_node(np);
  2117		if (!pdev)
  2118			return ERR_PTR(-ENODEV);
  2119		wrp = platform_get_drvdata(pdev);
  2120		return wrp->regmap;
  2121	}
  2122	EXPORT_SYMBOL_GPL(pwrap_node_to_regmap);
  2123	

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

                 reply	other threads:[~2021-08-22  3:17 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=202108221133.mgz350eC-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.