CC net/netfilter/xt_qtaguid.o CC net/netfilter/xt_quota.o CC net/netfilter/xt_quota2.o CC net/netfilter/xt_socket.o In file included from include/linux/kernel.h:23:0, from include/linux/cache.h:4, from include/linux/time.h:7, from include/linux/stat.h:60, from include/linux/module.h:10, from net/netfilter/xt_socket.c:13: net/netfilter/xt_socket.c: In function 'xt_socket_get4_sk': include/linux/dynamic_debug.h:75:21: warning: 'protocol' may be used uninitialized in this function [-Wmaybe-uninitialized] error, forbidden warning: dynamic_debug.h:75 make: *** [net/netfilter/xt_socket.o] Error 1 make: *** [net/netfilter] Error 2 make: *** [net] Error 2 srsdani@ubuntu:~/kernel$
I'm using ndk gcc 4.8. This error is present also on gcc 4.7. The only way to get rid of this error is to use toolchain 4.6. I need to compile it using a newer toolchain, that's why I request your help.