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 CONFIG_LTTNG_CLOCK_PLUGIN_TEST=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:185:3: error: implicit declaration of function ‘read_barrier_depends’ [-Werror=implicit-function-declaration]
- 185 | read_barrier_depends(); /* load ltc before content */
- | ^~~~~~~~~~~~~~~~~~~~
- 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:598,
- 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:293:24: error: implicit declaration of function ‘get_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]
- 293 | mm_segment_t old_fs = get_fs();
- | ^~~~~~
- | sget_fc
- /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:293:24: error: invalid initializer
- /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:303:2: error: implicit declaration of function ‘set_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]
- 303 | set_fs(KERNEL_DS);
- | ^~~~~~
- | sget_fc
- /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:303:9: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
- 303 | set_fs(KERNEL_DS);
- | ^~~~~~~~~
- | KERNFS_NS
- /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:303: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:305:48: error: macro "access_ok" passed 3 arguments, but takes just 2
- 305 | 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 /home/emilio/old_lttng/lttng-modules/probes/../wrapper/vmalloc.h:30,
- from /home/emilio/old_lttng/lttng-modules/probes/../lttng-tracer.h:39,
- 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:305:16: error: ‘access_ok’ undeclared (first use in this function)
- 305 | 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:598,
- 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:363:24: error: invalid initializer
- 363 | mm_segment_t old_fs = get_fs();
- | ^~~~~~
- /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:373:9: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
- 373 | set_fs(KERNEL_DS);
- | ^~~~~~~~~
- | KERNFS_NS
- /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:375:48: error: macro "access_ok" passed 3 arguments, but takes just 2
- 375 | 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 /home/emilio/old_lttng/lttng-modules/probes/../wrapper/vmalloc.h:30,
- from /home/emilio/old_lttng/lttng-modules/probes/../lttng-tracer.h:39,
- 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:375:16: error: ‘access_ok’ undeclared (first use in this function)
- 375 | 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:598,
- 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:465:38: error: macro "access_ok" passed 3 arguments, but takes just 2
- 465 | 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 /home/emilio/old_lttng/lttng-modules/probes/../wrapper/vmalloc.h:30,
- from /home/emilio/old_lttng/lttng-modules/probes/../lttng-tracer.h:39,
- 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:598,
- from /home/emilio/old_lttng/lttng-modules/probes/lttng-probe-sched.c:41:
- /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:465:7: error: ‘access_ok’ undeclared (first use in this function)
- 465 | if (!access_ok(VERIFY_READ, src, len))
- | ^~~~~~~~~
- /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:467:11: error: incompatible types when assigning to type ‘mm_segment_t’ from type ‘int’
- 467 | old_fs = get_fs();
- | ^~~~~~
- /home/emilio/old_lttng/lttng-modules/probes/../lib/ringbuffer/backend.h:468:9: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
- 468 | set_fs(KERNEL_DS);
- | ^~~~~~~~~
- | KERNFS_NS
- 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