create-diff-object: Add const to unmodified rela_insn arguments

rela_insn() only retrieves information about an instruction and does not
modify sections or relocations.

Add const to make this explicit.

Signed-off-by: Julien Thierry <jthierry@redhat.com>
This commit is contained in:
Julien Thierry 2019-08-28 15:12:49 +01:00
parent 50476c94cc
commit bd4fae25f9

View File

@ -1240,7 +1240,8 @@ static void kpatch_compare_correlated_elements(struct kpatch_elf *kelf)
}
#ifdef __x86_64__
static void rela_insn(struct section *sec, struct rela *rela, struct insn *insn)
static void rela_insn(const struct section *sec, const struct rela *rela,
struct insn *insn)
{
unsigned long insn_addr, start, end, rela_addr;