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
Unified · Split
| @@ -429,7 +429,7 @@ struct module { · 428 unmodified lines | |||
| 429 | 429 | ||
| 430 | #ifdef CONFIG_KALLSYMS | 430 | #ifdef CONFIG_KALLSYMS |
| 431 | /* Protected by RCU and/or module_mutex: use rcu_dereference() */ | 431 | /* Protected by RCU and/or module_mutex: use rcu_dereference() */ |
| 432 | struct mod_kallsyms *kallsyms; | 432 | struct mod_kallsyms __rcu *kallsyms; |
| 433 | struct mod_kallsyms core_kallsyms; | 433 | struct mod_kallsyms core_kallsyms; |
| 434 | 434 | ||
| 435 | /* Section attributes */ | 435 | /* Section attributes */ |