[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202412221935.0THpOhd5-lkp@intel.com>
Date: Sun, 22 Dec 2024 19:19:58 +0800
From: kernel test robot <lkp@...el.com>
To: Christian König <christian.koenig@....com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Luben Tuikov <luben.tuikov@....com>
Subject: drivers/gpu/drm/scheduler/sched_main.c:266: warning: Function
parameter or struct member 'result' not described in 'drm_sched_job_done'
Hi Christian,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 48f506ad0b683d3e7e794efa60c5785c4fdc86fa
commit: 539f9ee4b52a8bec95ff064e22dd2fb1e258e818 drm/scheduler: properly forward fence errors
date: 1 year, 8 months ago
config: nios2-randconfig-001-20241220 (https://download.01.org/0day-ci/archive/20241222/202412221935.0THpOhd5-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241222/202412221935.0THpOhd5-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412221935.0THpOhd5-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/scheduler/sched_main.c:266: warning: Function parameter or struct member 'result' not described in 'drm_sched_job_done'
vim +266 drivers/gpu/drm/scheduler/sched_main.c
08fb97de03aa22 Andrey Grodzovsky 2022-09-30 258
71173e787cab9d Luben Tuikov 2020-12-03 259 /**
71173e787cab9d Luben Tuikov 2020-12-03 260 * drm_sched_job_done - complete a job
71173e787cab9d Luben Tuikov 2020-12-03 261 * @s_job: pointer to the job which is done
71173e787cab9d Luben Tuikov 2020-12-03 262 *
71173e787cab9d Luben Tuikov 2020-12-03 263 * Finish the job's fence and wake up the worker thread.
71173e787cab9d Luben Tuikov 2020-12-03 264 */
539f9ee4b52a8b Christian König 2023-04-17 265 static void drm_sched_job_done(struct drm_sched_job *s_job, int result)
71173e787cab9d Luben Tuikov 2020-12-03 @266 {
71173e787cab9d Luben Tuikov 2020-12-03 267 struct drm_sched_fence *s_fence = s_job->s_fence;
71173e787cab9d Luben Tuikov 2020-12-03 268 struct drm_gpu_scheduler *sched = s_fence->sched;
71173e787cab9d Luben Tuikov 2020-12-03 269
71173e787cab9d Luben Tuikov 2020-12-03 270 atomic_dec(&sched->hw_rq_count);
f2f12eb9c32bc7 Christian König 2021-02-02 271 atomic_dec(sched->score);
71173e787cab9d Luben Tuikov 2020-12-03 272
71173e787cab9d Luben Tuikov 2020-12-03 273 trace_drm_sched_process_job(s_fence);
71173e787cab9d Luben Tuikov 2020-12-03 274
71173e787cab9d Luben Tuikov 2020-12-03 275 dma_fence_get(&s_fence->finished);
539f9ee4b52a8b Christian König 2023-04-17 276 drm_sched_fence_finished(s_fence, result);
71173e787cab9d Luben Tuikov 2020-12-03 277 dma_fence_put(&s_fence->finished);
71173e787cab9d Luben Tuikov 2020-12-03 278 wake_up_interruptible(&sched->wake_up_worker);
71173e787cab9d Luben Tuikov 2020-12-03 279 }
71173e787cab9d Luben Tuikov 2020-12-03 280
:::::: The code at line 266 was first introduced by commit
:::::: 71173e787cab9db4ca1fa6229477cb3d254bc285 drm/scheduler: Essentialize the job done callback
:::::: TO: Luben Tuikov <luben.tuikov@....com>
:::::: CC: Christian König <christian.koenig@....com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists