iommu/rockchip: add multi irq support
[firefly-linux-kernel-4.4.55.git] / include / linux / module.h
index 3a19c79918e02d37c3e77ed32a88eb9f36bb16c3..b229a9961d029facd4e72e156ac3383d21f94f24 100644 (file)
@@ -302,6 +302,12 @@ struct mod_tree_node {
        struct latch_tree_node node;
 };
 
+struct mod_kallsyms {
+       Elf_Sym *symtab;
+       unsigned int num_symtab;
+       char *strtab;
+};
+
 struct module {
        enum module_state state;
 
@@ -411,14 +417,9 @@ struct module {
 #endif
 
 #ifdef CONFIG_KALLSYMS
-       /*
-        * We keep the symbol and string tables for kallsyms.
-        * The core_* fields below are temporary, loader-only (they
-        * could really be discarded after module init).
-        */
-       Elf_Sym *symtab, *core_symtab;
-       unsigned int num_symtab, core_num_syms;
-       char *strtab, *core_strtab;
+       /* Protected by RCU and/or module_mutex: use rcu_dereference() */
+       struct mod_kallsyms *kallsyms;
+       struct mod_kallsyms core_kallsyms;
 
        /* Section attributes */
        struct module_sect_attrs *sect_attrs;