All of lore.kernel.org
 help / color / mirror / Atom feed
* [ammarfaizi2-block:paulmck/linux-rcu/peterz.2023.01.26a 64/68] kernel/trace/trace_preemptirq.c:122:2: error: call to undeclared function 'trace'; ISO C99 and later do not support implicit function declarations
@ 2023-02-02 12:26 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-02-02 12:26 UTC (permalink / raw)
  To: Peter Zijlstra
  Cc: llvm, oe-kbuild-all, Ammar Faizi, GNU/Weeb Mailing List,
	Paul E. McKenney

tree:   https://github.com/ammarfaizi2/linux-block paulmck/linux-rcu/peterz.2023.01.26a
head:   f9588508f16615daf50ae4e3e16f40b6be874154
commit: 29847e5e64b9a99e8e55c70229733f1a30bd4143 [64/68] tracing, preempt: Squash _rcuidle tracing
config: arm64-randconfig-r016-20230130 (https://download.01.org/0day-ci/archive/20230202/202302022036.e3TYkFbH-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 4196ca3278f78c6e19246e54ab0ecb364e37d66a)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://github.com/ammarfaizi2/linux-block/commit/29847e5e64b9a99e8e55c70229733f1a30bd4143
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block paulmck/linux-rcu/peterz.2023.01.26a
        git checkout 29847e5e64b9a99e8e55c70229733f1a30bd4143
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/iommu/ kernel/trace/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   kernel/trace/trace_preemptirq.c:88:16: warning: no previous prototype for function 'trace_hardirqs_on_caller' [-Wmissing-prototypes]
   __visible void trace_hardirqs_on_caller(unsigned long caller_addr)
                  ^
   kernel/trace/trace_preemptirq.c:88:11: note: declare 'static' if the function is not intended to be used outside of this translation unit
   __visible void trace_hardirqs_on_caller(unsigned long caller_addr)
             ^
             static 
   kernel/trace/trace_preemptirq.c:103:16: warning: no previous prototype for function 'trace_hardirqs_off_caller' [-Wmissing-prototypes]
   __visible void trace_hardirqs_off_caller(unsigned long caller_addr)
                  ^
   kernel/trace/trace_preemptirq.c:103:11: note: declare 'static' if the function is not intended to be used outside of this translation unit
   __visible void trace_hardirqs_off_caller(unsigned long caller_addr)
             ^
             static 
>> kernel/trace/trace_preemptirq.c:122:2: error: call to undeclared function 'trace'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
           trace(preempt_enable)(a0, a1);
           ^
>> kernel/trace/trace_preemptirq.c:122:8: error: use of undeclared identifier 'preempt_enable'
           trace(preempt_enable)(a0, a1);
                 ^
   kernel/trace/trace_preemptirq.c:128:2: error: call to undeclared function 'trace'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
           trace(preempt_disable)(a0, a1);
           ^
>> kernel/trace/trace_preemptirq.c:128:8: error: use of undeclared identifier 'preempt_disable'
           trace(preempt_disable)(a0, a1);
                 ^
   2 warnings and 4 errors generated.


vim +/trace +122 kernel/trace/trace_preemptirq.c

   102	
 > 103	__visible void trace_hardirqs_off_caller(unsigned long caller_addr)
   104	{
   105		lockdep_hardirqs_off(caller_addr);
   106	
   107		if (!this_cpu_read(tracing_irq_cpu)) {
   108			this_cpu_write(tracing_irq_cpu, 1);
   109			tracer_hardirqs_off(CALLER_ADDR0, caller_addr);
   110			if (!in_nmi())
   111				trace_irq_disable_rcuidle(CALLER_ADDR0, caller_addr);
   112		}
   113	}
   114	EXPORT_SYMBOL(trace_hardirqs_off_caller);
   115	NOKPROBE_SYMBOL(trace_hardirqs_off_caller);
   116	#endif /* CONFIG_TRACE_IRQFLAGS */
   117	
   118	#ifdef CONFIG_TRACE_PREEMPT_TOGGLE
   119	
   120	void trace_preempt_on(unsigned long a0, unsigned long a1)
   121	{
 > 122		trace(preempt_enable)(a0, a1);
   123		tracer_preempt_on(a0, a1);
   124	}
   125	
   126	void trace_preempt_off(unsigned long a0, unsigned long a1)
   127	{
 > 128		trace(preempt_disable)(a0, a1);

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

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

only message in thread, other threads:[~2023-02-02 12:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-02 12:26 [ammarfaizi2-block:paulmck/linux-rcu/peterz.2023.01.26a 64/68] kernel/trace/trace_preemptirq.c:122:2: error: call to undeclared function 'trace'; ISO C99 and later do not support implicit function declarations kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.