From: kernel test robot <lkp@intel.com>
To: Vincent Whitchurch <vincent.whitchurch@axis.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org,
Jonathan Cameron <Jonathan.Cameron@huawei.com>,
Lars-Peter Clausen <lars@metafoo.de>
Subject: [jic23-iio:testing 176/178] drivers/mux/core.c:391: warning: expecting prototype for mux_control_try_select(). Prototype was for mux_control_try_select_delay() instead
Date: Tue, 19 Oct 2021 12:51:01 +0800 [thread overview]
Message-ID: <202110191249.OKmNll9M-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 5537 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git testing
head: d6c96ec70b3ccc97eb0c6c794836a5c3340c9927
commit: 9a7254435c4fdb5ae424d9f40a48a7ded51b3367 [176/178] mux: add support for delay after muxing
config: i386-randconfig-a001-20211019 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project b37efed957ed0a0193d80020aefd55cb587dfc1f)
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/jic23/iio.git/commit/?id=9a7254435c4fdb5ae424d9f40a48a7ded51b3367
git remote add jic23-iio https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git
git fetch --no-tags jic23-iio testing
git checkout 9a7254435c4fdb5ae424d9f40a48a7ded51b3367
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/mux/
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/mux/core.c:391: warning: expecting prototype for mux_control_try_select(). Prototype was for mux_control_try_select_delay() instead
vim +391 drivers/mux/core.c
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 372
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 373 /**
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 374 * mux_control_try_select() - Try to select the given multiplexer state.
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 375 * @mux: The mux-control to request a change of state from.
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 376 * @state: The new requested state.
9a7254435c4fdb drivers/mux/core.c Vincent Whitchurch 2021-10-07 377 * @delay_us: The time to delay (in microseconds) if the mux state is changed.
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 378 *
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 379 * On successfully selecting the mux-control state, it will be locked until
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 380 * mux_control_deselect() called.
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 381 *
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 382 * Therefore, make sure to call mux_control_deselect() when the operation is
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 383 * complete and the mux-control is free for others to use, but do not call
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 384 * mux_control_deselect() if mux_control_try_select() fails.
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 385 *
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 386 * Return: 0 when the mux-control state has the requested state or a negative
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 387 * errno on error. Specifically -EBUSY if the mux-control is contended.
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 388 */
9a7254435c4fdb drivers/mux/core.c Vincent Whitchurch 2021-10-07 389 int mux_control_try_select_delay(struct mux_control *mux, unsigned int state,
9a7254435c4fdb drivers/mux/core.c Vincent Whitchurch 2021-10-07 390 unsigned int delay_us)
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 @391 {
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 392 int ret;
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 393
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 394 if (down_trylock(&mux->lock))
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 395 return -EBUSY;
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 396
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 397 ret = __mux_control_select(mux, state);
9a7254435c4fdb drivers/mux/core.c Vincent Whitchurch 2021-10-07 398 if (ret >= 0)
9a7254435c4fdb drivers/mux/core.c Vincent Whitchurch 2021-10-07 399 mux_control_delay(mux, delay_us);
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 400
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 401 if (ret < 0)
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 402 up(&mux->lock);
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 403
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 404 return ret;
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 405 }
9a7254435c4fdb drivers/mux/core.c Vincent Whitchurch 2021-10-07 406 EXPORT_SYMBOL_GPL(mux_control_try_select_delay);
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 407
:::::: The code at line 391 was first introduced by commit
:::::: a3b02a9c6591ce154cd44e2383406390a45b530c mux: minimal mux subsystem
:::::: TO: Peter Rosin <peda@axentia.se>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
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: 37289 bytes --]
reply other threads:[~2021-10-19 4:51 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=202110191249.OKmNll9M-lkp@intel.com \
--to=lkp@intel.com \
--cc=Jonathan.Cameron@huawei.com \
--cc=kbuild-all@lists.01.org \
--cc=lars@metafoo.de \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=vincent.whitchurch@axis.com \
/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