aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/module.h
diff options
context:
space:
mode:
authorMadhuparna Bhowmik <madhuparnabhowmik10@gmail.com>2020-01-22 22:34:47 +0530
committerJessica Yu <jeyu@kernel.org>2020-01-23 18:19:48 +0100
commit6080d608eeff7cb5090a2ddbaf723bfb0ff133fc (patch)
treec39bc5ea2d8d3f1734fde0c259509c27a3205a70 /include/linux/module.h
parentmodule: avoid setting info->name early in case we can fall back to info->mod->name (diff)
downloadlinux-dev-6080d608eeff7cb5090a2ddbaf723bfb0ff133fc.tar.xz
linux-dev-6080d608eeff7cb5090a2ddbaf723bfb0ff133fc.zip
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>
Diffstat (limited to '')
-rw-r--r--include/linux/module.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/module.h b/include/linux/module.h
index bd165ba68617..dfdc8863e26a 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 */