Hi Aaron,

kernel test robot noticed the following build errors:

[auto build test ERROR on axboe/for-next]
[also build test ERROR on trace/for-next linus/master v7.1-rc2 next-20260508]
[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/Aaron-Tomlin/blk-mq-add-tracepoint-block_rq_tag_wait/20260428-013259
base:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux.git for-next
patch link:    
https://lore.kernel.org/r/20260427020142.358912-3-atomlin%40atomlin.com
patch subject: [PATCH v5 2/2] blk-mq: expose tag starvation counts via debugfs
config: x86_64-rhel-9.4-rust 
(https://download.01.org/0day-ci/archive/20260509/[email protected]/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 
87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20260509/[email protected]/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 <[email protected]>
| Closes: 
https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

   In file included from block/blk-core.c:45:
   In file included from include/trace/events/block.h:726:
   In file included from include/trace/define_trace.h:132:
   In file included from include/trace/trace_events.h:468:
>> include/trace/events/block.h:255:47: error: expected ':'
     255 |                 __entry->dev            = q->disk ? 
disk_devt(q->disk);
         |                                                                      
 ^
         |                                                                      
 : 
   include/trace/stages/stage6_event_callback.h:133:33: note: expanded from 
macro 'TP_fast_assign'
     133 | #define TP_fast_assign(args...) args
         |                                 ^
   include/trace/trace_events.h:44:16: note: expanded from macro 'TRACE_EVENT'
      44 |                              PARAMS(assign),                   \
         |                                     ^
   include/linux/tracepoint.h:160:25: note: expanded from macro 'PARAMS'
     160 | #define PARAMS(args...) args
         |                         ^
   include/trace/trace_events.h:435:16: note: expanded from macro 
'DECLARE_EVENT_CLASS'
     435 |                       PARAMS(assign), PARAMS(print))                 
   \
         |                              ^
   include/linux/tracepoint.h:160:25: note: expanded from macro 'PARAMS'
     160 | #define PARAMS(args...) args
         |                         ^
   include/trace/trace_events.h:427:4: note: expanded from macro '\
   __DECLARE_EVENT_CLASS'
     427 |         { assign; }                                                  
   \
         |           ^
   include/trace/events/block.h:255:27: note: to match this '?'
     255 |                 __entry->dev            = q->disk ? 
disk_devt(q->disk);
         |                                                   ^
>> include/trace/events/block.h:255:47: error: expected expression
     255 |                 __entry->dev            = q->disk ? 
disk_devt(q->disk);
         |                                                                      
 ^
   In file included from block/blk-core.c:45:
   In file included from include/trace/events/block.h:726:
   In file included from include/trace/define_trace.h:133:
   In file included from include/trace/perf.h:110:
>> include/trace/events/block.h:255:47: error: expected ':'
     255 |                 __entry->dev            = q->disk ? 
disk_devt(q->disk);
         |                                                                      
 ^
         |                                                                      
 : 
   include/trace/stages/stage6_event_callback.h:133:33: note: expanded from 
macro 'TP_fast_assign'
     133 | #define TP_fast_assign(args...) args
         |                                 ^
   include/trace/trace_events.h:44:16: note: expanded from macro 'TRACE_EVENT'
      44 |                              PARAMS(assign),                   \
         |                                     ^
   include/linux/tracepoint.h:160:25: note: expanded from macro 'PARAMS'
     160 | #define PARAMS(args...) args
         |                         ^
   include/trace/perf.h:67:16: note: expanded from macro 'DECLARE_EVENT_CLASS'
      67 |                       PARAMS(assign), PARAMS(print))                 
   \
         |                              ^
   include/linux/tracepoint.h:160:25: note: expanded from macro 'PARAMS'
     160 | #define PARAMS(args...) args
         |                         ^
   include/trace/perf.h:51:4: note: expanded from macro '\
   __DECLARE_EVENT_CLASS'
      51 |         { assign; }                                                  
   \
         |           ^
   include/trace/events/block.h:255:27: note: to match this '?'
     255 |                 __entry->dev            = q->disk ? 
disk_devt(q->disk);
         |                                                   ^
>> include/trace/events/block.h:255:47: error: expected expression
     255 |                 __entry->dev            = q->disk ? 
disk_devt(q->disk);
         |                                                                      
 ^
   4 errors generated.


vim +255 include/trace/events/block.h

   242  
   243          TP_PROTO(struct request_queue *q, struct blk_mq_hw_ctx *hctx, 
bool is_sched_tag),
   244  
   245          TP_ARGS(q, hctx, is_sched_tag),
   246  
   247          TP_STRUCT__entry(
   248                  __field( dev_t,         dev                     )
   249                  __field( u32,           hctx_id                 )
   250                  __field( u32,           nr_tags                 )
   251                  __field( bool,          is_sched_tag            )
   252          ),
   253  
   254          TP_fast_assign(
 > 255                  __entry->dev            = q->disk ? disk_devt(q->disk);
   256                  __entry->hctx_id        = hctx->queue_num;
   257                  __entry->is_sched_tag   = is_sched_tag;
   258  
   259                  if (is_sched_tag)
   260                          __entry->nr_tags = hctx->sched_tags->nr_tags;
   261                  else
   262                          __entry->nr_tags = hctx->tags->nr_tags;
   263          ),
   264  
   265          TP_printk("%d,%d hctx=%u starved on %s tags (depth=%u)",
   266                    MAJOR(__entry->dev), MINOR(__entry->dev),
   267                    __entry->hctx_id,
   268                    __entry->is_sched_tag ? "scheduler" : "hardware",
   269                    __entry->nr_tags)
   270  );
   271  

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

Reply via email to