Commit 990428b8ead311c68a850ead7ec8557a10b8893a

Authored by Pranith Kumar
Committed by David Howells
1 parent a3a8784454

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>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

... ... @@ -11,6 +11,7 @@
11 11 * 2 of the Licence, or (at your option) any later version.
12 12 */
13 13 //#define DEBUG
  14 +#include <linux/rcupdate.h>
14 15 #include <linux/slab.h>
15 16 #include <linux/err.h>
16 17 #include <linux/assoc_array_priv.h>