History

module.h: Annotate mod_kallsyms with __rcu

This patch fixes the following sparse errors: kernel/module.c:3623:9: error: incompatible types in comparison expression kernel/module.c:4060:41: error: incompatible types in comparison expression kernel/module.c:4203:28: error: incompatible types in comparison expression kernel/module.c:4225:41: error: incompatible types in comparison expression

Madhuparna Bhowmik committed 6 years ago

Commit 6080d601 parent 708e0ad1 file · +1 −1Browse files

Unified · Split

include/linux/module.h+1−1
@@ -429,7 +429,7 @@ struct module { · 428 unmodified lines
429 429
430#ifdef CONFIG_KALLSYMS430#ifdef CONFIG_KALLSYMS
431 /* Protected by RCU and/or module_mutex: use rcu_dereference() */431 /* Protected by RCU and/or module_mutex: use rcu_dereference() */
432 struct mod_kallsyms *kallsyms;432 struct mod_kallsyms __rcu *kallsyms;
433 struct mod_kallsyms core_kallsyms;433 struct mod_kallsyms core_kallsyms;
434 434
435 /* Section attributes */435 /* Section attributes */