modpost: pass r_type to addend_*_rel()
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 23 Jul 2023 10:04:44 +0000 (19:04 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 31 Jul 2023 14:42:14 +0000 (23:42 +0900)
commit71d965cf3577d68788a3d3ef044eb8e6d85013fa
tree689b333f13ca0ead4c3844a99995ab2320f72e1c
parenta68914a53476d4fa0808219c6323eddca50e0e26
modpost: pass r_type to addend_*_rel()

All of addend_*_rel() need the Elf_Rela pointer just for calculating
ELF_R_TYPE(r->r_info).

You can do it on the caller to de-duplicate the code.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/mod/modpost.c