[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJ3xEMgsXpVeL56WqimCiiZVaAA4=NJc4nCaoiewdhvQcFi6SQ@mail.gmail.com>
Date: Sun, 5 Feb 2017 12:42:19 +0200
From: Or Gerlitz <gerlitz.or@...il.com>
To: Arnd Bergmann <arnd@...db.de>
Cc: Saeed Mahameed <saeedm@...lanox.com>,
"David S. Miller" <davem@...emloft.net>,
Or Gerlitz <ogerlitz@...lanox.com>,
Linux Kernel <linux-kernel@...r.kernel.org>,
Linux Netdev List <netdev@...r.kernel.org>
Subject: Re: [PATCH] [net-next] net/mlx5e: fix another maybe-uninitialized false-positive
On Fri, Feb 3, 2017 at 6:37 PM, Arnd Bergmann <arnd@...db.de> wrote:
> In commit abeffce ("net/mlx5e: Fix a -Wmaybe-uninitialized warning"), I fixed a
> gcc warning for the ipv4 offload handling. Now we get the same warning for the
> added ipv6 support:
>
> drivers/net/ethernet/mellanox/mlx5/core/en_tc.c:815:40: warning: 'out_dev' may be used uninitialized in this function [-Wmaybe-uninitialized]
>
> We can apply the same workaround here as well.
>
> Fixes: ce99f6b97fcd ("net/mlx5e: Support SRIOV TC encapsulation offloads for IPv6 tunnels")
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
frustrating... I don't see the warning with gcc 5.3.1 [1], but still,
the patch is OKay
Acked-by: Or Gerlitz <ogerlitz@...lanox.com>
[1] I used #make KCFLAGS='-Wmaybe-uninitialized'
M=drivers/net/ethernet/mellanox/mlx5/core -j something
Powered by blists - more mailing lists