drivers/regulator/ti-abb-regulator.c:169: warning: expecting prototype for ti_abb_wait_tranx(). Prototype was for ti_abb_wait_txdone() instead

From: kernel test robot
Date: Sun Nov 07 2021 - 23:18:11 EST


Hi Cai,

First bad commit (maybe != root cause):

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 6b75d88fa81b122cce37ebf17428a849ccd3d0f1
commit: b36061c2ea5bdacf51305f8bc79f29595b343eb6 regulator: ti-abb: Kconfig: Add helper dependency on COMPILE_TEST
date: 8 weeks ago
config: h8300-randconfig-r035-20210929 (attached as .config)
compiler: h8300-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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b36061c2ea5bdacf51305f8bc79f29595b343eb6
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout b36061c2ea5bdacf51305f8bc79f29595b343eb6
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=h8300 SHELL=/bin/bash drivers/regulator/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> drivers/regulator/ti-abb-regulator.c:169: warning: expecting prototype for ti_abb_wait_tranx(). Prototype was for ti_abb_wait_txdone() instead


vim +169 drivers/regulator/ti-abb-regulator.c

40b1936efebdb9 Andrii.Tseglytskyi 2013-05-02 160
40b1936efebdb9 Andrii.Tseglytskyi 2013-05-02 161 /**
40b1936efebdb9 Andrii.Tseglytskyi 2013-05-02 162 * ti_abb_wait_tranx() - waits for ABB tranxdone event
40b1936efebdb9 Andrii.Tseglytskyi 2013-05-02 163 * @dev: device
40b1936efebdb9 Andrii.Tseglytskyi 2013-05-02 164 * @abb: pointer to the abb instance
40b1936efebdb9 Andrii.Tseglytskyi 2013-05-02 165 *
40b1936efebdb9 Andrii.Tseglytskyi 2013-05-02 166 * Return: 0 on success or -ETIMEDOUT if the event is not cleared on time.
40b1936efebdb9 Andrii.Tseglytskyi 2013-05-02 167 */
40b1936efebdb9 Andrii.Tseglytskyi 2013-05-02 168 static int ti_abb_wait_txdone(struct device *dev, struct ti_abb *abb)
40b1936efebdb9 Andrii.Tseglytskyi 2013-05-02 @169 {
40b1936efebdb9 Andrii.Tseglytskyi 2013-05-02 170 int timeout = 0;
40b1936efebdb9 Andrii.Tseglytskyi 2013-05-02 171 bool status;
40b1936efebdb9 Andrii.Tseglytskyi 2013-05-02 172
40b1936efebdb9 Andrii.Tseglytskyi 2013-05-02 173 while (timeout++ <= abb->settling_time) {
40b1936efebdb9 Andrii.Tseglytskyi 2013-05-02 174 status = ti_abb_check_txdone(abb);
40b1936efebdb9 Andrii.Tseglytskyi 2013-05-02 175 if (status)
f64db548799e03 Axel Lin 2019-09-29 176 return 0;
40b1936efebdb9 Andrii.Tseglytskyi 2013-05-02 177
40b1936efebdb9 Andrii.Tseglytskyi 2013-05-02 178 udelay(1);
40b1936efebdb9 Andrii.Tseglytskyi 2013-05-02 179 }
40b1936efebdb9 Andrii.Tseglytskyi 2013-05-02 180
f64db548799e03 Axel Lin 2019-09-29 181 dev_warn_ratelimited(dev, "%s:TRANXDONE timeout(%duS) int=0x%08x\n",
40b1936efebdb9 Andrii.Tseglytskyi 2013-05-02 182 __func__, timeout, readl(abb->int_base));
40b1936efebdb9 Andrii.Tseglytskyi 2013-05-02 183 return -ETIMEDOUT;
40b1936efebdb9 Andrii.Tseglytskyi 2013-05-02 184 }
40b1936efebdb9 Andrii.Tseglytskyi 2013-05-02 185

:::::: The code at line 169 was first introduced by commit
:::::: 40b1936efebdb9c31d9ed6fe59055f71ea366509 regulator: Introduce TI Adaptive Body Bias(ABB) on-chip LDO driver

:::::: TO: Andrii.Tseglytskyi <andrii.tseglytskyi@xxxxxx>
:::::: CC: Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip