summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-03-25 01:02:49 +0300
committerDavid S. Miller <davem@davemloft.net>2017-03-26 06:05:32 +0300
commita17f1861b5ea4327f9f35e9edb3c5fadceaa7c64 (patch)
tree875732971919799dfc0abd3f8b122826a49078c2 /tools/perf/scripts/python/call-graph-from-postgresql.py
parentb1977682a3858b5584ffea7cfb7bd863f68db18d (diff)
downloadlinux-a17f1861b5ea4327f9f35e9edb3c5fadceaa7c64.tar.xz
net: hns: fix uninitialized data use
When dev_dbg() is enabled, we print uninitialized data, as gcc-7.0.1 now points out: ethernet/hisilicon/hns/hns_dsaf_main.c: In function 'hns_dsaf_set_promisc_tcam': ethernet/hisilicon/hns/hns_dsaf_main.c:2947:75: error: 'tbl_tcam_data.low.val' may be used uninitialized in this function [-Werror=maybe-uninitialized] ethernet/hisilicon/hns/hns_dsaf_main.c:2947:75: error: 'tbl_tcam_data.high.val' may be used uninitialized in this function [-Werror=maybe-uninitialized] We also pass the data into hns_dsaf_tcam_mc_cfg(), which might later use it (not sure about that), so it seems safer to just always initialize the tbl_tcam_data structure. Fixes: 1f5fa2dd1cfa ("net: hns: fix for promisc mode in HNS driver") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions