[Cluster-devel] [gfs2:for-later 27/30] kernel/kthread.c:738: warning: Function parameter or member 'k' not described in 'kthread_stop_put'

kernel test robot lkp at intel.com
Tue Aug 29 10:19:07 UTC 2023


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git for-later
head:   b10d94a0cbfc4bbfdf6dcdaa966fb4f17eee08f1
commit: d3a19da72d2ef3e8f1d756b9f859a93ef84c3078 [27/30] kthread: Add kthread_stop_put
config: i386-buildonly-randconfig-001-20230829 (https://download.01.org/0day-ci/archive/20230829/202308291833.73wBCBdr-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230829/202308291833.73wBCBdr-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308291833.73wBCBdr-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> kernel/kthread.c:738: warning: Function parameter or member 'k' not described in 'kthread_stop_put'


vim +738 kernel/kthread.c

   721	
   722	/**
   723	 * kthread_stop_put - stop a thread and put its task struct
   724	 *
   725	 * Stops a kthread and put its task_struct.  This is meant for callers
   726	 * holding an extra reference on the task struct obtained by something
   727	 * like:
   728	 *
   729	 *   t = kthread_create(...);
   730	 *   if (!IS_ERR(t)) {
   731	 *     get_task_struct(t);
   732	 *     wake_up_process(t)
   733	 *   }
   734	 *
   735	 * Returns the result of kthread_stop().
   736	 */
   737	int kthread_stop_put(struct task_struct *k)
 > 738	{
   739		int ret;
   740	
   741		ret = kthread_stop(k);
   742		put_task_struct(k);
   743		return ret;
   744	}
   745	EXPORT_SYMBOL(kthread_stop_put);
   746	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki



More information about the Cluster-devel mailing list