diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-02-26 14:59:47 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-02-26 14:59:47 -0800 |
| commit | 892ad979df25f63e33add2c4e42f10bc7ded6730 (patch) | |
| tree | 2812180ac45f23b4bb3a7b4a5806fbbf2fdce3f5 /include/linux/module.h | |
| parent | 724537c632f59bfb75429c1b176baaf5005bccbe (diff) | |
| parent | 2ad6657a787fe8caf39b6d050e0238650e2d81fe (diff) | |
Merge v6.18.14
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/module.h')
| -rw-r--r-- | include/linux/module.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index e135cc79acee..4decae2b1675 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -747,6 +747,15 @@ static inline void __module_get(struct module *module) __mod ? __mod->name : "kernel"; \ }) +static inline const unsigned char *module_buildid(struct module *mod) +{ +#ifdef CONFIG_STACKTRACE_BUILD_ID + return mod->build_id; +#else + return NULL; +#endif +} + /* Dereference module function descriptor */ void *dereference_module_function_descriptor(struct module *mod, void *ptr); |
