[PATCH v10 08/10] drm: Get rid of drm_sched_job.id

kernel test robot lkp at intel.com
Thu May 22 02:27:31 UTC 2025


Hi Pierre-Eric,

kernel test robot noticed the following build errors:

[auto build test ERROR on drm-xe/drm-xe-next]
[also build test ERROR on next-20250521]
[cannot apply to lwn/docs-next linus/master v6.15-rc7]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Pierre-Eric-Pelloux-Prayer/drm-debugfs-Output-client_id-in-in-drm_clients_info/20250521-235024
base:   https://gitlab.freedesktop.org/drm/xe/kernel.git drm-xe-next
patch link:    https://lore.kernel.org/r/20250521154531.10541-9-pierre-eric.pelloux-prayer%40amd.com
patch subject: [PATCH v10 08/10] drm: Get rid of drm_sched_job.id
config: i386-buildonly-randconfig-002-20250522 (https://download.01.org/0day-ci/archive/20250522/202505221031.qXNz9Ikv-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250522/202505221031.qXNz9Ikv-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/202505221031.qXNz9Ikv-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/trace/define_trace.h:119,
                    from drivers/gpu/drm/lima/lima_trace.h:50,
                    from drivers/gpu/drm/lima/lima_trace.c:7:
   include/trace/../../drivers/gpu/drm/lima/lima_trace.h: In function 'do_trace_event_raw_event_lima_task':
>> include/trace/../../drivers/gpu/drm/lima/lima_trace.h:24:46: error: 'struct drm_sched_job' has no member named 'id'
      24 |                 __entry->task_id = task->base.id;
         |                                              ^
   include/trace/trace_events.h:427:11: note: in definition of macro '__DECLARE_EVENT_CLASS'
     427 |         { assign; }                                                     \
         |           ^~~~~~
   include/trace/trace_events.h:435:23: note: in expansion of macro 'PARAMS'
     435 |                       PARAMS(assign), PARAMS(print))                    \
         |                       ^~~~~~
   include/trace/../../drivers/gpu/drm/lima/lima_trace.h:13:1: note: in expansion of macro 'DECLARE_EVENT_CLASS'
      13 | DECLARE_EVENT_CLASS(lima_task,
         | ^~~~~~~~~~~~~~~~~~~
   include/trace/../../drivers/gpu/drm/lima/lima_trace.h:23:9: note: in expansion of macro 'TP_fast_assign'
      23 |         TP_fast_assign(
         |         ^~~~~~~~~~~~~~
   In file included from include/trace/define_trace.h:120:
   include/trace/../../drivers/gpu/drm/lima/lima_trace.h: In function 'do_perf_trace_lima_task':
>> include/trace/../../drivers/gpu/drm/lima/lima_trace.h:24:46: error: 'struct drm_sched_job' has no member named 'id'
      24 |                 __entry->task_id = task->base.id;
         |                                              ^
   include/trace/perf.h:51:11: note: in definition of macro '__DECLARE_EVENT_CLASS'
      51 |         { assign; }                                                     \
         |           ^~~~~~
   include/trace/perf.h:67:23: note: in expansion of macro 'PARAMS'
      67 |                       PARAMS(assign), PARAMS(print))                    \
         |                       ^~~~~~
   include/trace/../../drivers/gpu/drm/lima/lima_trace.h:13:1: note: in expansion of macro 'DECLARE_EVENT_CLASS'
      13 | DECLARE_EVENT_CLASS(lima_task,
         | ^~~~~~~~~~~~~~~~~~~
   include/trace/../../drivers/gpu/drm/lima/lima_trace.h:23:9: note: in expansion of macro 'TP_fast_assign'
      23 |         TP_fast_assign(
         |         ^~~~~~~~~~~~~~


vim +24 include/trace/../../drivers/gpu/drm/lima/lima_trace.h

7f60c4b9d964f6 Qiang Yu                2020-03-07  12  
7f60c4b9d964f6 Qiang Yu                2020-03-07  13  DECLARE_EVENT_CLASS(lima_task,
7f60c4b9d964f6 Qiang Yu                2020-03-07  14  	TP_PROTO(struct lima_sched_task *task),
7f60c4b9d964f6 Qiang Yu                2020-03-07  15  	TP_ARGS(task),
7f60c4b9d964f6 Qiang Yu                2020-03-07  16  	TP_STRUCT__entry(
7f60c4b9d964f6 Qiang Yu                2020-03-07  17  		__field(uint64_t, task_id)
7f60c4b9d964f6 Qiang Yu                2020-03-07  18  		__field(unsigned int, context)
7f60c4b9d964f6 Qiang Yu                2020-03-07  19  		__field(unsigned int, seqno)
7f60c4b9d964f6 Qiang Yu                2020-03-07  20  		__string(pipe, task->base.sched->name)
7f60c4b9d964f6 Qiang Yu                2020-03-07  21  		),
7f60c4b9d964f6 Qiang Yu                2020-03-07  22  
7f60c4b9d964f6 Qiang Yu                2020-03-07  23  	TP_fast_assign(
7f60c4b9d964f6 Qiang Yu                2020-03-07 @24  		__entry->task_id = task->base.id;
7f60c4b9d964f6 Qiang Yu                2020-03-07  25  		__entry->context = task->base.s_fence->finished.context;
7f60c4b9d964f6 Qiang Yu                2020-03-07  26  		__entry->seqno = task->base.s_fence->finished.seqno;
2c92ca849fcc6e Steven Rostedt (Google  2024-05-16  27) 		__assign_str(pipe);
7f60c4b9d964f6 Qiang Yu                2020-03-07  28  		),
7f60c4b9d964f6 Qiang Yu                2020-03-07  29  
7f60c4b9d964f6 Qiang Yu                2020-03-07  30  	TP_printk("task=%llu, context=%u seqno=%u pipe=%s",
7f60c4b9d964f6 Qiang Yu                2020-03-07  31  		  __entry->task_id, __entry->context, __entry->seqno,
7f60c4b9d964f6 Qiang Yu                2020-03-07  32  		  __get_str(pipe))
7f60c4b9d964f6 Qiang Yu                2020-03-07  33  );
7f60c4b9d964f6 Qiang Yu                2020-03-07  34  

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


More information about the dri-devel mailing list