* [frank-w-bpi-r2-4.14:5.15-bpi-r2-pro-drm2 7/90] drivers/soc/mediatek/mtk-pmic-wrap.c:2112:16: error: no previous prototype for function 'pwrap_node_to_regmap'
@ 2021-10-26 1:32 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-10-26 1:32 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2272 bytes --]
tree: https://github.com/frank-w/BPI-R2-4.14 5.15-bpi-r2-pro-drm2
head: 28cc1853049ee81c1aa4feea35f3772876d9622d
commit: c556ecefff90170aa42eea4bd5dbd578967b52b2 [7/90] mt6625l: add changes outside driver dir
config: hexagon-buildonly-randconfig-r003-20211025 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project a461fa64bb37cffd73f683c74f6b0780379fc2ca)
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/c556ecefff90170aa42eea4bd5dbd578967b52b2
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.15-bpi-r2-pro-drm2
git checkout c556ecefff90170aa42eea4bd5dbd578967b52b2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/soc/mediatek/mtk-pmic-wrap.c:2112:16: error: no previous prototype for function 'pwrap_node_to_regmap' [-Werror,-Wmissing-prototypes]
struct regmap *pwrap_node_to_regmap(struct device_node *np)
^
drivers/soc/mediatek/mtk-pmic-wrap.c:2112: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 error generated.
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: 25188 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-10-26 1:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-26 1:32 [frank-w-bpi-r2-4.14:5.15-bpi-r2-pro-drm2 7/90] drivers/soc/mediatek/mtk-pmic-wrap.c:2112:16: error: 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.