projects/linux·commit 6080d608

module.h: Annotate mod_kallsyms with __rcu

6080d608 · Madhuparna Bhowmik <[email protected]> · 2020-01-22 22:34:47 +05:30

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]>
Commit
6080d608eeff7cb5090a2ddbaf723bfb0ff133fc
Parents
708e0ada

Changes

1 files changed · +1 −1

FileStatusAddDelContent
include/linux/module.hmodified+1−1View file

include/linux/module.h

View file
diff --git a/include/linux/module.h b/include/linux/module.h
index bd165ba..dfdc886 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 */