From da956650e40529254e6c09c93dc16b58f7707188 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 2 Jun 2021 13:53:28 +1000 Subject: [PATCH] module-add-printk-formats-to-add-module-build-id-to-stacktraces-fix fix build with CONFIG_MODULES=n, tweak code layout Cc: Stephen Boyd Signed-off-by: Andrew Morton Signed-off-by: Stephen Rothwell --- include/linux/module.h | 1 + kernel/module.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/linux/module.h b/include/linux/module.h index 29d81547837d..8a298d820dbc 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -746,6 +746,7 @@ static inline const char *module_address_lookup(unsigned long addr, unsigned long *symbolsize, unsigned long *offset, char **modname, + const unsigned char **modbuildid, char *namebuf) { return NULL; diff --git a/kernel/module.c b/kernel/module.c index 7f73b3152943..e9bca1624362 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -4271,7 +4271,8 @@ void * __weak dereference_module_function_descriptor(struct module *mod, const char *module_address_lookup(unsigned long addr, unsigned long *size, unsigned long *offset, - char **modname, const unsigned char **modbuildid, + char **modname, + const unsigned char **modbuildid, char *namebuf) { const char *ret = NULL; -- 2.50.1