diff options
| author | 2022-05-12 01:45:04 +0900 | |
|---|---|---|
| committer | 2022-05-24 00:52:12 +0900 | |
| commit | 69c4cc99bbcbf3ef2e1901b569954e9226180840 (patch) | |
| tree | a01c7c41bb04f6c7ea0a775ced598dac866faf9d /scripts/Makefile.vmlinux | |
| parent | modpost: change the license of EXPORT_SYMBOL to bool type (diff) | |
| download | linux-dev-69c4cc99bbcbf3ef2e1901b569954e9226180840.tar.xz linux-dev-69c4cc99bbcbf3ef2e1901b569954e9226180840.zip | |
modpost: add sym_find_with_module() helper
find_symbol() returns the first symbol found in the hash table. This
table is global, so it may return a symbol from an unexpected module.
There is a case where we want to search for a symbol with a given name
in a specified module.
Add sym_find_with_module(), which receives the module pointer as the
second argument. It is equivalent to find_module() if NULL is passed
as the module pointer.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Tested-by: Sedat Dilek <sedat.dilek@gmail.com> # LLVM-14 (x86-64)
Diffstat (limited to 'scripts/Makefile.vmlinux')
0 files changed, 0 insertions, 0 deletions
