diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2022-07-19 19:53:00 +0300 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2022-07-27 15:18:00 +0300 |
commit | abe864b8e19adf33b48997de8bc1a8f095390ade (patch) | |
tree | 699bb0948240cf9c2d2dea912c8f8638064fb929 /scripts/mod/modpost.h | |
parent | 5764f6626f5f334b27e168a33735b3899d08bcd2 (diff) | |
download | linux-abe864b8e19adf33b48997de8bc1a8f095390ade.tar.xz |
modpost: use sym_get_data() to get module device_table data
Use sym_get_data() to replace the long code.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to 'scripts/mod/modpost.h')
-rw-r--r-- | scripts/mod/modpost.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/mod/modpost.h b/scripts/mod/modpost.h index 044bdfb894b7..4d8a1ae1d1e3 100644 --- a/scripts/mod/modpost.h +++ b/scripts/mod/modpost.h @@ -187,6 +187,7 @@ void get_src_version(const char *modname, char sum[], unsigned sumlen); /* from modpost.c */ char *read_text_file(const char *filename); char *get_line(char **stringp); +void *sym_get_data(const struct elf_info *info, const Elf_Sym *sym); enum loglevel { LOG_WARN, |