diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2023-10-08 02:04:48 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2023-10-18 17:16:09 +0900 |
commit | 77f9f57164561d0acbb9d6b2ca78280925f52aaa (patch) | |
tree | 4e2ac05604f71ab9365a5b62ef2b56e6cde53288 /net/can/isotp.c | |
parent | 29ae5c02ed743c62e3c0619013b2bcd280bc562d (diff) |
modpost: factor out the common boilerplate of section_rel(a)
The first few lines of section_rel() and section_rela() are the same.
They both retrieve the index of the section to which the relocaton
applies, and skip known-good sections. This common code should be moved
to check_sec_ref().
Avoid ugly casts when computing 'start' and 'stop', and also make the
Elf_Rel and Elf_Rela pointers const.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to 'net/can/isotp.c')
0 files changed, 0 insertions, 0 deletions