From: Madhuparna Bhowmik Date: Wed, 22 Jan 2020 17:04:47 +0000 (+0530) Subject: module.h: Annotate mod_kallsyms with __rcu X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6080d608eeff7cb5090a2ddbaf723bfb0ff133fc;p=linux.git 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: Madhuparna Bhowmik Signed-off-by: Jessica Yu --- diff --git a/include/linux/module.h b/include/linux/module.h index bd165ba686175..dfdc8863e26aa 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -429,7 +429,7 @@ struct module { #ifdef CONFIG_KALLSYMS /* Protected by RCU and/or module_mutex: use rcu_dereference() */ - struct mod_kallsyms *kallsyms; + struct mod_kallsyms __rcu *kallsyms; struct mod_kallsyms core_kallsyms; /* Section attributes */