[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20180811115853.jhjniiv6trj7l5si@mwanda>
Date: Sat, 11 Aug 2018 14:58:53 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: kbuild@...org, Or Gerlitz <ogerlitz@...lanox.com>
Cc: kbuild-all@...org, linux-kernel@...r.kernel.org,
Saeed Mahameed <saeedm@...lanox.com>
Subject: drivers/net/ethernet/mellanox/mlx5/core/en_tc.c:1981 same_hw_devs()
error: uninitialized symbol 'fsystem_guid'.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f313b43be461f157755a57c1156f86abe10588de
commit: 816f670623692b5da2787f278cbfdb331ed29b8a net/mlx5e: Properly check if hairpin is possible between two functions
New smatch warnings:
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c:1981 same_hw_devs() error: uninitialized symbol 'fsystem_guid'.
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c:1981 same_hw_devs() error: uninitialized symbol 'psystem_guid'.
Old smatch warnings:
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c:620 mlx5e_hairpin_flow_add() error: uninitialized symbol 'link_speed'.
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=816f670623692b5da2787f278cbfdb331ed29b8a
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout 816f670623692b5da2787f278cbfdb331ed29b8a
vim +/fsystem_guid +1981 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
bdd66ac0 Or Gerlitz 2017-06-11 1969
5c65c564 Or Gerlitz 2017-11-22 1970 static bool same_hw_devs(struct mlx5e_priv *priv, struct mlx5e_priv *peer_priv)
5c65c564 Or Gerlitz 2017-11-22 1971 {
5c65c564 Or Gerlitz 2017-11-22 1972 struct mlx5_core_dev *fmdev, *pmdev;
816f6706 Or Gerlitz 2018-08-08 1973 u64 fsystem_guid, psystem_guid;
5c65c564 Or Gerlitz 2017-11-22 1974
5c65c564 Or Gerlitz 2017-11-22 1975 fmdev = priv->mdev;
5c65c564 Or Gerlitz 2017-11-22 1976 pmdev = peer_priv->mdev;
5c65c564 Or Gerlitz 2017-11-22 1977
816f6706 Or Gerlitz 2018-08-08 1978 mlx5_query_nic_vport_system_image_guid(fmdev, &fsystem_guid);
816f6706 Or Gerlitz 2018-08-08 1979 mlx5_query_nic_vport_system_image_guid(pmdev, &psystem_guid);
5c65c564 Or Gerlitz 2017-11-22 1980
816f6706 Or Gerlitz 2018-08-08 @1981 return (fsystem_guid == psystem_guid);
5c65c564 Or Gerlitz 2017-11-22 1982 }
5c65c564 Or Gerlitz 2017-11-22 1983
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Powered by blists - more mailing lists