diff options
| author | Masahiro Yamada <[email protected]> | 2019-11-23 16:04:35 +0000 |
|---|---|---|
| committer | Masahiro Yamada <[email protected]> | 2019-11-25 12:03:33 +0000 |
| commit | 29e55ad3d5f50eca6f8762749da85d6fa1250061 (patch) | |
| tree | 87bea5c6a8ef1c9a652a51dcf3a05086e59af031 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | |
| parent | scripts/kallsyms: remove unneeded length check for prefix matching (diff) | |
| download | kernel-29e55ad3d5f50eca6f8762749da85d6fa1250061.tar.gz kernel-29e55ad3d5f50eca6f8762749da85d6fa1250061.zip | |
scripts/kallsyms: add sym_name() to mitigate cast ugliness
sym_entry::sym is (unsigned char *) instead of (char *) because
kallsyms exploits the MSB for compression, and the characters are
used as the index of token_profit array.
However, it requires casting (unsigned char *) to (char *) in some
places since standard library functions such as strcmp(), strlen()
expect (char *).
Introduce a new helper, sym_name(), which advances the given pointer
by 1 and casts it to (char *).
Signed-off-by: Masahiro Yamada <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions
