cpukit arm: Address unused parameter warnings

Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
This commit is contained in:
Joel Sherrill
2025-10-10 12:12:21 -05:00
committed by Gedare Bloom
parent 34f9c5690d
commit 01cd6f74aa
11 changed files with 38 additions and 0 deletions

View File

@@ -546,6 +546,8 @@ arm_debug_authentication(uint32_t dbgauthstatus)
static int
arm_debug_cp14_enable(rtems_debugger_target* target)
{
(void) target;
uint32_t val;
ARM_CP14_READ(val, 7, 14, 6);
if (!arm_debug_authentication(val))
@@ -856,6 +858,8 @@ arm_debug_rom_discover(uint32_t* rom, uint32_t comp, uint32_t** addr, int* index
static int
arm_debug_mmap_enable(rtems_debugger_target* target, uint32_t dbgdidr)
{
(void) target;
uint32_t val;
int rc = -1;
@@ -1220,6 +1224,8 @@ arm_debug_set_context_id(const uint32_t id)
{
#if ARM_CP15
ARM_CP15_WRITE(id, 0, 13, 0, 1);
#else
(void) id;
#endif
}
@@ -1333,6 +1339,8 @@ rtems_debugger_target_configure(rtems_debugger_target* target)
static void
target_print_frame(CPU_Exception_frame* frame)
{
(void) frame;
EXC_FRAME_PRINT(target_printk, "[} ", frame);
}

View File

@@ -158,6 +158,8 @@ uint32_t
rtems_rtl_elf_section_flags (const rtems_rtl_obj* obj,
const Elf_Shdr* shdr)
{
(void) obj;
uint32_t flags = 0;
if (shdr->sh_type == SHT_ARM_EXIDX)
flags = RTEMS_RTL_OBJ_SECT_EH | RTEMS_RTL_OBJ_SECT_LOAD;
@@ -199,6 +201,8 @@ rtems_rtl_elf_arch_section_free (const rtems_rtl_obj* obj,
bool
rtems_rtl_elf_rel_resolve_sym (Elf_Word type)
{
(void) type;
return true;
}
@@ -247,6 +251,9 @@ rtems_rtl_elf_reloc_rel (rtems_rtl_obj* obj,
const Elf_Word symvalue,
const bool parsing)
{
(void) symname;
(void) syminfo;
Elf_Addr *where;
Elf_Addr tmp;
Elf_Word insn, addend;

View File

@@ -5,6 +5,10 @@ rtems_rtl_elf_unwind_parse (const rtems_rtl_obj* obj,
const char* name,
uint32_t flags)
{
(void) obj;
(void) name;
(void) flags;
/*
* We location the EH sections in section flags.
*/
@@ -14,6 +18,8 @@ rtems_rtl_elf_unwind_parse (const rtems_rtl_obj* obj,
bool
rtems_rtl_elf_unwind_register (rtems_rtl_obj* obj)
{
(void) obj;
return true;
}

View File

@@ -73,6 +73,8 @@ static void _ARM_VFP_context_print( const ARM_VFP_context *vfp_context )
printk( "D%02i = 0x%08" PRIx32 "%08" PRIx32 "\n", i, high, low );
}
}
#else
(void) vfp_context;
#endif
}

View File

@@ -43,6 +43,8 @@
void *_CPU_Thread_Idle_body( uintptr_t ignored )
{
(void) ignored;
while ( true ) {
#ifdef ARM_MULTILIB_HAS_WFI
__asm__ volatile ("wfi");

View File

@@ -56,6 +56,9 @@ void _CPU_Context_Initialize(
void *tls_area
)
{
(void) new_level;
(void) is_fp;
char *stack_area_end = (char *) stack_area_begin + stack_area_size;
memset(context, 0, sizeof(*context));

View File

@@ -47,6 +47,8 @@ void __attribute__((naked)) _CPU_Context_restore(
Context_Control *heir
)
{
(void) heir;
__asm__ volatile (
"movw r2, #:lower16:_Per_CPU_Information\n"
"movt r2, #:upper16:_Per_CPU_Information\n"

View File

@@ -48,6 +48,9 @@ void __attribute__((naked)) _CPU_Context_switch(
Context_Control *heir
)
{
(void) executing;
(void) heir;
__asm__ volatile (
"movw r2, #:lower16:_Per_CPU_Information\n"
"movt r2, #:upper16:_Per_CPU_Information\n"

View File

@@ -43,6 +43,8 @@
void _CPU_ISR_Set_level( uint32_t level )
{
(void) level;
_ARMV7M_Set_basepri( 0 );
}

View File

@@ -46,6 +46,8 @@ void __attribute__((naked)) _ARMV7M_Start_multitasking(
Context_Control *heir
)
{
(void) heir;
__asm__ volatile (
/* Restore heir context */
"ldr r2, [r0, %[spctxoff]]\n"

View File

@@ -141,6 +141,7 @@ void _CPU_Context_Initialize(
)
{
(void) new_level;
(void) is_fp;
the_context->register_sp = (uint32_t) stack_area_begin + stack_area_size;
the_context->register_lr = (uint32_t) entry_point;