Skip to contentSkip to conversation

linux-next: build warning after merge of the mlx5-next tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Nov 5, 2019 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the mlx5-next tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

drivers/net/ethernet/mellanox/mlx5/core/eswitch.c: In function 'esw_vport_ingress_config':
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c:1356:2: warning: 'spec' may be used uninitialized in this function [-Wmaybe-uninitialized]

 1356 |  kvfree(spec);
      |  ^~~~~~~~~~~~

Introduced by commit

10652f39943e ("net/mlx5: Refactor ingress acl configuration")

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 5 lines · Stephen Rothwell

Hi all,

After merging the mlx5-next tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

Quoted 8 lines

drivers/net/ethernet/mellanox/mlx5/core/eswitch.c: In function 'esw_vport_ingress_config':
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c:1356:2: warning: 'spec' may be used uninitialized in this function [-Wmaybe-uninitialized]

 1356 |  kvfree(spec);
      |  ^~~~~~~~~~~~

Introduced by commit

10652f39943e ("net/mlx5: Refactor ingress acl configuration")

Thanks Stephen.

Quoted 4 lines

--
Cheers,
Stephen Rothwell