Re: [PATCH 1/2] net/mlx5e: shut up maybe-uninitialized warning

2016-10-02 Thread David Miller
From: Arnd Bergmann Date: Fri, 30 Sep 2016 18:17:09 +0200 > Build-testing this driver with -Wmaybe-uninitialized gives a new > false-positive > warning that I can't really explain: > > drivers/net/ethernet/mellanox/mlx5/core/en_tc.c: In function > 'mlx5e_configure_flower': > drivers/net/ethern

Re: [PATCH 1/2] net/mlx5e: shut up maybe-uninitialized warning

2016-10-01 Thread Or Gerlitz
On Fri, Sep 30, 2016 at 7:17 PM, Arnd Bergmann wrote: > Build-testing this driver with -Wmaybe-uninitialized gives a new > false-positive > warning that I can't really explain: > > drivers/net/ethernet/mellanox/mlx5/core/en_tc.c: In function > 'mlx5e_configure_flower': > drivers/net/ethernet/mel

[PATCH 1/2] net/mlx5e: shut up maybe-uninitialized warning

2016-09-30 Thread Arnd Bergmann
Build-testing this driver with -Wmaybe-uninitialized gives a new false-positive warning that I can't really explain: drivers/net/ethernet/mellanox/mlx5/core/en_tc.c: In function 'mlx5e_configure_flower': drivers/net/ethernet/mellanox/mlx5/core/en_tc.c:509:3: error: 'old_attr' may be used uniniti