The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Cai Huoqing <caihuoqing@baidu.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Mark Brown <broonie@kernel.org>
Subject: drivers/regulator/ti-abb-regulator.c:169: warning: expecting prototype for ti_abb_wait_tranx(). Prototype was for ti_abb_wait_txdone() instead
Date: Mon, 8 Nov 2021 12:17:11 +0800	[thread overview]
Message-ID: <202111081200.pXbHoQcs-lkp@intel.com> (raw)

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

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@intel.com>

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@ti.com>
:::::: CC: Mark Brown <broonie@opensource.wolfsonmicro.com>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 29323 bytes --]

                 reply	other threads:[~2021-11-08  4:18 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=202111081200.pXbHoQcs-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=broonie@kernel.org \
    --cc=caihuoqing@baidu.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox