From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH 03/28] [v2] infiniband: shut up a maybe-uninitialized warning Date: Tue, 18 Oct 2016 12:18:55 +0200 Message-ID: <9469876.gij7f9Mh1b@wuerfel> References: <20161017220342.1627073-1-arnd@arndb.de> <20161017220557.1688282-3-arnd@arndb.de> <33302790-0a4c-e2b3-868d-3e7dadbd3c07@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: In-Reply-To: <33302790-0a4c-e2b3-868d-3e7dadbd3c07-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Haggai Eran Cc: Doug Ledford , Linus Torvalds , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Sean Hefty , Hal Rosenstock , Matan Barak , Leon Romanovsky , Sagi Grimberg , Bart Van Assche , Alex Vesker , Guy Shapiro , linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-rdma@vger.kernel.org On Tuesday, October 18, 2016 9:47:31 AM CEST Haggai Eran wrote: > On 10/18/2016 1:05 AM, Arnd Bergmann wrote: > > @@ -1309,7 +1311,7 @@ static bool validate_net_dev(struct net_device *net_dev, > > static struct net_device *cma_get_net_dev(struct ib_cm_event *ib_event, > > const struct cma_req_info *req) > > { > > - struct sockaddr_storage listen_addr_storage, src_addr_storage; > > + struct sockaddr_storage listen_addr_storage = {}, src_addr_storage = {}; > > Doesn't this still translate to an extra initialization that Doug was > worried about? Thanks for spotting this. I must have screwed up while rebasing the patch at some point, this one change should not be there, the other changes by themselves sufficiently address the warning. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html