Re: [RESEND PATCH 2/3] net: hns: avoid gcc-7.0.1 warning for uninitialized data

2017-03-25 Thread David Miller
From: Arnd Bergmann Date: Fri, 24 Mar 2017 23:02:50 +0100 > hns_dsaf_set_mac_key() calls dsaf_set_field() on an uninitialized field, > which will then change only a few of its bits, causing a warning with > the latest gcc: > > hisilicon/hns/hns_dsaf_main.c: In function 'hns_dsaf_set_mac_uc_entry

[RESEND PATCH 2/3] net: hns: avoid gcc-7.0.1 warning for uninitialized data

2017-03-24 Thread Arnd Bergmann
hns_dsaf_set_mac_key() calls dsaf_set_field() on an uninitialized field, which will then change only a few of its bits, causing a warning with the latest gcc: hisilicon/hns/hns_dsaf_main.c: In function 'hns_dsaf_set_mac_uc_entry': hisilicon/hns/hns_dsaf_reg.h:1046:12: error: 'mac_key.low.bits.port