Re: [PATCH] rculist: Silence unused-value warning.

2020-07-19 Thread Paul E. McKenney
On Sun, Jul 19, 2020 at 10:53:05PM +0530, Suraj Upadhyay wrote: > On Sun 19 Jul, 2020, 21:37 Paul E. McKenney, wrote: > > > On Sun, Jul 19, 2020 at 04:20:37PM +0530, Suraj Upadhyay wrote: > > > The macro __list_check_srcu is used as a statement inside a for loop. > > > > > > __list_check_srcu bec

Re: [PATCH] rculist: Silence unused-value warning.

2020-07-19 Thread Paul E. McKenney
On Sun, Jul 19, 2020 at 04:20:37PM +0530, Suraj Upadhyay wrote: > The macro __list_check_srcu is used as a statement inside a for loop. > > __list_check_srcu becomes "true" when CONFIG_PROVE_RCU_LIST is not defined. > This results in compiler warning about an unused value ("true"). > > Silence th

[PATCH] rculist: Silence unused-value warning.

2020-07-19 Thread Suraj Upadhyay
The macro __list_check_srcu is used as a statement inside a for loop. __list_check_srcu becomes "true" when CONFIG_PROVE_RCU_LIST is not defined. This results in compiler warning about an unused value ("true"). Silence the compiler warning about the unused value "true" by replacing it with an emp