public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] assoc_array: Include rcupdate.h for call_rcu() definition
@ 2014-12-30  5:46 Pranith Kumar
  2014-12-30  5:46 ` [PATCH v2] srcu: Isolate srcu sections using CONFIG_SRCU Pranith Kumar
  2015-01-05 16:01 ` [PATCH] assoc_array: Include rcupdate.h for call_rcu() definition David Howells
  0 siblings, 2 replies; 9+ messages in thread
From: Pranith Kumar @ 2014-12-30  5:46 UTC (permalink / raw)
  To: David Howells, James Morris, Andreea-Cristina Bernat,
	Stephen Hemminger, Don Zickus, open list

Include rcupdate.h header to provide call_rcu() definition. This was implicitly
being provided by slab.h file which include srcu.h somewhere in its include
hierarchy which in-turn included rcupdate.h. 

Lately, tinification effort added support to remove srcu entirely because of
which we are encountering build errors like

lib/assoc_array.c: In function 'assoc_array_apply_edit':
lib/assoc_array.c:1426:2: error: implicit declaration of function 'call_rcu' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors

Fix these by including rcupdate.h explicitly.

Signed-off-by: Pranith Kumar <bobby.prani@gmail.com>
Reported-by: Scott Wood <scottwood@freescale.com>
---
 lib/assoc_array.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/assoc_array.c b/lib/assoc_array.c
index 2404d03..03dd576 100644
--- a/lib/assoc_array.c
+++ b/lib/assoc_array.c
@@ -11,6 +11,7 @@
  * 2 of the Licence, or (at your option) any later version.
  */
 //#define DEBUG
+#include <linux/rcupdate.h>
 #include <linux/slab.h>
 #include <linux/err.h>
 #include <linux/assoc_array_priv.h>
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-01-05 16:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-30  5:46 [PATCH] assoc_array: Include rcupdate.h for call_rcu() definition Pranith Kumar
2014-12-30  5:46 ` [PATCH v2] srcu: Isolate srcu sections using CONFIG_SRCU Pranith Kumar
2014-12-30 18:50   ` Peter Zijlstra
2014-12-30 18:54     ` Pranith Kumar
2014-12-30 19:07       ` Peter Zijlstra
2014-12-31 13:19         ` Paul E. McKenney
2015-01-04  9:35       ` Michael Ellerman
2015-01-04 16:14         ` Paul E. McKenney
2015-01-05 16:01 ` [PATCH] assoc_array: Include rcupdate.h for call_rcu() definition David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox