Skip to content

Commit eb7fe02

Browse files
moonlight83340danieldegrasse
authored andcommitted
arch: arm: core: elf: mark unused function argument
Use ARG_UNUSED() to mark unused function argument. Signed-off-by: Gaetan Perrot <[email protected]>
1 parent a4fc672 commit eb7fe02

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

arch/arm/core/elf.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ static inline int prel31_decode(elf_word reloc_type, uint32_t loc,
104104
{
105105
int ret;
106106

107+
ARG_UNUSED(reloc_type);
108+
107109
*offset = sign_extend(*(int32_t *)loc, SHIFT_PREL31_SIGN);
108110
*offset += sym_base_addr - loc;
109111
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,
142144
{
143145
int ret;
144146

147+
ARG_UNUSED(reloc_type);
148+
145149
*offset = MEM2ARMOPCODE(*(uint32_t *)loc);
146150
*offset = (*offset & MASK_BRANCH_OFFSET) << SHIFT_BRANCH_OFFSET;
147151
*offset = sign_extend(*offset, SHIFT_JUMPS_SIGN);
@@ -211,6 +215,8 @@ static inline int thm_jumps_decode(elf_word reloc_type, uint32_t loc,
211215
int ret;
212216
uint32_t j_one, j_two, sign;
213217

218+
ARG_UNUSED(reloc_type);
219+
214220
*upper = MEM2THM16OPCODE(*(uint16_t *)loc);
215221
*lower = MEM2THM16OPCODE(*(uint16_t *)(loc + 2));
216222

0 commit comments

Comments
 (0)