linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [linux-rt-devel:linux-5.13.y-rt-testing 223/226] kernel/locking/rtmutex_api.c:501: warning: expecting prototype for rwsem_rt_mutex_try_lock(). Prototype was for rwsem_rt_mutex_trylock() instead
@ 2021-07-10  3:55 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-07-10  3:55 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: kbuild-all, linux-kernel

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git linux-5.13.y-rt-testing
head:   db8ae8e3fd71ddc8103a71d002780bed20e5d9de
commit: 8babe6924dddf3c0e3ac5390630c4905c7ea7c73 [223/226] locking/rt: Fix kernel doc for rwsem_rt_mutex_try_lock()
config: alpha-randconfig-p001-20210709 (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.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/rt/linux-rt-devel.git/commit/?id=8babe6924dddf3c0e3ac5390630c4905c7ea7c73
        git remote add linux-rt-devel https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git
        git fetch --no-tags linux-rt-devel linux-5.13.y-rt-testing
        git checkout 8babe6924dddf3c0e3ac5390630c4905c7ea7c73
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross O=build_dir ARCH=alpha SHELL=/bin/bash kernel/locking/

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 >>):

>> kernel/locking/rtmutex_api.c:501: warning: expecting prototype for rwsem_rt_mutex_try_lock(). Prototype was for rwsem_rt_mutex_trylock() instead


vim +501 kernel/locking/rtmutex_api.c

e03cbdcf154eddbc Thomas Gleixner 2021-07-06  491  
e03cbdcf154eddbc Thomas Gleixner 2021-07-06  492  /**
8babe6924dddf3c0 Thomas Gleixner 2021-07-09  493   * rwsem_rt_mutex_try_lock - Try to lock a rt_mutex
e03cbdcf154eddbc Thomas Gleixner 2021-07-06  494   * @lock:      The rt_mutex to be locked
e03cbdcf154eddbc Thomas Gleixner 2021-07-06  495   *
e03cbdcf154eddbc Thomas Gleixner 2021-07-06  496   * The function does no lockdep operations on @lock. The lockdep state
e03cbdcf154eddbc Thomas Gleixner 2021-07-06  497   * changes have to be done on the callsite related to the locking primitive
e03cbdcf154eddbc Thomas Gleixner 2021-07-06  498   * which embeds the rtmutex. Otherwise lockdep has double tracking.
e03cbdcf154eddbc Thomas Gleixner 2021-07-06  499   */
e03cbdcf154eddbc Thomas Gleixner 2021-07-06  500  int __sched rwsem_rt_mutex_trylock(struct rt_mutex *lock)
e03cbdcf154eddbc Thomas Gleixner 2021-07-06 @501  {
e03cbdcf154eddbc Thomas Gleixner 2021-07-06  502  	if (IS_ENABLED(CONFIG_DEBUG_RT_MUTEXES) &&
e03cbdcf154eddbc Thomas Gleixner 2021-07-06  503  	    WARN_ON_ONCE(in_nmi() | in_hardirq()))
e03cbdcf154eddbc Thomas Gleixner 2021-07-06  504  			return 0;
e03cbdcf154eddbc Thomas Gleixner 2021-07-06  505  
e03cbdcf154eddbc Thomas Gleixner 2021-07-06  506  	if (likely(rt_mutex_cmpxchg_acquire(lock, NULL, current)))
e03cbdcf154eddbc Thomas Gleixner 2021-07-06  507  		return 1;
e03cbdcf154eddbc Thomas Gleixner 2021-07-06  508  
e03cbdcf154eddbc Thomas Gleixner 2021-07-06  509  	return rt_mutex_slowtrylock(lock);
e03cbdcf154eddbc Thomas Gleixner 2021-07-06  510  }
e03cbdcf154eddbc Thomas Gleixner 2021-07-06  511  

:::::: The code at line 501 was first introduced by commit
:::::: e03cbdcf154eddbc014705b6e2ebacd755d6ab39 locking/rtmutex: Provide lockdep less variants of rtmutex interfaces

:::::: TO: Thomas Gleixner <tglx@linutronix.de>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>

