diff options
| author | Jiri Kosina <jkosina@suse.cz> | 2020-10-15 20:37:01 +0200 | 
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.cz> | 2020-10-15 20:37:01 +0200 | 
| commit | 62b31a045757eac81fed94b19df47418a0818528 (patch) | |
| tree | 285fda56df8304dff6ba929bad65ddfb4e4fd726 /include/linux/module.h | |
| parent | cc51d171776f3a6acb6828bad0b780a4cacf5423 (diff) | |
| parent | c27e08820bc6cb7d483a8d87589bdbbbf10f2306 (diff) | |
Merge branch 'for-5.10/core' into for-linus
- nonblocking read semantics fix for hid-debug
Diffstat (limited to 'include/linux/module.h')
| -rw-r--r-- | include/linux/module.h | 26 | 
1 files changed, 3 insertions, 23 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index 2e6670860d27..e30ed5fa33a7 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -389,6 +389,7 @@ struct module {  	unsigned int num_gpl_syms;  	const struct kernel_symbol *gpl_syms;  	const s32 *gpl_crcs; +	bool using_gplonly_symbols;  #ifdef CONFIG_UNUSED_SYMBOLS  	/* unused exported symbols. */ @@ -582,34 +583,14 @@ struct module *find_module(const char *name);  struct symsearch {  	const struct kernel_symbol *start, *stop;  	const s32 *crcs; -	enum { +	enum mod_license {  		NOT_GPL_ONLY,  		GPL_ONLY,  		WILL_BE_GPL_ONLY, -	} licence; +	} license;  	bool unused;  }; -/* - * Search for an exported symbol by name. - * - * Must be called with module_mutex held or preemption disabled. - */ -const struct kernel_symbol *find_symbol(const char *name, -					struct module **owner, -					const s32 **crc, -					bool gplok, -					bool warn); - -/* - * Walk the exported symbol table - * - * Must be called with module_mutex held or preemption disabled. - */ -bool each_symbol_section(bool (*fn)(const struct symsearch *arr, -				    struct module *owner, -				    void *data), void *data); -  /* Returns 0 and fills in value, defined and namebuf, or -ERANGE if     symnum out of range. */  int module_get_kallsym(unsigned int symnum, unsigned long *value, char *type, @@ -657,7 +638,6 @@ static inline void __module_get(struct module *module)  #define symbol_put_addr(p) do { } while (0)  #endif /* CONFIG_MODULE_UNLOAD */ -int ref_module(struct module *a, struct module *b);  /* This is a #define so the string doesn't get put in every .o file */  #define module_name(mod)			\  | 
