From: Pranith Kumar Date: Tue, 30 Dec 2014 05:46:21 +0000 (-0500) Subject: assoc_array: Include rcupdate.h for call_rcu() definition X-Git-Tag: v3.19-rc4~23^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=990428b8ead311c68a850ead7ec8557a10b8893a;p=platform%2Fkernel%2Flinux-exynos.git 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 Reported-by: Scott Wood --- diff --git a/lib/assoc_array.c b/lib/assoc_array.c index 2404d03e251a..03dd576e6773 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 #include #include #include