From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============4162155791203653076==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [frank-w-bpi-r2-4.14:5.15-r2pro 7/92] drivers/soc/mediatek/mtk-pmic-wrap.c:2112:16: warning: no previous prototype for 'pwrap_node_to_regmap' Date: Mon, 06 Dec 2021 18:10:13 +0800 Message-ID: <202112061853.MUDZFOcm-lkp@intel.com> List-Id: --===============4162155791203653076== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://github.com/frank-w/BPI-R2-4.14 5.15-r2pro head: d51ee13774f8993b4ad8a0c42e2e4b761ee630e7 commit: f32d0dbecbd999c6ad5bdf26bdafd8d83d7a3fa4 [7/92] mt6625l: add change= s outside driver dir config: openrisc-randconfig-r023-20211205 (https://download.01.org/0day-ci/= archive/20211206/202112061853.MUDZFOcm-lkp(a)intel.com/config) compiler: or1k-linux-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 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/f32d0dbecbd999c6ad5= bdf26bdafd8d83d7a3fa4 git remote add frank-w-bpi-r2-4.14 https://github.com/frank-w/BPI-R= 2-4.14 git fetch --no-tags frank-w-bpi-r2-4.14 5.15-r2pro git checkout f32d0dbecbd999c6ad5bdf26bdafd8d83d7a3fa4 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Dopenrisc SHELL=3D/bin/bash drivers/soc/mediatek/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/soc/mediatek/mtk-pmic-wrap.c:2112:16: warning: no previous proto= type for 'pwrap_node_to_regmap' [-Wmissing-prototypes] 2112 | struct regmap *pwrap_node_to_regmap(struct device_node *np) | ^~~~~~~~~~~~~~~~~~~~ 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 =3D of_find_device_by_node(np); 2117 if (!pdev) 2118 return ERR_PTR(-ENODEV); 2119 wrp =3D 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 --===============4162155791203653076==--