rcu: avoid build error for third-party modules
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 24 Oct 2011 11:32:57 +0000 (17:02 +0530)
committerVaibhav Hiremath <hvaibhav@ti.com>
Mon, 23 Jan 2012 19:14:34 +0000 (00:44 +0530)
commit982449e14d2e4721127dd05afb43d7217a1b362f
tree58a132e786b44f460fd7bfb3aa4a53101e1ac536
parent5569bdb34f3e8920ec119f55d8f13e7b80bb3b86
rcu: avoid build error for third-party modules

The initial definition of __kfree_rcu() checked a static inline function
argument to see if it was a compile-time constant.  Apparently not all
compilers are willing to put up with this at all optimization levels.
Add a nasty comment and remove the warning, relying on the fact that
__kfree_rcu() is called only from kfree_rcu(), which always passes in
a compile-time constant.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
include/linux/rcupdate.h