mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
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:
committed by
Gedare Bloom
parent
b7ec902ea8
commit
787e5a3a76
@@ -42,6 +42,8 @@
|
|||||||
|
|
||||||
void *_CPU_Thread_Idle_body( uintptr_t ignored )
|
void *_CPU_Thread_Idle_body( uintptr_t ignored )
|
||||||
{
|
{
|
||||||
|
(void) ignored;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This is a workaround for:
|
* This is a workaround for:
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -124,6 +124,10 @@ static void _Condition_Enqueue_no_timeout(
|
|||||||
Thread_queue_Context *queue_context
|
Thread_queue_Context *queue_context
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) queue;
|
||||||
|
(void) the_thread;
|
||||||
|
(void) cpu_self;
|
||||||
|
|
||||||
_Condition_Mutex_release( queue_context );
|
_Condition_Mutex_release( queue_context );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -277,6 +281,8 @@ static Thread_Control *_Condition_Flush_filter(
|
|||||||
Thread_queue_Context *queue_context
|
Thread_queue_Context *queue_context
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) queue;
|
||||||
|
|
||||||
Condition_Flush_context *context;
|
Condition_Flush_context *context;
|
||||||
|
|
||||||
context = (Condition_Flush_context *) queue_context;
|
context = (Condition_Flush_context *) queue_context;
|
||||||
|
|||||||
@@ -80,6 +80,8 @@ Status_Control _CORE_barrier_Seize(
|
|||||||
Thread_queue_Context *queue_context
|
Thread_queue_Context *queue_context
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) wait;
|
||||||
|
|
||||||
uint32_t new_number_of_waiting_threads;
|
uint32_t new_number_of_waiting_threads;
|
||||||
|
|
||||||
_CORE_barrier_Acquire_critical( the_barrier, queue_context );
|
_CORE_barrier_Acquire_critical( the_barrier, queue_context );
|
||||||
|
|||||||
@@ -47,6 +47,9 @@ static Thread_Control *_CORE_message_queue_Was_deleted(
|
|||||||
Thread_queue_Context *queue_context
|
Thread_queue_Context *queue_context
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) queue;
|
||||||
|
(void) queue_context;
|
||||||
|
|
||||||
the_thread->Wait.return_code = STATUS_MESSAGE_QUEUE_WAS_DELETED;
|
the_thread->Wait.return_code = STATUS_MESSAGE_QUEUE_WAS_DELETED;
|
||||||
|
|
||||||
return the_thread;
|
return the_thread;
|
||||||
|
|||||||
@@ -60,6 +60,9 @@ static Thread_Control *_CORE_RWLock_Flush_filter(
|
|||||||
Thread_queue_Context *queue_context
|
Thread_queue_Context *queue_context
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) queue;
|
||||||
|
(void) queue_context;
|
||||||
|
|
||||||
CORE_RWLock_Control *the_rwlock;
|
CORE_RWLock_Control *the_rwlock;
|
||||||
|
|
||||||
the_rwlock = RTEMS_CONTAINER_OF(
|
the_rwlock = RTEMS_CONTAINER_OF(
|
||||||
|
|||||||
@@ -172,6 +172,8 @@ static Thread_Control *_Futex_Flush_filter(
|
|||||||
Thread_queue_Context *queue_context
|
Thread_queue_Context *queue_context
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) queue;
|
||||||
|
|
||||||
Futex_Context *context;
|
Futex_Context *context;
|
||||||
|
|
||||||
context = (Futex_Context *) queue_context;
|
context = (Futex_Context *) queue_context;
|
||||||
|
|||||||
@@ -147,6 +147,8 @@
|
|||||||
Heap_Block *block
|
Heap_Block *block
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) heap;
|
||||||
|
|
||||||
block->Protection_begin.protector [0] = HEAP_BEGIN_PROTECTOR_0;
|
block->Protection_begin.protector [0] = HEAP_BEGIN_PROTECTOR_0;
|
||||||
block->Protection_begin.protector [1] = HEAP_BEGIN_PROTECTOR_1;
|
block->Protection_begin.protector [1] = HEAP_BEGIN_PROTECTOR_1;
|
||||||
block->Protection_begin.next_delayed_free_block = NULL;
|
block->Protection_begin.next_delayed_free_block = NULL;
|
||||||
|
|||||||
@@ -54,6 +54,10 @@ static void _Heap_Walk_print_nothing(
|
|||||||
...
|
...
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) source;
|
||||||
|
(void) error;
|
||||||
|
(void) fmt;
|
||||||
|
|
||||||
/* Do nothing */
|
/* Do nothing */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -443,6 +443,9 @@ static
|
|||||||
int
|
int
|
||||||
kern_ntp_adjtime(struct thread *td, struct timex *ntv, int *retvalp)
|
kern_ntp_adjtime(struct thread *td, struct timex *ntv, int *retvalp)
|
||||||
{
|
{
|
||||||
|
#ifdef __rtems__
|
||||||
|
(void) td;
|
||||||
|
#endif
|
||||||
long freq; /* frequency ns/s) */
|
long freq; /* frequency ns/s) */
|
||||||
int modes; /* mode bits from structure */
|
int modes; /* mode bits from structure */
|
||||||
#ifndef __rtems__
|
#ifndef __rtems__
|
||||||
|
|||||||
@@ -185,6 +185,8 @@ dummy_get_timecount(struct timecounter *tc)
|
|||||||
|
|
||||||
return (++now);
|
return (++now);
|
||||||
#else /* __rtems__ */
|
#else /* __rtems__ */
|
||||||
|
(void) tc;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
#endif /* __rtems__ */
|
#endif /* __rtems__ */
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -137,6 +137,8 @@ static void _Mutex_Acquire_slow(
|
|||||||
Thread_queue_Context *queue_context
|
Thread_queue_Context *queue_context
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) owner;
|
||||||
|
|
||||||
_Thread_queue_Context_set_thread_state(
|
_Thread_queue_Context_set_thread_state(
|
||||||
queue_context,
|
queue_context,
|
||||||
STATES_WAITING_FOR_MUTEX
|
STATES_WAITING_FOR_MUTEX
|
||||||
|
|||||||
@@ -48,6 +48,8 @@ int _Scheduler_CBS_Get_execution_time (
|
|||||||
time_t *abs_time
|
time_t *abs_time
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) abs_time;
|
||||||
|
|
||||||
Scheduler_CBS_Server *server;
|
Scheduler_CBS_Server *server;
|
||||||
ISR_lock_Context lock_context;
|
ISR_lock_Context lock_context;
|
||||||
Thread_Control *the_thread;
|
Thread_Control *the_thread;
|
||||||
|
|||||||
@@ -45,6 +45,8 @@ Priority_Control _Scheduler_default_Map_priority(
|
|||||||
Priority_Control priority
|
Priority_Control priority
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) scheduler;
|
||||||
|
|
||||||
return SCHEDULER_PRIORITY_MAP( priority );
|
return SCHEDULER_PRIORITY_MAP( priority );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -53,5 +55,7 @@ Priority_Control _Scheduler_default_Unmap_priority(
|
|||||||
Priority_Control priority
|
Priority_Control priority
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) scheduler;
|
||||||
|
|
||||||
return SCHEDULER_PRIORITY_UNMAP( priority );
|
return SCHEDULER_PRIORITY_UNMAP( priority );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,6 +47,8 @@ Priority_Control _Scheduler_EDF_Map_priority(
|
|||||||
Priority_Control priority
|
Priority_Control priority
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) scheduler;
|
||||||
|
|
||||||
return SCHEDULER_EDF_PRIO_MSB | SCHEDULER_PRIORITY_MAP( priority );
|
return SCHEDULER_EDF_PRIO_MSB | SCHEDULER_PRIORITY_MAP( priority );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -55,6 +57,8 @@ Priority_Control _Scheduler_EDF_Unmap_priority(
|
|||||||
Priority_Control priority
|
Priority_Control priority
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) scheduler;
|
||||||
|
|
||||||
return SCHEDULER_PRIORITY_UNMAP( priority & ~SCHEDULER_EDF_PRIO_MSB );
|
return SCHEDULER_PRIORITY_UNMAP( priority & ~SCHEDULER_EDF_PRIO_MSB );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -46,6 +46,8 @@ void _Scheduler_EDF_Schedule(
|
|||||||
Thread_Control *the_thread
|
Thread_Control *the_thread
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) the_thread;
|
||||||
|
|
||||||
_Scheduler_uniprocessor_Schedule(
|
_Scheduler_uniprocessor_Schedule(
|
||||||
scheduler,
|
scheduler,
|
||||||
_Scheduler_EDF_Get_highest_ready
|
_Scheduler_EDF_Get_highest_ready
|
||||||
|
|||||||
@@ -47,6 +47,8 @@ void _Scheduler_EDF_Yield(
|
|||||||
Scheduler_Node *node
|
Scheduler_Node *node
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) the_thread;
|
||||||
|
|
||||||
Scheduler_EDF_Context *context;
|
Scheduler_EDF_Context *context;
|
||||||
Scheduler_EDF_Node *the_node;
|
Scheduler_EDF_Node *the_node;
|
||||||
|
|
||||||
|
|||||||
@@ -46,6 +46,8 @@ void _Scheduler_priority_Schedule(
|
|||||||
Thread_Control *the_thread
|
Thread_Control *the_thread
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) the_thread;
|
||||||
|
|
||||||
_Scheduler_uniprocessor_Schedule(
|
_Scheduler_uniprocessor_Schedule(
|
||||||
scheduler,
|
scheduler,
|
||||||
_Scheduler_priority_Get_highest_ready
|
_Scheduler_priority_Get_highest_ready
|
||||||
|
|||||||
@@ -46,6 +46,8 @@ void _Scheduler_simple_Schedule(
|
|||||||
Thread_Control *the_thread
|
Thread_Control *the_thread
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) the_thread;
|
||||||
|
|
||||||
_Scheduler_uniprocessor_Schedule(
|
_Scheduler_uniprocessor_Schedule(
|
||||||
scheduler,
|
scheduler,
|
||||||
_Scheduler_simple_Get_highest_ready
|
_Scheduler_simple_Get_highest_ready
|
||||||
|
|||||||
@@ -205,6 +205,7 @@ static ISR_Level _Thread_Preemption_intervention(
|
|||||||
|
|
||||||
_Per_CPU_Release( cpu_self, &lock_context );
|
_Per_CPU_Release( cpu_self, &lock_context );
|
||||||
#else
|
#else
|
||||||
|
(void) executing;
|
||||||
(void) cpu_self;
|
(void) cpu_self;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -365,6 +365,8 @@ Thread_queue_Deadlock_status _Thread_queue_Path_acquire(
|
|||||||
owner = queue->owner;
|
owner = queue->owner;
|
||||||
} while ( owner != NULL );
|
} while ( owner != NULL );
|
||||||
#else
|
#else
|
||||||
|
(void) queue_context;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
owner = queue->owner;
|
owner = queue->owner;
|
||||||
|
|
||||||
@@ -390,6 +392,11 @@ void _Thread_queue_Enqueue_do_nothing_extra(
|
|||||||
Thread_queue_Context *queue_context
|
Thread_queue_Context *queue_context
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) queue;
|
||||||
|
(void) the_thread;
|
||||||
|
(void) cpu_self;
|
||||||
|
(void) queue_context;
|
||||||
|
|
||||||
/* Do nothing */
|
/* Do nothing */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -184,6 +184,9 @@ static void _Thread_queue_FIFO_do_enqueue(
|
|||||||
Thread_queue_Heads *heads
|
Thread_queue_Heads *heads
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) queue;
|
||||||
|
(void) queue_context;
|
||||||
|
|
||||||
Scheduler_Node *scheduler_node;
|
Scheduler_Node *scheduler_node;
|
||||||
|
|
||||||
scheduler_node = _Thread_Scheduler_get_home_node( the_thread );
|
scheduler_node = _Thread_Scheduler_get_home_node( the_thread );
|
||||||
@@ -203,11 +206,13 @@ static void _Thread_queue_FIFO_do_extract(
|
|||||||
Thread_Control *the_thread
|
Thread_Control *the_thread
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
Scheduler_Node *scheduler_node;
|
(void) queue;
|
||||||
|
(void) heads;
|
||||||
(void) current_or_previous_owner;
|
(void) current_or_previous_owner;
|
||||||
(void) queue_context;
|
(void) queue_context;
|
||||||
|
|
||||||
|
Scheduler_Node *scheduler_node;
|
||||||
|
|
||||||
scheduler_node = _Thread_Scheduler_get_home_node( the_thread );
|
scheduler_node = _Thread_Scheduler_get_home_node( the_thread );
|
||||||
|
|
||||||
_Chain_Extract_unprotected( &scheduler_node->Wait.Priority.Node.Node.Chain );
|
_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
|
Thread_queue_Heads *heads
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
#if !defined(RTEMS_SMP)
|
||||||
|
(void) queue;
|
||||||
|
(void) queue_context;
|
||||||
|
#endif
|
||||||
|
|
||||||
Scheduler_Node *scheduler_node;
|
Scheduler_Node *scheduler_node;
|
||||||
Thread_queue_Priority_queue *priority_queue;
|
Thread_queue_Priority_queue *priority_queue;
|
||||||
#if defined(RTEMS_SMP)
|
#if defined(RTEMS_SMP)
|
||||||
@@ -513,6 +523,9 @@ static void _Thread_queue_Priority_do_enqueue(
|
|||||||
wait_node = _Chain_Next( &scheduler_node->Thread.Wait_node );
|
wait_node = _Chain_Next( &scheduler_node->Thread.Wait_node );
|
||||||
} while ( wait_node != wait_tail );
|
} while ( wait_node != wait_tail );
|
||||||
#else
|
#else
|
||||||
|
(void) queue;
|
||||||
|
(void) queue_context;
|
||||||
|
|
||||||
Scheduler_Node *scheduler_node;
|
Scheduler_Node *scheduler_node;
|
||||||
Thread_queue_Priority_queue *priority_queue;
|
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 );
|
wait_node = _Chain_Next( &scheduler_node->Thread.Wait_node );
|
||||||
} while ( wait_node != wait_tail );
|
} while ( wait_node != wait_tail );
|
||||||
#else
|
#else
|
||||||
|
(void) queue;
|
||||||
|
|
||||||
Scheduler_Node *scheduler_node;
|
Scheduler_Node *scheduler_node;
|
||||||
Thread_queue_Priority_queue *priority_queue;
|
Thread_queue_Priority_queue *priority_queue;
|
||||||
|
|
||||||
@@ -656,6 +671,8 @@ static Thread_Control *_Thread_queue_Priority_surrender(
|
|||||||
Thread_queue_Context *queue_context
|
Thread_queue_Context *queue_context
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) previous_owner;
|
||||||
|
|
||||||
Thread_Control *first;
|
Thread_Control *first;
|
||||||
|
|
||||||
first = _Thread_queue_Priority_first( heads );
|
first = _Thread_queue_Priority_first( heads );
|
||||||
@@ -731,6 +748,8 @@ static void _Thread_queue_Priority_inherit_do_priority_actions_change(
|
|||||||
void *arg
|
void *arg
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) priority_group_order;
|
||||||
|
|
||||||
_Thread_queue_Priority_inherit_do_priority_actions_action(
|
_Thread_queue_Priority_inherit_do_priority_actions_action(
|
||||||
priority_aggregation,
|
priority_aggregation,
|
||||||
priority_actions,
|
priority_actions,
|
||||||
@@ -938,6 +957,8 @@ static void _Thread_queue_Priority_inherit_do_enqueue_change(
|
|||||||
&scheduler_node_of_owner->Wait.Priority
|
&scheduler_node_of_owner->Wait.Priority
|
||||||
);
|
);
|
||||||
#else
|
#else
|
||||||
|
(void) priority_group_order;
|
||||||
|
|
||||||
Thread_queue_Queue *queue;
|
Thread_queue_Queue *queue;
|
||||||
Thread_Control *owner;
|
Thread_Control *owner;
|
||||||
Scheduler_Node *scheduler_node_of_owner;
|
Scheduler_Node *scheduler_node_of_owner;
|
||||||
@@ -1118,6 +1139,8 @@ static void _Thread_queue_Priority_inherit_do_extract_change(
|
|||||||
void *arg
|
void *arg
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) priority_group_order;
|
||||||
|
|
||||||
_Thread_queue_Priority_inherit_do_extract_action(
|
_Thread_queue_Priority_inherit_do_extract_action(
|
||||||
priority_actions,
|
priority_actions,
|
||||||
arg,
|
arg,
|
||||||
@@ -1182,6 +1205,8 @@ static void _Thread_queue_Priority_inherit_do_extract(
|
|||||||
_Thread_Priority_perform_actions( owner, queue_context );
|
_Thread_Priority_perform_actions( owner, queue_context );
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
(void) queue;
|
||||||
|
|
||||||
scheduler_node = _Thread_Scheduler_get_home_node( the_thread );
|
scheduler_node = _Thread_Scheduler_get_home_node( the_thread );
|
||||||
priority_queue = _Thread_queue_Priority_queue( heads, scheduler_node );
|
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 );
|
fifo_node = _Chain_Next( fifo_node );
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
(void) queue;
|
||||||
|
|
||||||
scheduler_node = _Thread_Scheduler_get_home_node( the_thread );
|
scheduler_node = _Thread_Scheduler_get_home_node( the_thread );
|
||||||
priority_queue = _Thread_queue_Priority_queue( heads, scheduler_node );
|
priority_queue = _Thread_queue_Priority_queue( heads, scheduler_node );
|
||||||
scheduler_node_of_owner = priority_queue->scheduler_node;
|
scheduler_node_of_owner = priority_queue->scheduler_node;
|
||||||
|
|||||||
@@ -75,6 +75,8 @@ static void _Thread_queue_Add_timeout_timespec(
|
|||||||
const struct timespec *now
|
const struct timespec *now
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) queue;
|
||||||
|
|
||||||
const struct timespec *abstime;
|
const struct timespec *abstime;
|
||||||
struct timespec base;
|
struct timespec base;
|
||||||
|
|
||||||
|
|||||||
@@ -131,6 +131,8 @@ void _User_extensions_Thread_exitted_visitor(
|
|||||||
const User_extensions_Table *callouts
|
const User_extensions_Table *callouts
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) arg;
|
||||||
|
|
||||||
User_extensions_thread_exitted_extension callout = callouts->thread_exitted;
|
User_extensions_thread_exitted_extension callout = callouts->thread_exitted;
|
||||||
|
|
||||||
if ( callout != NULL ) {
|
if ( callout != NULL ) {
|
||||||
@@ -144,6 +146,8 @@ void _User_extensions_Fatal_visitor(
|
|||||||
const User_extensions_Table *callouts
|
const User_extensions_Table *callouts
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) executing;
|
||||||
|
|
||||||
User_extensions_fatal_extension callout = callouts->fatal;
|
User_extensions_fatal_extension callout = callouts->fatal;
|
||||||
|
|
||||||
if ( callout != NULL ) {
|
if ( callout != NULL ) {
|
||||||
@@ -159,6 +163,8 @@ void _User_extensions_Thread_terminate_visitor(
|
|||||||
const User_extensions_Table *callouts
|
const User_extensions_Table *callouts
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) arg;
|
||||||
|
|
||||||
User_extensions_thread_terminate_extension callout =
|
User_extensions_thread_terminate_extension callout =
|
||||||
callouts->thread_terminate;
|
callouts->thread_terminate;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user