Commit eb7fe02a authored by Gaetan Perrot's avatar Gaetan Perrot Committed by Daniel DeGrasse
Browse files

arch: arm: core: elf: mark unused function argument



Use ARG_UNUSED() to mark unused function argument.

Signed-off-by: default avatarGaetan Perrot <gaetan.perrot@spacecubics.com>
parent a4fc6723
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -104,6 +104,8 @@ static inline int prel31_decode(elf_word reloc_type, uint32_t loc,
{
	int ret;

	ARG_UNUSED(reloc_type);

	*offset = sign_extend(*(int32_t *)loc, SHIFT_PREL31_SIGN);
	*offset += sym_base_addr - loc;
	if (*offset >= PREL31_UPPER_BOUNDARY || *offset < PREL31_LOWER_BOUNDARY) {
@@ -142,6 +144,8 @@ static inline int jumps_decode(elf_word reloc_type, uint32_t loc,
{
	int ret;

	ARG_UNUSED(reloc_type);

	*offset = MEM2ARMOPCODE(*(uint32_t *)loc);
	*offset = (*offset & MASK_BRANCH_OFFSET) << SHIFT_BRANCH_OFFSET;
	*offset = sign_extend(*offset, SHIFT_JUMPS_SIGN);
@@ -211,6 +215,8 @@ static inline int thm_jumps_decode(elf_word reloc_type, uint32_t loc,
	int ret;
	uint32_t j_one, j_two, sign;

	ARG_UNUSED(reloc_type);

	*upper = MEM2THM16OPCODE(*(uint16_t *)loc);
	*lower = MEM2THM16OPCODE(*(uint16_t *)(loc + 2));