Re: [PATCH v2 2/3] tracing: Add trace_irqsoff tracepoints

From: kbuild test robot
Date: Thu Aug 25 2016 - 02:48:38 EST


Hi Binoy,

[auto build test WARNING on tip/perf/core]
[also build test WARNING on v4.8-rc3 next-20160824]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
[Suggest to use git(>=2.9.0) format-patch --base=<commit> (or --base=auto for convenience) to record what (public, well-known) commit your patch series was built on]
[Check https://git-scm.com/docs/git-format-patch for more information]

url: https://github.com/0day-ci/linux/commits/Binoy-Jayan/tracing-Deference-pointers-without-RCU-checks/20160824-192127
config: tile-allyesconfig (attached as .config)
compiler: tilegx-linux-gcc (GCC) 4.6.2
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=tile

All warnings (new ones prefixed by >>):

kernel/trace/trace_irqsoff.c: In function 'stop_critical_timings':
>> kernel/trace/trace_irqsoff.c:454:4: warning: passing argument 1 of 'get_delta' from incompatible pointer type [enabled by default]
kernel/trace/trace_irqsoff.c:430:23: note: expected 'cycle_t *' but argument is of type 'cycle_t *'
kernel/trace/trace_irqsoff.c: In function 'time_hardirqs_on':
kernel/trace/trace_irqsoff.c:466:4: warning: passing argument 1 of 'get_delta' from incompatible pointer type [enabled by default]
kernel/trace/trace_irqsoff.c:430:23: note: expected 'cycle_t *' but argument is of type 'cycle_t *'

vim +/get_delta +454 kernel/trace/trace_irqsoff.c

438 this_cpu_write(ts_critical_timings,
439 (cycle_t) trace_clock_local());
440
441 if (preempt_trace() || irq_trace())
442 start_critical_timing(CALLER_ADDR0, CALLER_ADDR1);
443 }
444 EXPORT_SYMBOL_GPL(start_critical_timings);
445
446 void stop_critical_timings(void)
447 {
448 if (preempt_trace() || irq_trace())
449 stop_critical_timing(CALLER_ADDR0, CALLER_ADDR1);
450
451 if (trace_latency_critical_timings_enabled()) {
452 trace_latency_critical_timings(
453 raw_smp_processor_id(),
> 454 get_delta(&ts_critical_timings));
455 }
456
457 }
458 EXPORT_SYMBOL_GPL(stop_critical_timings);
459
460 #ifdef CONFIG_IRQSOFF_TRACER
461 #ifdef CONFIG_PROVE_LOCKING
462 void time_hardirqs_on(unsigned long a0, unsigned long a1)

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: Binary data