From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: Compiler warnings in kernel 4.14.51 Date: Mon, 2 Jul 2018 09:18:47 -0600 Message-ID: <2cdf9843-0014-dc89-bede-a4d38c9bf264@gmail.com> References: <20180701203507.GA15211@mStation.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: "David S. Miller" , Daniel Borkmann , Kirill Tkhai , Jakub Kicinski , Alexei Starovoitov , Rasmus Villemoes , John Fastabend , Jesper Dangaard Brouer To: Enrico Mioso , netdev@vger.kernel.org Return-path: Received: from mail-pf0-f194.google.com ([209.85.192.194]:39804 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752197AbeGBPSv (ORCPT ); Mon, 2 Jul 2018 11:18:51 -0400 Received: by mail-pf0-f194.google.com with SMTP id s21-v6so7665106pfm.6 for ; Mon, 02 Jul 2018 08:18:51 -0700 (PDT) In-Reply-To: <20180701203507.GA15211@mStation.localdomain> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: 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.