cpukit/score/*: Address unused parameter warnings

Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.
This commit is contained in:
Joel Sherrill
2025-09-25 16:17:24 -05:00
committed by Gedare Bloom
parent b7ec902ea8
commit 787e5a3a76
23 changed files with 94 additions and 2 deletions

View File

@@ -42,6 +42,8 @@
void *_CPU_Thread_Idle_body( uintptr_t ignored )
{
(void) ignored;
/*
* This is a workaround for:
*

View File

@@ -124,6 +124,10 @@ static void _Condition_Enqueue_no_timeout(
Thread_queue_Context *queue_context
)
{
(void) queue;
(void) the_thread;
(void) cpu_self;
_Condition_Mutex_release( queue_context );
}
@@ -277,6 +281,8 @@ static Thread_Control *_Condition_Flush_filter(
Thread_queue_Context *queue_context
)
{
(void) queue;
Condition_Flush_context *context;
context = (Condition_Flush_context *) queue_context;

View File

@@ -80,6 +80,8 @@ Status_Control _CORE_barrier_Seize(
Thread_queue_Context *queue_context
)
{
(void) wait;
uint32_t new_number_of_waiting_threads;
_CORE_barrier_Acquire_critical( the_barrier, queue_context );

View File

@@ -47,6 +47,9 @@ static Thread_Control *_CORE_message_queue_Was_deleted(
Thread_queue_Context *queue_context
)
{
(void) queue;
(void) queue_context;
the_thread->Wait.return_code = STATUS_MESSAGE_QUEUE_WAS_DELETED;
return the_thread;

View File

@@ -60,6 +60,9 @@ static Thread_Control *_CORE_RWLock_Flush_filter(
Thread_queue_Context *queue_context
)
{
(void) queue;
(void) queue_context;
CORE_RWLock_Control *the_rwlock;
the_rwlock = RTEMS_CONTAINER_OF(

View File

@@ -172,6 +172,8 @@ static Thread_Control *_Futex_Flush_filter(
Thread_queue_Context *queue_context
)
{
(void) queue;
Futex_Context *context;
context = (Futex_Context *) queue_context;

View File

@@ -147,6 +147,8 @@
Heap_Block *block
)
{
(void) heap;
block->Protection_begin.protector [0] = HEAP_BEGIN_PROTECTOR_0;
block->Protection_begin.protector [1] = HEAP_BEGIN_PROTECTOR_1;
block->Protection_begin.next_delayed_free_block = NULL;

View File

@@ -54,6 +54,10 @@ static void _Heap_Walk_print_nothing(
...
)
{
(void) source;
(void) error;
(void) fmt;
/* Do nothing */
}

View File

@@ -443,6 +443,9 @@ static
int
kern_ntp_adjtime(struct thread *td, struct timex *ntv, int *retvalp)
{
#ifdef __rtems__
(void) td;
#endif
long freq; /* frequency ns/s) */
int modes; /* mode bits from structure */
#ifndef __rtems__

View File

@@ -185,6 +185,8 @@ dummy_get_timecount(struct timecounter *tc)
return (++now);
#else /* __rtems__ */
(void) tc;
return 0;
#endif /* __rtems__ */
}

View File

