Bug #1148
closedcompilation of lttng-test.c fails without header added for ARM on kernel 2.6.37
0%
Description
To get the my kernel to compile with LTTng support for ARM using kernel 2.6.37 I had to add a header line to LTTng-test.c
#include <wrapper/tracepoint.h>
//This include had to be added for compilation to succeed
#include <linux/uaccess.h>
#include <wrapper/kstrtox.h>
the error looks like this:
linux/lttng/tests/probes/lttng-test.c:32:
linux/lttng/tests/../wrapper/kstrtox.h: In function 'lttng_kstrtouint_from_user':
linux/lttng/tests/../wrapper/kstrtox.h:39: error: implicit declaration of function 'copy_from_user'
In file included from linux/include/linux/uaccess.h:5,
from linux/lttng/tests/../probes/lttng-tracepoint-event-impl.h:22,
from linux/lttng/tests/../probes/define_trace.h:100,
from linux/lttng/tests/../instrumentation/events/lttng-module/lttng-test.h:54,
from linux/lttng/tests/probes/lttng-test.c:40:
linux/arch/arm/include/asm/uaccess.h: At top level:
linux/arch/arm/include/asm/uaccess.h:404: error: conflicting types for 'copy_from_user'
linux/lttng/tests/../wrapper/kstrtox.h:39: error: previous implicit declaration of 'copy_from_user' was