diff options
author | Pranith Kumar <bobby.prani@gmail.com> | 2014-12-30 00:46:21 -0500 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2015-01-07 16:08:41 +0000 |
commit | 990428b8ead311c68a850ead7ec8557a10b8893a (patch) | |
tree | 2fd85a1f85fbd73ef453b8c9e0d143911ccfa569 | |
parent | a3a8784454692dd72e5d5d34dcdab17b4420e74c (diff) | |
download | op-kernel-dev-990428b8ead311c68a850ead7ec8557a10b8893a.zip op-kernel-dev-990428b8ead311c68a850ead7ec8557a10b8893a.tar.gz |
assoc_array: Include rcupdate.h for call_rcu() definition
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>
-rw-r--r-- | lib/assoc_array.c | 1 |
1 files changed, 1 insertions, 0 deletions
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> |