Re: [PATCH v2] cnic: Replace rcu_dereference() with rcu_access_pointer()

2014-08-22 Thread David Miller
From: Andreea-Cristina Bernat Date: Sun, 17 Aug 2014 13:12:09 +0300 > The "rcu_dereference()" calls are used directly in conditions. > Since their return values are never dereferenced it is recommended to use > "rcu_access_pointer()" instead of "rcu_dereference()". > Therefore, this patch makes

Re: [PATCH v2] cnic: Replace rcu_dereference() with rcu_access_pointer()

2014-08-22 Thread David Miller
From: Andreea-Cristina Bernat bernat@gmail.com Date: Sun, 17 Aug 2014 13:12:09 +0300 The rcu_dereference() calls are used directly in conditions. Since their return values are never dereferenced it is recommended to use rcu_access_pointer() instead of rcu_dereference(). Therefore, this

Re: [PATCH v2] cnic: Replace rcu_dereference() with rcu_access_pointer()

2014-08-18 Thread Michael Chan
On Sun, 2014-08-17 at 13:12 +0300, Andreea-Cristina Bernat wrote: > The "rcu_dereference()" calls are used directly in conditions. > Since their return values are never dereferenced it is recommended to use > "rcu_access_pointer()" instead of "rcu_dereference()". > Therefore, this patch makes the

Re: [PATCH v2] cnic: Replace rcu_dereference() with rcu_access_pointer()

2014-08-18 Thread Michael Chan
On Sun, 2014-08-17 at 13:12 +0300, Andreea-Cristina Bernat wrote: The rcu_dereference() calls are used directly in conditions. Since their return values are never dereferenced it is recommended to use rcu_access_pointer() instead of rcu_dereference(). Therefore, this patch makes the

[PATCH v2] cnic: Replace rcu_dereference() with rcu_access_pointer()

2014-08-17 Thread Andreea-Cristina Bernat
The "rcu_dereference()" calls are used directly in conditions. Since their return values are never dereferenced it is recommended to use "rcu_access_pointer()" instead of "rcu_dereference()". Therefore, this patch makes the replacements. The following Coccinelle semantic patch was used: @@ @@ (

[PATCH v2] cnic: Replace rcu_dereference() with rcu_access_pointer()

2014-08-17 Thread Andreea-Cristina Bernat
The rcu_dereference() calls are used directly in conditions. Since their return values are never dereferenced it is recommended to use rcu_access_pointer() instead of rcu_dereference(). Therefore, this patch makes the replacements. The following Coccinelle semantic patch was used: @@ @@ ( if(