Re: [kernel-locking] question about structure field initialization

2017-05-16 Thread Gustavo A. R. Silva
Hi Chris, Quoting Chris Wilson : On Thu, May 11, 2017 at 03:00:02PM -0500, Gustavo A. R. Silva wrote: Hello everybody, While looking into Coverity ID 1402035 I ran into the following piece of code at kernel/locking/test-ww_mutex.c:197: 197static int test_abba(bool

Re: [kernel-locking] question about structure field initialization

2017-05-16 Thread Gustavo A. R. Silva
Hi Chris, Quoting Chris Wilson : On Thu, May 11, 2017 at 03:00:02PM -0500, Gustavo A. R. Silva wrote: Hello everybody, While looking into Coverity ID 1402035 I ran into the following piece of code at kernel/locking/test-ww_mutex.c:197: 197static int test_abba(bool resolve) 198{ 199

Re: [kernel-locking] question about structure field initialization

2017-05-12 Thread Chris Wilson
On Thu, May 11, 2017 at 03:00:02PM -0500, Gustavo A. R. Silva wrote: > > Hello everybody, > > While looking into Coverity ID 1402035 I ran into the following > piece of code at kernel/locking/test-ww_mutex.c:197: > > 197static int test_abba(bool resolve) > 198{ > 199struct test_abba

Re: [kernel-locking] question about structure field initialization

2017-05-12 Thread Chris Wilson
On Thu, May 11, 2017 at 03:00:02PM -0500, Gustavo A. R. Silva wrote: > > Hello everybody, > > While looking into Coverity ID 1402035 I ran into the following > piece of code at kernel/locking/test-ww_mutex.c:197: > > 197static int test_abba(bool resolve) > 198{ > 199struct test_abba

[kernel-locking] question about structure field initialization

2017-05-11 Thread Gustavo A. R. Silva
Hello everybody, While looking into Coverity ID 1402035 I ran into the following piece of code at kernel/locking/test-ww_mutex.c:197: 197static int test_abba(bool resolve) 198{ 199struct test_abba abba; 200struct ww_acquire_ctx ctx; 201int err, ret; 202 203

[kernel-locking] question about structure field initialization

2017-05-11 Thread Gustavo A. R. Silva
Hello everybody, While looking into Coverity ID 1402035 I ran into the following piece of code at kernel/locking/test-ww_mutex.c:197: 197static int test_abba(bool resolve) 198{ 199struct test_abba abba; 200struct ww_acquire_ctx ctx; 201int err, ret; 202 203