Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- make -C /lib/modules/5.10.12-1-default/build M=/home/emilio/old_lttng/lttng-modules CONFIG_LTTNG=m modules
- make[1]: Entering directory '/usr/src/linux-5.10.12-1-obj/x86_64/default'
- CC [M] /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.o
- In file included from /home/emilio/old_lttng/lttng-modules/probes/../lttng-tracer.h:37,
- from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:24:
- /home/emilio/old_lttng/lttng-modules/probes/../wrapper/trace-clock.h: In function ‘trace_clock_read64’:
- /home/emilio/old_lttng/lttng-modules/probes/../wrapper/trace-clock.h:195:34: error: implicit declaration of function ‘ACCESS_ONCE’ [-Werror=implicit-function-declaration]
- 195 | struct lttng_trace_clock *ltc = ACCESS_ONCE(lttng_trace_clock);
- | ^~~~~~~~~~~
- /home/emilio/old_lttng/lttng-modules/probes/../wrapper/trace-clock.h:195:34: warning: initialization of ‘struct lttng_trace_clock *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- /home/emilio/old_lttng/lttng-modules/probes/../wrapper/trace-clock.h:200:3: error: implicit declaration of function ‘read_barrier_depends’ [-Werror=implicit-function-declaration]
- 200 | read_barrier_depends(); /* load ltc before content */
- | ^~~~~~~~~~~~~~~~~~~~
- /home/emilio/old_lttng/lttng-modules/probes/../wrapper/trace-clock.h: In function ‘trace_clock_freq’:
- /home/emilio/old_lttng/lttng-modules/probes/../wrapper/trace-clock.h:207:34: warning: initialization of ‘struct lttng_trace_clock *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- 207 | struct lttng_trace_clock *ltc = ACCESS_ONCE(lttng_trace_clock);
- | ^~~~~~~~~~~
- /home/emilio/old_lttng/lttng-modules/probes/../wrapper/trace-clock.h: In function ‘trace_clock_uuid’:
- /home/emilio/old_lttng/lttng-modules/probes/../wrapper/trace-clock.h:219:34: warning: initialization of ‘struct lttng_trace_clock *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- 219 | struct lttng_trace_clock *ltc = ACCESS_ONCE(lttng_trace_clock);
- | ^~~~~~~~~~~
- /home/emilio/old_lttng/lttng-modules/probes/../wrapper/trace-clock.h: In function ‘trace_clock_name’:
- /home/emilio/old_lttng/lttng-modules/probes/../wrapper/trace-clock.h:232:34: warning: initialization of ‘struct lttng_trace_clock *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- 232 | struct lttng_trace_clock *ltc = ACCESS_ONCE(lttng_trace_clock);
- | ^~~~~~~~~~~
- /home/emilio/old_lttng/lttng-modules/probes/../wrapper/trace-clock.h: In function ‘trace_clock_description’:
- /home/emilio/old_lttng/lttng-modules/probes/../wrapper/trace-clock.h:244:34: warning: initialization of ‘struct lttng_trace_clock *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- 244 | struct lttng_trace_clock *ltc = ACCESS_ONCE(lttng_trace_clock);
- | ^~~~~~~~~~~
- In file included from /home/emilio/old_lttng/lttng-modules/probes/../wrapper/ringbuffer/backend_internal.h:2,
- from /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:40,
- from /home/emilio/old_lttng/lttng-modules/probes/../wrapper/ringbuffer/backend.h:1,
- from /home/emilio/old_lttng/lttng-modules/probes/../probes/lttng-tracepoint-event-impl.h:33,
- from /home/emilio/old_lttng/lttng-modules/probes/../probes/define_trace.h:100,
- from /home/emilio/old_lttng/lttng-modules/probes/../instrumentation/events/lttng-module/sched.h:566,
- from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:41:
- /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend_internal.h: In function ‘subbuffer_id_set_noref_offset’:
- /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend_internal.h:174:20: error: lvalue required as left operand of assignment
- 174 | ACCESS_ONCE(*id) = tmp;
- | ^
- In file included from /home/emilio/old_lttng/lttng-modules/probes/../wrapper/ringbuffer/backend.h:1,
- from /home/emilio/old_lttng/lttng-modules/probes/../probes/lttng-tracepoint-event-impl.h:33,
- from /home/emilio/old_lttng/lttng-modules/probes/../probes/define_trace.h:100,
- from /home/emilio/old_lttng/lttng-modules/probes/../instrumentation/events/lttng-module/sched.h:566,
- from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:41:
- /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h: In function ‘lib_ring_buffer_copy_from_user_inatomic’:
- /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:312:24: error: implicit declaration of function ‘get_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]
- 312 | mm_segment_t old_fs = get_fs();
- | ^~~~~~
- | sget_fc
- /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:312:24: error: invalid initializer
- /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:327:2: error: implicit declaration of function ‘set_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]
- 327 | set_fs(KERNEL_DS);
- | ^~~~~~
- | sget_fc
- /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:327:9: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
- 327 | set_fs(KERNEL_DS);
- | ^~~~~~~~~
- | KERNFS_NS
- /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:327:9: note: each undeclared identifier is reported only once for each function it appears in
- /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:329:48: error: macro "access_ok" passed 3 arguments, but takes just 2
- 329 | if (unlikely(!access_ok(VERIFY_READ, src, len)))
- | ^
- In file included from /usr/src/linux-5.10.12-1/include/linux/uaccess.h:11,
- from /usr/src/linux-5.10.12-1/arch/x86/include/asm/fpu/xstate.h:5,
- from /usr/src/linux-5.10.12-1/arch/x86/include/asm/pgtable.h:26,
- from /usr/src/linux-5.10.12-1/include/linux/pgtable.h:6,
- from /usr/src/linux-5.10.12-1/include/linux/mm.h:33,
- from /usr/src/linux-5.10.12-1/include/linux/kallsyms.h:12,
- from /usr/src/linux-5.10.12-1/include/linux/ftrace.h:11,
- from /usr/src/linux-5.10.12-1/include/linux/kprobes.h:29,
- from /home/emilio/old_lttng/lttng-modules/probes/../lttng-events.h:28,
- from /home/emilio/old_lttng/lttng-modules/probes/../lttng-tracer.h:40,
- from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:24:
- /usr/src/linux-5.10.12-1/arch/x86/include/asm/uaccess.h:69: note: macro "access_ok" defined here
- 69 | #define access_ok(addr, size) \
- |
- In file included from /usr/src/linux-5.10.12-1/include/linux/export.h:43,
- from /usr/src/linux-5.10.12-1/include/linux/linkage.h:7,
- from /usr/src/linux-5.10.12-1/include/linux/kernel.h:8,
- from /usr/src/linux-5.10.12-1/include/linux/list.h:9,
- from /usr/src/linux-5.10.12-1/include/linux/module.h:12,
- from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:23:
- /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:329:16: error: ‘access_ok’ undeclared (first use in this function)
- 329 | if (unlikely(!access_ok(VERIFY_READ, src, len)))
- | ^~~~~~~~~
- /usr/src/linux-5.10.12-1/include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’
- 78 | # define unlikely(x) __builtin_expect(!!(x), 0)
- | ^
- In file included from /home/emilio/old_lttng/lttng-modules/probes/../wrapper/ringbuffer/backend.h:1,
- from /home/emilio/old_lttng/lttng-modules/probes/../probes/lttng-tracepoint-event-impl.h:33,
- from /home/emilio/old_lttng/lttng-modules/probes/../probes/define_trace.h:100,
- from /home/emilio/old_lttng/lttng-modules/probes/../instrumentation/events/lttng-module/sched.h:566,
- from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:41:
- /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h: In function ‘lib_ring_buffer_strcpy_from_user_inatomic’:
- /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:388:24: error: invalid initializer
- 388 | mm_segment_t old_fs = get_fs();
- | ^~~~~~
- /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:403:9: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
- 403 | set_fs(KERNEL_DS);
- | ^~~~~~~~~
- | KERNFS_NS
- /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:405:48: error: macro "access_ok" passed 3 arguments, but takes just 2
- 405 | if (unlikely(!access_ok(VERIFY_READ, src, len)))
- | ^
- In file included from /usr/src/linux-5.10.12-1/include/linux/uaccess.h:11,
- from /usr/src/linux-5.10.12-1/arch/x86/include/asm/fpu/xstate.h:5,
- from /usr/src/linux-5.10.12-1/arch/x86/include/asm/pgtable.h:26,
- from /usr/src/linux-5.10.12-1/include/linux/pgtable.h:6,
- from /usr/src/linux-5.10.12-1/include/linux/mm.h:33,
- from /usr/src/linux-5.10.12-1/include/linux/kallsyms.h:12,
- from /usr/src/linux-5.10.12-1/include/linux/ftrace.h:11,
- from /usr/src/linux-5.10.12-1/include/linux/kprobes.h:29,
- from /home/emilio/old_lttng/lttng-modules/probes/../lttng-events.h:28,
- from /home/emilio/old_lttng/lttng-modules/probes/../lttng-tracer.h:40,
- from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:24:
- /usr/src/linux-5.10.12-1/arch/x86/include/asm/uaccess.h:69: note: macro "access_ok" defined here
- 69 | #define access_ok(addr, size) \
- |
- In file included from /usr/src/linux-5.10.12-1/include/linux/export.h:43,
- from /usr/src/linux-5.10.12-1/include/linux/linkage.h:7,
- from /usr/src/linux-5.10.12-1/include/linux/kernel.h:8,
- from /usr/src/linux-5.10.12-1/include/linux/list.h:9,
- from /usr/src/linux-5.10.12-1/include/linux/module.h:12,
- from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:23:
- /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:405:16: error: ‘access_ok’ undeclared (first use in this function)
- 405 | if (unlikely(!access_ok(VERIFY_READ, src, len)))
- | ^~~~~~~~~
- /usr/src/linux-5.10.12-1/include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’
- 78 | # define unlikely(x) __builtin_expect(!!(x), 0)
- | ^
- In file included from /home/emilio/old_lttng/lttng-modules/probes/../wrapper/ringbuffer/backend.h:1,
- from /home/emilio/old_lttng/lttng-modules/probes/../probes/lttng-tracepoint-event-impl.h:33,
- from /home/emilio/old_lttng/lttng-modules/probes/../probes/define_trace.h:100,
- from /home/emilio/old_lttng/lttng-modules/probes/../instrumentation/events/lttng-module/sched.h:566,
- from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:41:
- /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h: In function ‘lib_ring_buffer_copy_from_user_check_nofault’:
- /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:495:38: error: macro "access_ok" passed 3 arguments, but takes just 2
- 495 | if (!access_ok(VERIFY_READ, src, len))
- | ^
- In file included from /usr/src/linux-5.10.12-1/include/linux/uaccess.h:11,
- from /usr/src/linux-5.10.12-1/arch/x86/include/asm/fpu/xstate.h:5,
- from /usr/src/linux-5.10.12-1/arch/x86/include/asm/pgtable.h:26,
- from /usr/src/linux-5.10.12-1/include/linux/pgtable.h:6,
- from /usr/src/linux-5.10.12-1/include/linux/mm.h:33,
- from /usr/src/linux-5.10.12-1/include/linux/kallsyms.h:12,
- from /usr/src/linux-5.10.12-1/include/linux/ftrace.h:11,
- from /usr/src/linux-5.10.12-1/include/linux/kprobes.h:29,
- from /home/emilio/old_lttng/lttng-modules/probes/../lttng-events.h:28,
- from /home/emilio/old_lttng/lttng-modules/probes/../lttng-tracer.h:40,
- from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:24:
- /usr/src/linux-5.10.12-1/arch/x86/include/asm/uaccess.h:69: note: macro "access_ok" defined here
- 69 | #define access_ok(addr, size) \
- |
- In file included from /home/emilio/old_lttng/lttng-modules/probes/../wrapper/ringbuffer/backend.h:1,
- from /home/emilio/old_lttng/lttng-modules/probes/../probes/lttng-tracepoint-event-impl.h:33,
- from /home/emilio/old_lttng/lttng-modules/probes/../probes/define_trace.h:100,
- from /home/emilio/old_lttng/lttng-modules/probes/../instrumentation/events/lttng-module/sched.h:566,
- from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:41:
- /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:495:7: error: ‘access_ok’ undeclared (first use in this function)
- 495 | if (!access_ok(VERIFY_READ, src, len))
- | ^~~~~~~~~
- /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:497:11: error: incompatible types when assigning to type ‘mm_segment_t’ from type ‘int’
- 497 | old_fs = get_fs();
- | ^~~~~~
- /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:498:9: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
- 498 | set_fs(KERNEL_DS);
- | ^~~~~~~~~
- | KERNFS_NS
- In file included from /home/emilio/old_lttng/lttng-modules/probes/../probes/define_trace.h:100,
- from /home/emilio/old_lttng/lttng-modules/probes/../instrumentation/events/lttng-module/sched.h:566,
- from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:41:
- /home/emilio/old_lttng/lttng-modules/probes/../instrumentation/events/lttng-module/sched.h: At top level:
- /home/emilio/old_lttng/lttng-modules/probes/../probes/lttng-tracepoint-event-impl.h:142:6: error: conflicting types for ‘trace_sched_pi_setprio’
- 142 | void trace_##_name(_proto);
- | ^~~~~~
- /home/emilio/old_lttng/lttng-modules/probes/../probes/lttng-tracepoint-event-impl.h:54:2: note: in expansion of macro ‘LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP’
- 54 | LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(map, name, map, PARAMS(proto), PARAMS(args))
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- /home/emilio/old_lttng/lttng-modules/probes/../probes/lttng-tracepoint-event-impl.h:96:2: note: in expansion of macro ‘LTTNG_TRACEPOINT_EVENT_MAP’
- 96 | LTTNG_TRACEPOINT_EVENT_MAP(name, name, \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~
- /home/emilio/old_lttng/lttng-modules/probes/../instrumentation/events/lttng-module/sched.h:548:1: note: in expansion of macro ‘LTTNG_TRACEPOINT_EVENT’
- 548 | LTTNG_TRACEPOINT_EVENT(sched_pi_setprio,
- | ^~~~~~~~~~~~~~~~~~~~~~
- In file included from /usr/src/linux-5.10.12-1/include/trace/events/sched.h:9,
- from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:30:
- /usr/src/linux-5.10.12-1/include/linux/tracepoint.h:238:21: note: previous definition of ‘trace_sched_pi_setprio’ was here
- 238 | static inline void trace_##name(proto) \
- | ^~~~~~
- /usr/src/linux-5.10.12-1/include/linux/tracepoint.h:411:2: note: in expansion of macro ‘__DECLARE_TRACE’
- 411 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
- | ^~~~~~~~~~~~~~~
- /usr/src/linux-5.10.12-1/include/linux/tracepoint.h:547:2: note: in expansion of macro ‘DECLARE_TRACE’
- 547 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
- | ^~~~~~~~~~~~~
- /usr/src/linux-5.10.12-1/include/trace/events/sched.h:443:1: note: in expansion of macro ‘TRACE_EVENT’
- 443 | TRACE_EVENT(sched_pi_setprio,
- | ^~~~~~~~~~~
- cc1: some warnings being treated as errors
- make[4]: *** [/usr/src/linux-5.10.12-1/scripts/Makefile.build:280: /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.o] Error 1
- make[3]: *** [/usr/src/linux-5.10.12-1/scripts/Makefile.build:497: /home/emilio/old_lttng/lttng-modules/probes] Error 2
- make[2]: *** [/usr/src/linux-5.10.12-1/Makefile:1819: /home/emilio/old_lttng/lttng-modules] Error 2
- make[1]: *** [../../../linux-5.10.12-1/Makefile:185: __sub-make] Error 2
- make[1]: Leaving directory '/usr/src/linux-5.10.12-1-obj/x86_64/default'
- make: *** [Makefile:111: modules] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement