Skip to content

Commit 6080d60

Browse files
Madhuparna BhowmikJessica Yu
authored andcommitted
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 <[email protected]> Signed-off-by: Jessica Yu <[email protected]>
1 parent 708e0ad commit 6080d60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/module.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ struct module {
429429

430430
#ifdef CONFIG_KALLSYMS
431431
/* Protected by RCU and/or module_mutex: use rcu_dereference() */
432-
struct mod_kallsyms *kallsyms;
432+
struct mod_kallsyms __rcu *kallsyms;
433433
struct mod_kallsyms core_kallsyms;
434434

435435
/* Section attributes */

0 commit comments

Comments
 (0)