linux-next: build warning after merge of the mlx5-next tree
Hi all,
After merging the mlx5-next tree, today's linux-next build (x86_64 allmodconfig) produced this warning:
In file included from include/linux/printk.h:331,
from include/linux/kernel.h:15,
from drivers/net/ethernet/mellanox/mlx5/core/mr.c:33:drivers/net/ethernet/mellanox/mlx5/core/mr.c: In function 'mlx5_core_create_mkey':include/linux/dynamic_debug.h:157:25: warning: 'key' may be used uninitialized in this function [-Wmaybe-uninitialized]
157 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~
drivers/net/ethernet/mellanox/mlx5/core/mr.c:47:5: note: 'key' was declared here
47 | u8 key;
| ^~~Probably introduced by commit
fc6a9f86f08a ("{IB,net}/mlx5: Assign mkey variant in mlx5_ib only")
Signature · 2 lines
Cheers, Stephen Rothwell
Hi all,
Quoted 17 lines · On Mon, 16 Mar 2020 10:39:13 +1100 Stephen Rothwell <[email protected]>…
Hi all,
After merging the mlx5-next tree, today's linux-next build (
x86_64allmodconfig) produced this warning:In file included from
include/linux/printk.h:331,
frominclude/linux/kernel.h:15,
fromdrivers/net/ethernet/mellanox/mlx5/core/mr.c:33:drivers/net/ethernet/mellanox/mlx5/core/mr.c: In function 'mlx5_core_create_mkey':include/linux/dynamic_debug.h:157:25: warning: 'key' may be used uninitialized in this function [-Wmaybe-uninitialized]157 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \ | ^~~~~~~~~~~~~~~~~ drivers/net/ethernet/mellanox/mlx5/core/mr.c:47:5: note: 'key' was declared here 47 | u8 key; | ^~~
Quoted 3 lines
Probably introduced by commit
fc6a9f86f08a("{IB,net}/mlx5: Assign mkey variant inmlx5_ibonly")
This warning now appears in the rdma tree.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 24 lines · Stephen Rothwell
Hi all,
Quoted 20 lines · On Mon, 16 Mar 2020 10:39:13 +1100 Stephen Rothwell < [email protected]>…
Hi all,
After merging the mlx5-next tree, today's linux-next build (
x86_64allmodconfig) produced this warning:In file included from
include/linux/printk.h:331,
frominclude/linux/kernel.h:15,
fromdrivers/net/ethernet/mellanox/mlx5/core/mr.c:33:drivers/net/ethernet/mellanox/mlx5/core/mr.c: In function 'mlx5_core_create_mkey':include/linux/dynamic_debug.h:157:25: warning: 'key' may be used uninitialized in this function [-Wmaybe-uninitialized]157 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \ | ^~~~~~~~~~~~~~~~~ drivers/net/ethernet/mellanox/mlx5/core/mr.c:47:5: note: 'key' was declared here 47 | u8 key; | ^~~
Quoted 7 lines
Quoted 4 lines
Probably introduced by commit
fc6a9f86f08a("{IB,net}/mlx5: Assign mkey variant inmlx5_ib
only")This warning now appears in the rdma tree.
thanks Stephen,
actuall a fix patch was merged yesterday into mlx5-next [1]
and should already be in linux-next build, and will soon land in rdma tree.
Thanks,
Saeed.