tree:
git://git.infradead.org/users/hch/misc.git swiotlb-fix
head: b312f891c5bef58d2d3b287fd3ac90abe1588192
commit: 4a32ebd5ef3f301848088178b7452a4ec9c9ccea [9/10] wip
config: ia64-randconfig-r011-20210510 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
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
git remote add hch-misc
git://git.infradead.org/users/hch/misc.git
git fetch --no-tags hch-misc swiotlb-fix
git checkout 4a32ebd5ef3f301848088178b7452a4ec9c9ccea
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from arch/ia64/include/asm/pgtable.h:154,
from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dma-mapping.h:10,
from include/linux/dma-direct.h:9,
from kernel/dma/swiotlb.c:24:
arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
arch/ia64/include/asm/mmu_context.h:127:41: warning: variable 'old_rr4' set but
not used [-Wunused-but-set-variable]
127 | unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
| ^~~~~~~
In file included from include/trace/events/swiotlb.h:8,
from include/trace/define_trace.h:95,
from include/trace/events/swiotlb.h:49,
from kernel/dma/swiotlb.c:51:
include/linux/tracepoint.h: At top level:
> include/linux/tracepoint.h:575: error: unterminated argument list
invoking macro "TRACE_EVENT"
575 | #endif /* ifdef TRACE_EVENT (see
note above) */
|
In file included from include/trace/events/swiotlb.h:49,
from include/trace/define_trace.h:95,
from include/trace/events/swiotlb.h:49,
from kernel/dma/swiotlb.c:51:
> include/trace/define_trace.h:135: error: unterminated argument
list invoking macro "TRACE_EVENT"
135 | #endif /* CREATE_TRACE_POINTS
*/
|
In file included from kernel/dma/swiotlb.c:51:
> include/trace/events/swiotlb.h:10:1: error: unknown type name
'TRACE_EVENT'
10 | TRACE_EVENT(swiotlb_bounced,
| ^~~~~~~~~~~
In file included from include/trace/define_trace.h:95,
from include/trace/events/swiotlb.h:49,
from kernel/dma/swiotlb.c:51:
> include/trace/events/swiotlb.h:10:12: error: expected ';'
before 'bool'
10 | TRACE_EVENT(swiotlb_bounced,
| ^
| ;
> kernel/dma/swiotlb.c:64:6: error: conflicting types for
'swiotlb_force'
64 | bool swiotlb_force;
| ^~~~~~~~~~~~~
In file included from include/linux/dma-direct.h:13,
from kernel/dma/swiotlb.c:24:
include/linux/swiotlb.h:63:27: note: previous declaration of 'swiotlb_force'
was here
63 | extern enum swiotlb_force swiotlb_force;
| ^~~~~~~~~~~~~
kernel/dma/swiotlb.c: In function 'swiotlb_map':
> kernel/dma/swiotlb.c:630:2: error: implicit declaration of
function 'trace_swiotlb_bounced'; did you mean 'swiotlb_bounce'?
[-Werror=implicit-function-declaration]
630 | trace_swiotlb_bounced(dev,
phys_to_dma(dev, paddr), size,
| ^~~~~~~~~~~~~~~~~~~~~
| swiotlb_bounce
cc1: some warnings being treated as errors
vim +/TRACE_EVENT +575 include/linux/tracepoint.h
d5b5f391d434c5 Peter Zijlstra 2013-11-14 559
163363455b42a1 Yafang Shao 2019-03-26 560 #define DECLARE_EVENT_NOP(name, proto,
args) \
163363455b42a1 Yafang Shao 2019-03-26 561 static inline void
trace_##name(proto) \
163363455b42a1 Yafang Shao 2019-03-26 562 { } \
163363455b42a1 Yafang Shao 2019-03-26 563 static inline bool
trace_##name##_enabled(void) \
163363455b42a1 Yafang Shao 2019-03-26 564 { \
163363455b42a1 Yafang Shao 2019-03-26 565 return false; \
163363455b42a1 Yafang Shao 2019-03-26 566 }
163363455b42a1 Yafang Shao 2019-03-26 567
163363455b42a1 Yafang Shao 2019-03-26 568 #define TRACE_EVENT_NOP(name, proto, args,
struct, assign, print) \
163363455b42a1 Yafang Shao 2019-03-26 569 DECLARE_EVENT_NOP(name, PARAMS(proto),
PARAMS(args))
163363455b42a1 Yafang Shao 2019-03-26 570
163363455b42a1 Yafang Shao 2019-03-26 571 #define DECLARE_EVENT_CLASS_NOP(name,
proto, args, tstruct, assign, print)
163363455b42a1 Yafang Shao 2019-03-26 572 #define DEFINE_EVENT_NOP(template, name,
proto, args) \
163363455b42a1 Yafang Shao 2019-03-26 573 DECLARE_EVENT_NOP(name, PARAMS(proto),
PARAMS(args))
163363455b42a1 Yafang Shao 2019-03-26 574
7cb2e3ee2aeec5 Steven Rostedt 2009-08-26 @575 #endif /* ifdef TRACE_EVENT (see note
above) */
:::::: The code at line 575 was first introduced by commit
:::::: 7cb2e3ee2aeec5b83ecadba929a2dc575dd4008f tracing: add comments to explain
TRACE_EVENT out of protection
:::::: TO: Steven Rostedt <srostedt(a)redhat.com>
:::::: CC: Steven Rostedt <rostedt(a)goodmis.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org