Re: [PATCH 03/28] [v2] infiniband: shut up a maybe-uninitialized warning

2016-10-18 Thread Haggai Eran
On 10/18/2016 1:18 PM, Arnd Bergmann wrote: > 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

Re: [PATCH 03/28] [v2] infiniband: shut up a maybe-uninitialized warning

2016-10-18 Thread Haggai Eran
On 10/18/2016 1:18 PM, Arnd Bergmann wrote: > 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

Re: [PATCH 03/28] [v2] infiniband: shut up a maybe-uninitialized warning

2016-10-18 Thread Arnd Bergmann
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, > >

Re: [PATCH 03/28] [v2] infiniband: shut up a maybe-uninitialized warning

2016-10-18 Thread Arnd Bergmann
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, > >

Re: [PATCH 03/28] [v2] infiniband: shut up a maybe-uninitialized warning

2016-10-18 Thread Haggai Eran
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

Re: [PATCH 03/28] [v2] infiniband: shut up a maybe-uninitialized warning

2016-10-18 Thread Haggai Eran
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

[PATCH 03/28] [v2] infiniband: shut up a maybe-uninitialized warning

2016-10-17 Thread Arnd Bergmann
Some configurations produce this harmless warning when built with gcc -Wmaybe-uninitialized: infiniband/core/cma.c: In function 'cma_get_net_dev': infiniband/core/cma.c:1242:12: warning: 'src_addr_storage.sin_addr.s_addr' may be used uninitialized in this function [-Wmaybe-uninitialized] I

[PATCH 03/28] [v2] infiniband: shut up a maybe-uninitialized warning

2016-10-17 Thread Arnd Bergmann
Some configurations produce this harmless warning when built with gcc -Wmaybe-uninitialized: infiniband/core/cma.c: In function 'cma_get_net_dev': infiniband/core/cma.c:1242:12: warning: 'src_addr_storage.sin_addr.s_addr' may be used uninitialized in this function [-Wmaybe-uninitialized] I