---
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: 22821 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [linux-rt-devel:linux-5.13.y-rt-testing 223/226] kernel/locking/rtmutex_api.c:501: warning: expecting prototype for rwsem_rt_mutex_try_lock(). Prototype was for rwsem_rt_mutex_trylock() instead
@ 2021-07-10  2:21 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-07-10  2:21 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: clang-built-linux, kbuild-all, linux-kernel

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git linux-5.13.y-rt-testing
head:   db8ae8e3fd71ddc8103a71d002780bed20e5d9de
commit: 8babe6924dddf3c0e3ac5390630c4905c7ea7c73 [223/226] locking/rt: Fix kernel doc for rwsem_rt_mutex_try_lock()
config: x86_64-randconfig-a015-20210709 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8d69635ed9ecf36fd0ca85906bfde17949671cbe)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git/commit/?id=8babe6924dddf3c0e3ac5390630c4905c7ea7c73
        git remote add linux-rt-devel https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git
        git fetch --no-tags linux-rt-devel linux-5.13.y-rt-testing
        git checkout 8babe6924dddf3c0e3ac5390630c4905c7ea7c73
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=x86_64 SHELL=/bin/bash kernel/locking/

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 >>):

>> kernel/locking/rtmutex_api.c:501: warning: expecting prototype for rwsem_rt_mutex_try_lock(). Prototype was for rwsem_rt_mutex_trylock() instead


vim +501 kernel/locking/rtmutex_api.c

e03cbdcf154edd Thomas Gleixner 2021-07-06  491  
e03cbdcf154edd Thomas Gleixner 2021-07-06  492  /**
8babe6924dddf3 Thomas Gleixner 2021-07-09  493   * rwsem_rt_mutex_try_lock - Try to lock a rt_mutex
e03cbdcf154edd Thomas Gleixner 2021-07-06  494   * @lock:      The rt_mutex to be locked
e03cbdcf154edd Thomas Gleixner 2021-07-06  495   *
e03cbdcf154edd Thomas Gleixner 2021-07-06  496   * The function does no lockdep operations on @lock. The lockdep state
e03cbdcf154edd Thomas Gleixner 2021-07-06  497   * changes have to be done on the callsite related to the locking primitive
e03cbdcf154edd Thomas Gleixner 2021-07-06  498   * which embeds the rtmutex. Otherwise lockdep has double tracking.
e03cbdcf154edd Thomas Gleixner 2021-07-06  499   */
e03cbdcf154edd Thomas Gleixner 2021-07-06  500  int __sched rwsem_rt_mutex_trylock(struct rt_mutex *lock)
e03cbdcf154edd Thomas Gleixner 2021-07-06 @501  {
e03cbdcf154edd Thomas Gleixner 2021-07-06  502  	if (IS_ENABLED(CONFIG_DEBUG_RT_MUTEXES) &&
e03cbdcf154edd Thomas Gleixner 2021-07-06  503  	    WARN_ON_ONCE(in_nmi() | in_hardirq()))
e03cbdcf154edd Thomas Gleixner 2021-07-06  504  			return 0;
e03cbdcf154edd Thomas Gleixner 2021-07-06  505  
e03cbdcf154edd Thomas Gleixner 2021-07-06  506  	if (likely(rt_mutex_cmpxchg_acquire(lock, NULL, current)))
e03cbdcf154edd Thomas Gleixner 2021-07-06  507  		return 1;
e03cbdcf154edd Thomas Gleixner 2021-07-06  508  
e03cbdcf154edd Thomas Gleixner 2021-07-06  509  	return rt_mutex_slowtrylock(lock);
e03cbdcf154edd Thomas Gleixner 2021-07-06  510  }
e03cbdcf154edd Thomas Gleixner 2021-07-06  511  

:::::: The code at line 501 was first introduced by commit
:::::: e03cbdcf154eddbc014705b6e2ebacd755d6ab39 locking/rtmutex: Provide lockdep less variants of rtmutex interfaces

:::::: TO: Thomas Gleixner <tglx@linutronix.de>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>

---
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: 46499 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-10  3:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-10  3:55 [linux-rt-devel:linux-5.13.y-rt-testing 223/226] kernel/locking/rtmutex_api.c:501: warning: expecting prototype for rwsem_rt_mutex_try_lock(). Prototype was for rwsem_rt_mutex_trylock() instead kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2021-07-10  2:21 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).