summaryrefslogtreecommitdiffstats
path: root/lib/Makefile
diff options
context:
space:
mode:
authorMatthew Wilcox <mawilcox@microsoft.com>2017-02-13 16:03:55 -0500
committerMatthew Wilcox <mawilcox@microsoft.com>2017-02-13 21:44:10 -0500
commit7e73eb0b2df5e8d7bd00a3c5980ab86619699963 (patch)
tree1e99281360d8f07189e71f4032ddddb52f2c8fb6 /lib/Makefile
parentd7b627277b57370223d682cede979a279284b12a (diff)
downloadlinux-7e73eb0b2df5e8d7bd00a3c5980ab86619699963.tar.gz
linux-7e73eb0b2df5e8d7bd00a3c5980ab86619699963.tar.bz2
linux-7e73eb0b2df5e8d7bd00a3c5980ab86619699963.zip
idr: Add missing __rcu annotations
Where we use the radix tree iteration macros, we need to annotate 'slot' with __rcu. Make sure we don't forget any new places in the future with the same CFLAGS check used for radix-tree.c. Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Diffstat (limited to 'lib/Makefile')
-rw-r--r--lib/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 2fc096985b21..43a80ec3bd10 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -25,6 +25,7 @@ lib-y := ctype.o string.o vsprintf.o cmdline.o \
earlycpio.o seq_buf.o nmi_backtrace.o nodemask.o win_minmax.o
CFLAGS_radix-tree.o += -DCONFIG_SPARSE_RCU_POINTER
+CFLAGS_idr.o += -DCONFIG_SPARSE_RCU_POINTER
lib-$(CONFIG_MMU) += ioremap.o
lib-$(CONFIG_SMP) += cpumask.o