mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
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 <madhuparnabhowmik10@gmail.com> Signed-off-by: Jessica Yu <jeyu@kernel.org>
This commit is contained in:
parent
708e0ada19
commit
6080d608ee
@ -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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user