Compiler warnings in kernel 4.14.51
Subsystems (2)
Hello!
While compiling kernel 4.14.51 I got the following warnings:
CC net/core/dev.onet/core/dev.c: In function 'validate_xmit_skb_list':net/core/dev.c:3121:15: warning: 'tail' may be used uninitialized in this function [-Wmaybe-uninitialized]
...
CC net/ipv4/fib_trie.onet/ipv4/fib_trie.c: In function 'fib_trie_unmerge':net/ipv4/fib_trie.c:1749:8: warning: 'local_tp' may be used uninitialized in this function [-Wmaybe-uninitialized]
The kernel has been compiled for the MIPS architecture, little-endian 32-bit.
My /prov/version file content is:
Linux version 4.14.51 (mrkiko@mStation) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7360-e15565a01c)) #0 Fri Jun 29 05:54:17 2018
thank you very much to all of you for your great work.
Enrico
Quoted 8 lines · Enrico Mioso
Hello!
While compiling kernel 4.14.51 I got the following warnings:
CCnet/core/dev.onet/core/dev.c: In function 'validate_xmit_skb_list':net/core/dev.c:3121:15: warning: 'tail' may be used uninitialized in this function [-Wmaybe-uninitialized]
...
Quoted 5 lines
CC
net/ipv4/fib_trie.onet/ipv4/fib_trie.c: In function 'fib_trie_unmerge':net/ipv4/fib_trie.c:1749:8: warning: 'local_tp' may be used uninitialized in this function [-Wmaybe-uninitialized]The kernel has been compiled for the MIPS architecture, little-endian 32-bit.
Not seen with x86-64, Debian stretch. In both cases the compiler should be able to see they are set before use.