tree:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: aab7ee9f8ff0110bfcd594b33dc33748dc1baf46
commit: a389d86f7fd0902e4ce4136a5601988dbd371eb1 [3550/9127] ring-buffer: Have nested
events still record running time stamp
config: mips-randconfig-r005-20200719 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
ed6b578040a85977026c93bf4188f996148f3218)
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 mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
git checkout a389d86f7fd0902e4ce4136a5601988dbd371eb1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
> kernel/trace/ring_buffer.c:2494:1: warning: unused function
'rb_event_is_commit'
rb_event_is_commit(struct ring_buffer_per_cpu
^
fatal error: error in backend: Nested variants found in inline asm string: ' .set
push
.set mips64r2
.if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data
__attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch")))
__if_trace = $( .func = __func__, .file = "arch/mips/include/asm/bitops.h",
.line = 105, $); 0x00 ) != -1)) : $))) ) && ( 0 ); .set push; .set mips64r2; .rept
1; sync 0x00; .endr; .set pop; .else; ; .endif
1: ll $0, $1
or $0, $2
sc $0, $1
beqz $0, 1b
.set pop
'
clang-12: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 12.0.0 (git://gitmirror/llvm_project
ed6b578040a85977026c93bf4188f996148f3218)
Target: mipsel-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/cross/clang-ed6b578040/bin
clang-12: note: diagnostic msg:
Makefile arch include kernel mm null.dwo scripts source usr virt
vim +/rb_event_is_commit +2494 kernel/trace/ring_buffer.c
2492
2493 static __always_inline bool
2494 rb_event_is_commit(struct ring_buffer_per_cpu *cpu_buffer,
2495 struct ring_buffer_event *event)
2496 {
2497 unsigned long addr = (unsigned long)event;
2498 unsigned long index;
2499
2500 index = rb_event_index(event);
2501 addr &= PAGE_MASK;
2502
2503 return cpu_buffer->commit_page->page == (void *)addr &&
2504 rb_commit_index(cpu_buffer) == index;
2505 }
2506
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org