Commit 6080d608 authored by Madhuparna Bhowmik's avatar Madhuparna Bhowmik Committed by Jessica Yu

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
Signed-off-by: default avatarMadhuparna Bhowmik <madhuparnabhowmik10@gmail.com>
Signed-off-by: default avatarJessica Yu <jeyu@kernel.org>
parent 708e0ada
...@@ -429,7 +429,7 @@ struct module { ...@@ -429,7 +429,7 @@ struct module {
#ifdef CONFIG_KALLSYMS #ifdef CONFIG_KALLSYMS
/* Protected by RCU and/or module_mutex: use rcu_dereference() */ /* Protected by RCU and/or module_mutex: use rcu_dereference() */
struct mod_kallsyms *kallsyms; struct mod_kallsyms __rcu *kallsyms;
struct mod_kallsyms core_kallsyms; struct mod_kallsyms core_kallsyms;
/* Section attributes */ /* Section attributes */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment