mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
module: Move kmemleak support to a separate file
No functional change. This patch migrates kmemleak code out of core module code into kernel/module/debug_kmemleak.c Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Aaron Tomlin <atomlin@redhat.com> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
This commit is contained in:
committed by
Luis Chamberlain
parent
0c1e42805c
commit
473c84d185
@@ -167,3 +167,10 @@ static inline int module_sig_check(struct load_info *info, int flags)
|
||||
return 0;
|
||||
}
|
||||
#endif /* !CONFIG_MODULE_SIG */
|
||||
|
||||
#ifdef CONFIG_DEBUG_KMEMLEAK
|
||||
void kmemleak_load_module(const struct module *mod, const struct load_info *info);
|
||||
#else /* !CONFIG_DEBUG_KMEMLEAK */
|
||||
static inline void kmemleak_load_module(const struct module *mod,
|
||||
const struct load_info *info) { }
|
||||
#endif /* CONFIG_DEBUG_KMEMLEAK */
|
||||
|
Reference in New Issue
Block a user