Skip to contentSkip to conversation

compiling kernel after xenomai-patch ends in error

Xenomai Huub Van Niekerk 3 participants 6 messages Mar 4, 2014

lore
Share & tools
lore
#0 lore raw

Hi,

I just patched vanilla kernel 3.10.18 with ipipe-core-3.10.18-arm-1 and get these errors:

kernel/ipipe/core.c: In function ‘ipipe_probe_kernel_read’:
kernel/ipipe/core.c:1742:2: error: implicit declaration of function ‘get_fs’ [-Werror=implicit-function-declaration] kernel/ipipe/core.c:1744:2: error: implicit declaration of function ‘set_fs’ [-Werror=implicit-function-declaration] kernel/ipipe/core.c:1744:9: error: ‘KERNEL_DS’ undeclared (first use in this function) kernel/ipipe/core.c:1744:9: note: each undeclared identifier is reported only once for each function it appears in kernel/ipipe/core.c:1747:2: error: implicit declaration of function ‘__copy_from_user_inatomic’ [-Werror=implicit-function-declaration] kernel/ipipe/core.c: In function ‘ipipe_probe_kernel_write’:
kernel/ipipe/core.c:1761:9: error: ‘KERNEL_DS’ undeclared (first use in this function) kernel/ipipe/core.c:1764:2: error: implicit declaration of function ‘__copy_to_user_inatomic’ [-Werror=implicit-function-declaration]

With previous kernel 3.2 I got warning and errors before saving the kernel, now I didn't. Looking on the net for these errors, I find some postings, but none related to ipipe. Any ideas?

Thanks.

#1 lore raw

had the same issue before. The solution is to disable remote kernel debugging (kernel hacking menu)

Quoted 32 lines · Huub Van Niekerk

Hi,

I just patched vanilla kernel 3.10.18 with ipipe-core-3.10.18-arm-1 and get these errors:

kernel/ipipe/core.c: In function 'ipipe_probe_kernel_read':
kernel/ipipe/core.c:1742:2: error: implicit declaration of function 'get_fs' [-Werror=implicit-function-declaration] kernel/ipipe/core.c:1744:2: error: implicit declaration of function 'set_fs' [-Werror=implicit-function-declaration] kernel/ipipe/core.c:1744:9: error: 'KERNEL_DS' undeclared (first use in this function)
kernel/ipipe/core.c:1744:9: note: each undeclared identifier is reported only once for each function it appears in kernel/ipipe/core.c:1747:2: error: implicit declaration of function '__copy_from_user_inatomic' [-Werror=implicit-function-declaration] kernel/ipipe/core.c: In function 'ipipe_probe_kernel_write':
kernel/ipipe/core.c:1761:9: error: 'KERNEL_DS' undeclared (first use in this function)
kernel/ipipe/core.c:1764:2: error: implicit declaration of function '__copy_to_user_inatomic' [-Werror=implicit-function-declaration]

With previous kernel 3.2 I got warning and errors before saving the kernel, now I didn't. Looking on the net for these errors, I find some postings, but none related to ipipe. Any ideas?

Thanks.
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

#2 lore raw
Quoted 6 lines · Gregory Dymarek

had the same issue before. The solution is to disable remote kernel debugging (kernel hacking menu)

You mean disabling Low-level kernel debugging uart ?

Quoted 26 lines · Huub Van Niekerk

Hi,

I just patched vanilla kernel 3.10.18 with ipipe-core-3.10.18-arm-1 and get these errors:

kernel/ipipe/core.c: In function 'ipipe_probe_kernel_read':
kernel/ipipe/core.c:1742:2: error: implicit declaration of function 'get_fs' [-Werror=implicit-function-declaration] kernel/ipipe/core.c:1744:2: error: implicit declaration of function 'set_fs' [-Werror=implicit-function-declaration] kernel/ipipe/core.c:1744:9: error: 'KERNEL_DS' undeclared (first use in this function)
kernel/ipipe/core.c:1744:9: note: each undeclared identifier is reported only once for each function it appears in kernel/ipipe/core.c:1747:2: error: implicit declaration of function '__copy_from_user_inatomic' [-Werror=implicit-function-declaration] kernel/ipipe/core.c: In function 'ipipe_probe_kernel_write':
kernel/ipipe/core.c:1761:9: error: 'KERNEL_DS' undeclared (first use in this function)
kernel/ipipe/core.c:1764:2: error: implicit declaration of function '__copy_to_user_inatomic' [-Werror=implicit-function-declaration]

With previous kernel 3.2 I got warning and errors before saving the kernel, now I didn't. Looking on the net for these errors, I find some postings, but none related to ipipe. Any ideas?

Quoted 6 lines

Thanks.
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

#3 lore raw
Quoted 6 lines · Huub Van Niekerk
Quoted 4 lines · Gregory Dymarek

had the same issue before. The solution is to disable remote kernel debugging (kernel hacking menu)

You mean disabling Low-level kernel debugging uart ?

Tried and this brings no solution to me.

Quoted 26 lines · Huub Van Niekerk

Hi,

I just patched vanilla kernel 3.10.18 with ipipe-core-3.10.18-arm-1 and get these errors:

