All of lore.kernel.org
 help / color / mirror / Atom feed
* Compiler warnings in kernel 4.14.51
@ 2018-07-01 20:35 Enrico Mioso
  2018-07-02 15:18 ` David Ahern
  0 siblings, 1 reply; 2+ messages in thread
From: Enrico Mioso @ 2018-07-01 20:35 UTC (permalink / raw)
  To: netdev
  Cc: David S. Miller, Daniel Borkmann, Kirill Tkhai, Jakub Kicinski,
	Alexei Starovoitov, Rasmus Villemoes, John Fastabend,
	Jesper Dangaard Brouer, David Ahern

Hello!

While compiling kernel 4.14.51 I got the following warnings:
CC      net/core/dev.o
net/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.o
net/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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Compiler warnings in kernel 4.14.51
  2018-07-01 20:35 Compiler warnings in kernel 4.14.51 Enrico Mioso
@ 2018-07-02 15:18 ` David Ahern
  0 siblings, 0 replies; 2+ messages in thread
From: David Ahern @ 2018-07-02 15:18 UTC (permalink / raw)
  To: Enrico Mioso, netdev
  Cc: David S. Miller, Daniel Borkmann, Kirill Tkhai, Jakub Kicinski,
	Alexei Starovoitov, Rasmus Villemoes, John Fastabend,
	Jesper Dangaard Brouer

On 7/1/18 2:35 PM, Enrico Mioso wrote:
> Hello!
> 
> While compiling kernel 4.14.51 I got the following warnings:
> CC      net/core/dev.o
> net/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.o
> net/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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-07-02 15:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-01 20:35 Compiler warnings in kernel 4.14.51 Enrico Mioso
2018-07-02 15:18 ` David Ahern

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.