llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH 2/3] tracing: Record task flag NEED_RESCHED_LAZY.
       [not found] <20241009105709.887510-3-bigeasy@linutronix.de>
@ 2024-10-12 18:30 ` kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-10-12 18:30 UTC (permalink / raw)
  To: Sebastian Andrzej Siewior; +Cc: llvm, oe-kbuild-all

Hi Sebastian,

kernel test robot noticed the following build errors:

[auto build test ERROR on linus/master]
[also build test ERROR on rostedt-trace/for-next v6.12-rc2 next-20241011]
[cannot apply to rostedt-trace/for-next-urgent]
[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/Sebastian-Andrzej-Siewior/tracing-Replace-TRACE_FLAG_IRQS_NOSUPPORT-with-its-config-option/20241011-002703
base:   linus/master
patch link:    https://lore.kernel.org/r/20241009105709.887510-3-bigeasy%40linutronix.de
patch subject: [PATCH 2/3] tracing: Record task flag NEED_RESCHED_LAZY.
config: arm64-randconfig-002-20241012 (https://download.01.org/0day-ci/archive/20241013/202410130231.L7iGIO8b-lkp@intel.com/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241013/202410130231.L7iGIO8b-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202410130231.L7iGIO8b-lkp@intel.com/

All errors (new ones prefixed by >>):

>> kernel/trace/trace.c:2547:6: error: call to undeclared function 'tif_test_bit'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
           if (tif_test_bit(TIF_NEED_RESCHED_LAZY))
               ^
   kernel/trace/trace.c:2547:19: error: use of undeclared identifier 'TIF_NEED_RESCHED_LAZY'
           if (tif_test_bit(TIF_NEED_RESCHED_LAZY))
                            ^
   2 errors generated.


vim +/tif_test_bit +2547 kernel/trace/trace.c

  2526	
  2527	unsigned int tracing_gen_ctx_irq_test(unsigned int irqs_status)
  2528	{
  2529		unsigned int trace_flags = irqs_status;
  2530		unsigned int pc;
  2531	
  2532		pc = preempt_count();
  2533	
  2534		if (pc & NMI_MASK)
  2535			trace_flags |= TRACE_FLAG_NMI;
  2536		if (pc & HARDIRQ_MASK)
  2537			trace_flags |= TRACE_FLAG_HARDIRQ;
  2538		if (in_serving_softirq())
  2539			trace_flags |= TRACE_FLAG_SOFTIRQ;
  2540		if (softirq_count() >> (SOFTIRQ_SHIFT + 1))
  2541			trace_flags |= TRACE_FLAG_BH_OFF;
  2542	
  2543		if (tif_need_resched())
  2544			trace_flags |= TRACE_FLAG_NEED_RESCHED;
  2545		if (test_preempt_need_resched())
  2546			trace_flags |= TRACE_FLAG_PREEMPT_RESCHED;
> 2547		if (tif_test_bit(TIF_NEED_RESCHED_LAZY))
  2548			trace_flags |= TRACE_FLAG_NEED_RESCHED_LAZY;
  2549		return (trace_flags << 16) | (min_t(unsigned int, pc & 0xff, 0xf)) |
  2550			(min_t(unsigned int, migration_disable_value(), 0xf)) << 4;
  2551	}
  2552	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-10-12 18:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20241009105709.887510-3-bigeasy@linutronix.de>
2024-10-12 18:30 ` [PATCH 2/3] tracing: Record task flag NEED_RESCHED_LAZY 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).