[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202110191249.OKmNll9M-lkp@intel.com>
Date: Tue, 19 Oct 2021 12:51:01 +0800
From: kernel test robot <lkp@...el.com>
To: Vincent Whitchurch <vincent.whitchurch@...s.com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org,
Jonathan Cameron <Jonathan.Cameron@...wei.com>,
Lars-Peter Clausen <lars@...afoo.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
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@...el.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@...ntia.se>
:::::: CC: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (37289 bytes)
Powered by blists - more mailing lists