mirror of
https://github.com/dynup/kpatch
synced 2025-02-17 02:06:53 +00:00
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:
parent
50476c94cc
commit
bd4fae25f9
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user