@@ -137,6 +137,8 @@ static void _Mutex_Acquire_slow(
Thread_queue_Context *queue_context
)
{
(void) owner;
_Thread_queue_Context_set_thread_state(
queue_context,
STATES_WAITING_FOR_MUTEX

View File

@@ -48,6 +48,8 @@ int _Scheduler_CBS_Get_execution_time (
time_t *abs_time
)
{
(void) abs_time;
Scheduler_CBS_Server *server;
ISR_lock_Context lock_context;
Thread_Control *the_thread;

View File

@@ -45,6 +45,8 @@ Priority_Control _Scheduler_default_Map_priority(
Priority_Control priority
)
{
(void) scheduler;
return SCHEDULER_PRIORITY_MAP( priority );
}
@@ -53,5 +55,7 @@ Priority_Control _Scheduler_default_Unmap_priority(
Priority_Control priority
)
{
(void) scheduler;
return SCHEDULER_PRIORITY_UNMAP( priority );
}

View File

@@ -47,6 +47,8 @@ Priority_Control _Scheduler_EDF_Map_priority(
Priority_Control priority
)
{
(void) scheduler;
return SCHEDULER_EDF_PRIO_MSB | SCHEDULER_PRIORITY_MAP( priority );
}
@@ -55,6 +57,8 @@ Priority_Control _Scheduler_EDF_Unmap_priority(
Priority_Control priority
)
{
(void) scheduler;
return SCHEDULER_PRIORITY_UNMAP( priority & ~SCHEDULER_EDF_PRIO_MSB );
}

View File

@@ -46,6 +46,8 @@ void _Scheduler_EDF_Schedule(
Thread_Control *the_thread
)
{
(void) the_thread;
_Scheduler_uniprocessor_Schedule(
scheduler,
_Scheduler_EDF_Get_highest_ready

View File

@@ -47,6 +47,8 @@ void _Scheduler_EDF_Yield(
Scheduler_Node *node
)
{
(void) the_thread;
Scheduler_EDF_Context *context;
Scheduler_EDF_Node *the_node;

View File

@@ -46,6 +46,8 @@ void _Scheduler_priority_Schedule(
Thread_Control *the_thread
)
{
(void) the_thread;
_Scheduler_uniprocessor_Schedule(
scheduler,
_Scheduler_priority_Get_highest_ready

View File

@@ -46,6 +46,8 @@ void _Scheduler_simple_Schedule(
Thread_Control *the_thread
)
{
(void) the_thread;
_Scheduler_uniprocessor_Schedule(
scheduler,
_Scheduler_simple_Get_highest_ready

View File

@@ -205,6 +205,7 @@ static ISR_Level _Thread_Preemption_intervention(
_Per_CPU_Release( cpu_self, &lock_context );
#else
(void) executing;
(void) cpu_self;
#endif

View File

@@ -365,6 +365,8 @@ Thread_queue_Deadlock_status _Thread_queue_Path_acquire(
owner = queue->owner;
} while ( owner != NULL );
#else
(void) queue_context;
do {
owner = queue->owner;
@@ -390,6 +392,11 @@ void _Thread_queue_Enqueue_do_nothing_extra(
Thread_queue_Context *queue_context
)
{
(void) queue;
(void) the_thread;
(void) cpu_self;
(void) queue_context;
/* Do nothing */
}

View File

@@ -184,6 +184,9 @@ static void _Thread_queue_FIFO_do_enqueue(
Thread_queue_Heads *heads
)
{
(void) queue;
(void) queue_context;
Scheduler_Node *scheduler_node;
scheduler_node = _Thread_Scheduler_get_home_node( the_thread );
@@ -203,11 +206,13 @@ static void _Thread_queue_FIFO_do_extract(
Thread_Control *the_thread
)
{
Scheduler_Node *scheduler_node;
(void) queue;
(void) heads;
(void) current_or_previous_owner;
(void) queue_context;
Scheduler_Node *scheduler_node;
scheduler_node = _Thread_Scheduler_get_home_node( the_thread );
_Chain_Extract_unprotected( &scheduler_node->Wait.Priority.Node.Node.Chain );
@@ -439,6 +444,11 @@ static void _Thread_queue_Priority_do_initialize(
Thread_queue_Heads *heads
)
{
#if !defined(RTEMS_SMP)
(void) queue;
(void) queue_context;
#endif
Scheduler_Node *scheduler_node;
Thread_queue_Priority_queue *priority_queue;
#if defined(RTEMS_SMP)
@@ -513,6 +523,9 @@ static void _Thread_queue_Priority_do_enqueue(
wait_node = _Chain_Next( &scheduler_node->Thread.Wait_node );
} while ( wait_node != wait_tail );
#else
(void) queue;
(void) queue_context;
Scheduler_Node *scheduler_node;
Thread_queue_Priority_queue *priority_queue;
@@ -561,6 +574,8 @@ static void _Thread_queue_Priority_do_extract(
wait_node = _Chain_Next( &scheduler_node->Thread.Wait_node );
} while ( wait_node != wait_tail );
#else
(void) queue;
Scheduler_Node *scheduler_node;
Thread_queue_Priority_queue *priority_queue;
@@ -656,6 +671,8 @@ static Thread_Control *_Thread_queue_Priority_surrender(
Thread_queue_Context *queue_context
)
{
(void) previous_owner;
Thread_Control *first;
first = _Thread_queue_Priority_first( heads );
@@ -731,6 +748,8 @@ static void _Thread_queue_Priority_inherit_do_priority_actions_change(
void *arg
)
{
(void) priority_group_order;
_Thread_queue_Priority_inherit_do_priority_actions_action(
priority_aggregation,
priority_actions,
@@ -938,6 +957,8 @@ static void _Thread_queue_Priority_inherit_do_enqueue_change(
&scheduler_node_of_owner->Wait.Priority
);
#else
(void) priority_group_order;
Thread_queue_Queue *queue;
Thread_Control *owner;
Scheduler_Node *scheduler_node_of_owner;
@@ -1118,6 +1139,8 @@ static void _Thread_queue_Priority_inherit_do_extract_change(
void *arg
)
{
(void) priority_group_order;
_Thread_queue_Priority_inherit_do_extract_action(
priority_actions,
arg,
@@ -1182,6 +1205,8 @@ static void _Thread_queue_Priority_inherit_do_extract(
_Thread_Priority_perform_actions( owner, queue_context );
}
#else
(void) queue;
scheduler_node = _Thread_Scheduler_get_home_node( the_thread );
priority_queue = _Thread_queue_Priority_queue( heads, scheduler_node );
@@ -1442,6 +1467,8 @@ static void _Thread_queue_Priority_inherit_do_surrender(
fifo_node = _Chain_Next( fifo_node );
}
#else
(void) queue;
scheduler_node = _Thread_Scheduler_get_home_node( the_thread );
priority_queue = _Thread_queue_Priority_queue( heads, scheduler_node );
scheduler_node_of_owner = priority_queue->scheduler_node;

View File

@@ -75,6 +75,8 @@ static void _Thread_queue_Add_timeout_timespec(
const struct timespec *now
)
{
(void) queue;
const struct timespec *abstime;
struct timespec base;

View File

@@ -131,6 +131,8 @@ void _User_extensions_Thread_exitted_visitor(
const User_extensions_Table *callouts
)
{
(void) arg;
User_extensions_thread_exitted_extension callout = callouts->thread_exitted;
if ( callout != NULL ) {
@@ -144,6 +146,8 @@ void _User_extensions_Fatal_visitor(
const User_extensions_Table *callouts
)
{
(void) executing;
User_extensions_fatal_extension callout = callouts->fatal;
if ( callout != NULL ) {
@@ -159,6 +163,8 @@ void _User_extensions_Thread_terminate_visitor(
const User_extensions_Table *callouts
)
{
(void) arg;
User_extensions_thread_terminate_extension callout =
callouts->thread_terminate;