kernel/ipipe/core.c: In function 'ipipe_probe_kernel_read':
kernel/ipipe/core.c:1742:2: error: implicit declaration of function 'get_fs' [-Werror=implicit-function-declaration] kernel/ipipe/core.c:1744:2: error: implicit declaration of function 'set_fs' [-Werror=implicit-function-declaration] kernel/ipipe/core.c:1744:9: error: 'KERNEL_DS' undeclared (first use in this function)
kernel/ipipe/core.c:1744:9: note: each undeclared identifier is reported only once for each function it appears in kernel/ipipe/core.c:1747:2: error: implicit declaration of function '__copy_from_user_inatomic' [-Werror=implicit-function-declaration] kernel/ipipe/core.c: In function 'ipipe_probe_kernel_write':
kernel/ipipe/core.c:1761:9: error: 'KERNEL_DS' undeclared (first use in this function)
kernel/ipipe/core.c:1764:2: error: implicit declaration of function '__copy_to_user_inatomic' [-Werror=implicit-function-declaration]

With previous kernel 3.2 I got warning and errors before saving the kernel, now I didn't. Looking on the net for these errors, I find some postings, but none related to ipipe. Any ideas?

Quoted 7 lines

Thanks.
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

#4 lore raw
In reply to Huub Van Niekerk
Quoted 9 lines · Huub Van Niekerk
Quoted 6 lines · Gregory Dymarek

had the same issue before. The solution is to disable remote kernel debugging (kernel hacking menu)

You mean disabling Low-level kernel debugging uart ?

Disabling CONFIG_KGDB would do. Or adding the following bits:

kernel/ipipe/core.c +1 -0
index 7cc2adf..31818db 100644
@@ -28,6 +28,7 @@
 #include <linux/bitops.h>
 #include <linux/tick.h>
 #include <linux/interrupt.h>
+#include <linux/uaccess.h>
 #ifdef CONFIG_PROC_FS
 #include <linux/proc_fs.h>
 #include <linux/seq_file.h>
Quoted 44 lines · Huub Van Niekerk
Quoted 27 lines

Hi,

I just patched vanilla kernel 3.10.18 with ipipe-core-3.10.18-arm-1 and get these errors:

kernel/ipipe/core.c: In function 'ipipe_probe_kernel_read':
kernel/ipipe/core.c:1742:2: error: implicit declaration of function 'get_fs' [-Werror=implicit-function-declaration] kernel/ipipe/core.c:1744:2: error: implicit declaration of function 'set_fs' [-Werror=implicit-function-declaration] kernel/ipipe/core.c:1744:9: error: 'KERNEL_DS' undeclared (first use in this function)
kernel/ipipe/core.c:1744:9: note: each undeclared identifier is reported only once for each function it appears in kernel/ipipe/core.c:1747:2: error: implicit declaration of function '__copy_from_user_inatomic' [-Werror=implicit-function-declaration] kernel/ipipe/core.c: In function 'ipipe_probe_kernel_write':
kernel/ipipe/core.c:1761:9: error: 'KERNEL_DS' undeclared (first use in this function)
kernel/ipipe/core.c:1764:2: error: implicit declaration of function '__copy_to_user_inatomic' [-Werror=implicit-function-declaration]

With previous kernel 3.2 I got warning and errors before saving the kernel, now I didn't. Looking on the net for these errors, I find some postings, but none related to ipipe. Any ideas?

Quoted 6 lines

Thanks.
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

Signature · 1 line
Philippe.
#5 lore raw
In reply to Huub Van Niekerk

It is CONFIG_KGDB option.

Quoted 52 lines · Huub Van Niekerk
Quoted 2 lines

On Tuesday, March 4, 2014 2:09 PM, Gregory Dymarek <[email protected]>

Quoted 2 lines · wrote:

had the same issue before. The solution is to disable remote kernel debugging (kernel hacking menu)

You mean disabling Low-level kernel debugging uart ?

Quoted 26 lines · Huub Van Niekerk

Hi,

I just patched vanilla kernel 3.10.18 with ipipe-core-3.10.18-arm-1 and get these errors:

kernel/ipipe/core.c: In function 'ipipe_probe_kernel_read':
kernel/ipipe/core.c:1742:2: error: implicit declaration of function 'get_fs' [-Werror=implicit-function-declaration] kernel/ipipe/core.c:1744:2: error: implicit declaration of function 'set_fs' [-Werror=implicit-function-declaration] kernel/ipipe/core.c:1744:9: error: 'KERNEL_DS' undeclared (first use in this function)
kernel/ipipe/core.c:1744:9: note: each undeclared identifier is reported only once for each function it appears in kernel/ipipe/core.c:1747:2: error: implicit declaration of function '__copy_from_user_inatomic' [-Werror=implicit-function-declaration] kernel/ipipe/core.c: In function 'ipipe_probe_kernel_write':
kernel/ipipe/core.c:1761:9: error: 'KERNEL_DS' undeclared (first use in this function)
kernel/ipipe/core.c:1764:2: error: implicit declaration of function '__copy_to_user_inatomic' [-Werror=implicit-function-declaration]

With previous kernel 3.2 I got warning and errors before saving the kernel, now I didn't. Looking on the net for these errors, I find some postings, but none related to ipipe. Any ideas?

Quoted 7 lines

Thanks.

_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai