mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
cpukit: 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:
committed by
Gedare Bloom
parent
a9a8c963e4
commit
34f9c5690d
@@ -286,6 +286,9 @@ static int ctucanfd_check_state(
|
||||
struct ctucanfd_internal *internal,
|
||||
const char *where
|
||||
) {
|
||||
(void) internal;
|
||||
(void) where;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -476,6 +476,8 @@ static inline void _Objects_Namespace_remove_u32(
|
||||
Objects_Control *the_object
|
||||
)
|
||||
{
|
||||
(void) information;
|
||||
|
||||
_Assert( !_Objects_Has_string_name( information ) );
|
||||
the_object->name.name_u32 = 0;
|
||||
}
|
||||
|
||||
@@ -1526,6 +1526,8 @@ static inline void _Scheduler_SMP_Yield(
|
||||
Scheduler_SMP_Enqueue_scheduled enqueue_scheduled
|
||||
)
|
||||
{
|
||||
(void) thread;
|
||||
|
||||
Scheduler_SMP_Node_state node_state;
|
||||
Priority_Control insert_priority;
|
||||
|
||||
@@ -1807,6 +1809,8 @@ static inline void _Scheduler_SMP_Make_sticky(
|
||||
Scheduler_SMP_Enqueue enqueue
|
||||
)
|
||||
{
|
||||
(void) the_thread;
|
||||
|
||||
Scheduler_SMP_Node_state node_state;
|
||||
|
||||
node_state = _Scheduler_SMP_Node_state( node );
|
||||
@@ -1851,6 +1855,8 @@ static inline void _Scheduler_SMP_Clean_sticky(
|
||||
Scheduler_Release_idle_node release_idle_node
|
||||
)
|
||||
{
|
||||
(void) the_thread;
|
||||
|
||||
Scheduler_SMP_Node_state node_state;
|
||||
|
||||
node_state = _Scheduler_SMP_Node_state( node );
|
||||
@@ -1970,6 +1976,8 @@ static inline Thread_Control *_Scheduler_SMP_Remove_processor(
|
||||
Scheduler_Release_idle_node release_idle_node
|
||||
)
|
||||
{
|
||||
(void) extract_from_ready;
|
||||
|
||||
Scheduler_SMP_Context *self;
|
||||
Chain_Node *chain_node;
|
||||
Scheduler_Node *victim_node;
|
||||
@@ -2060,6 +2068,8 @@ static inline void _Scheduler_SMP_Set_affinity(
|
||||
Scheduler_Release_idle_node release_idle_node
|
||||
)
|
||||
{
|
||||
(void) thread;
|
||||
|
||||
Scheduler_SMP_Node_state node_state;
|
||||
Priority_Control insert_priority;
|
||||
|
||||
|
||||
@@ -652,6 +652,8 @@ static inline void _Thread_queue_Queue_do_acquire_critical(
|
||||
)
|
||||
{
|
||||
#if defined(RTEMS_SMP)
|
||||
(void) lock_context;
|
||||
|
||||
_SMP_ticket_lock_Acquire(
|
||||
&queue->Lock,
|
||||
lock_stats,
|
||||
@@ -685,6 +687,8 @@ static inline void _Thread_queue_Queue_release_critical(
|
||||
)
|
||||
{
|
||||
#if defined(RTEMS_SMP)
|
||||
(void) lock_context;
|
||||
|
||||
_SMP_ticket_lock_Release(
|
||||
&queue->Lock,
|
||||
&lock_context->Lock_context.Stats_context
|
||||
|
||||
@@ -205,6 +205,7 @@ static inline void _TLS_Initialize_TCB_and_DTV(
|
||||
)
|
||||
{
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
(void) tls_data;
|
||||
(void) dtv;
|
||||
tcb->tcb = tcb;
|
||||
#else
|
||||
|
||||
@@ -36,6 +36,9 @@
|
||||
#if !defined(RTEMS_POSIX_API)
|
||||
int kill( pid_t pid, int sig )
|
||||
{
|
||||
(void) pid;
|
||||
(void) sig;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -44,6 +47,10 @@ int kill( pid_t pid, int sig )
|
||||
|
||||
int _kill_r( struct _reent *ptr, pid_t pid, int sig )
|
||||
{
|
||||
(void) ptr;
|
||||
(void) pid;
|
||||
(void) sig;
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -829,6 +829,9 @@ remote_packet_dispatch(const rtems_debugger_packet* packet,
|
||||
static int
|
||||
remote_detach(uint8_t* buffer, int size)
|
||||
{
|
||||
(void) buffer;
|
||||
(void) size;
|
||||
|
||||
remote_packet_out_str(r_OK);
|
||||
remote_packet_out_send();
|
||||
rtems_debugger_remote_disconnect();
|
||||
@@ -838,12 +841,18 @@ remote_detach(uint8_t* buffer, int size)
|
||||
static int
|
||||
remote_ut_features(uint8_t* buffer, int size)
|
||||
{
|
||||
(void) buffer;
|
||||
(void) size;
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
static int
|
||||
remote_ut_osdata(uint8_t* buffer, int size)
|
||||
{
|
||||
(void) buffer;
|
||||
(void) size;
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -868,6 +877,9 @@ remote_gq_uninterpreted_transfer(uint8_t* buffer, int size)
|
||||
static int
|
||||
remote_gq_thread_info_subsequent(uint8_t* buffer, int size)
|
||||
{
|
||||
(void) buffer;
|
||||
(void) size;
|
||||
|
||||
rtems_debugger_threads* threads = rtems_debugger->threads;
|
||||
if (threads->next >= threads->current.level)
|
||||
remote_packet_out_str("l");
|
||||
@@ -901,6 +913,8 @@ remote_gq_thread_info_first(uint8_t* buffer, int size)
|
||||
static int
|
||||
remote_gq_thread_extra_info(uint8_t* buffer, int size)
|
||||
{
|
||||
(void) size;
|
||||
|
||||
const char* comma;
|
||||
remote_packet_out_reset();
|
||||
comma = strchr((const char*) buffer, ',');
|
||||
@@ -947,6 +961,8 @@ remote_gq_thread_extra_info(uint8_t* buffer, int size)
|
||||
static int
|
||||
remote_gq_supported(uint8_t* buffer, int size)
|
||||
{
|
||||
(void) size;
|
||||
|
||||
uint32_t capabilities = rtems_debugger_target_capabilities();
|
||||
const char* p;
|
||||
bool swbreak = false;
|
||||
@@ -1027,6 +1043,8 @@ remote_gq_supported(uint8_t* buffer, int size)
|
||||
static int
|
||||
remote_gq_attached(uint8_t* buffer, int size)
|
||||
{
|
||||
(void) size;
|
||||
|
||||
const char* response = "1";
|
||||
const char* colon = strchr((const char*) buffer, ':');
|
||||
if (colon != NULL) {
|
||||
@@ -1178,6 +1196,8 @@ remote_general_query(uint8_t* buffer, int size)
|
||||
static int
|
||||
remote_gs_non_stop(uint8_t* buffer, int size)
|
||||
{
|
||||
(void) size;
|
||||
|
||||
const char* response = r_E01;
|
||||
char* p = strchr((char*) buffer, ':');
|
||||
if (p != NULL) {
|
||||
@@ -1214,6 +1234,9 @@ remote_general_set(uint8_t* buffer, int size)
|
||||
static int
|
||||
remote_v_stopped(uint8_t* buffer, int size)
|
||||
{
|
||||
(void) buffer;
|
||||
(void) size;
|
||||
|
||||
rtems_debugger_threads* threads = rtems_debugger->threads;
|
||||
if (threads->next >= threads->stopped.level)
|
||||
remote_packet_out_str(r_OK);
|
||||
@@ -1245,6 +1268,8 @@ remote_stop_reason(uint8_t* buffer, int size)
|
||||
static int
|
||||
remote_v_continue(uint8_t* buffer, int size)
|
||||
{
|
||||
(void) size;
|
||||
|
||||
buffer += 5;
|
||||
|
||||
if (buffer[0] == '?') {
|
||||
@@ -1377,6 +1402,8 @@ remote_v_packets(uint8_t* buffer, int size)
|
||||
static int
|
||||
remote_thread_select(uint8_t* buffer, int size)
|
||||
{
|
||||
(void) size;
|
||||
|
||||
const char* response = r_OK;
|
||||
int* index = NULL;
|
||||
|
||||
@@ -1419,6 +1446,8 @@ remote_thread_select(uint8_t* buffer, int size)
|
||||
static int
|
||||
remote_thread_alive(uint8_t* buffer, int size)
|
||||
{
|
||||
(void) size;
|
||||
|
||||
const char* response = r_E01;
|
||||
DB_UINT pid = 0;
|
||||
DB_UINT tid = 0;
|
||||
@@ -1438,12 +1467,18 @@ remote_thread_alive(uint8_t* buffer, int size)
|
||||
static int
|
||||
remote_argc_argv(uint8_t* buffer, int size)
|
||||
{
|
||||
(void) buffer;
|
||||
(void) size;
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
static int
|
||||
remote_continue_at(uint8_t* buffer, int size)
|
||||
{
|
||||
(void) buffer;
|
||||
(void) size;
|
||||
|
||||
if (!rtems_debugger_server_flag(RTEMS_DEBUGGER_FLAG_VCONT)) {
|
||||
char* vCont_c = "vCont;c:p1.-1";
|
||||
return remote_v_continue((uint8_t*) vCont_c, strlen(vCont_c));
|
||||
@@ -1454,6 +1489,9 @@ remote_continue_at(uint8_t* buffer, int size)
|
||||
static int
|
||||
remote_read_general_regs(uint8_t* buffer, int size)
|
||||
{
|
||||
(void) buffer;
|
||||
(void) size;
|
||||
|
||||
rtems_debugger_threads* threads = rtems_debugger->threads;
|
||||
bool ok = false;
|
||||
int r;
|
||||
@@ -1512,6 +1550,8 @@ remote_write_general_regs(uint8_t* buffer, int size)
|
||||
static int
|
||||
remote_read_reg(uint8_t* buffer, int size)
|
||||
{
|
||||
(void) size;
|
||||
|
||||
rtems_debugger_threads* threads = rtems_debugger->threads;
|
||||
bool ok = false;
|
||||
int r;
|
||||
@@ -1544,6 +1584,8 @@ remote_read_reg(uint8_t* buffer, int size)
|
||||
static int
|
||||
remote_write_reg(uint8_t* buffer, int size)
|
||||
{
|
||||
(void) size;
|
||||
|
||||
rtems_debugger_threads* threads = rtems_debugger->threads;
|
||||
const char* response = r_E01;
|
||||
if (threads->selector_gen >= 0
|
||||
@@ -1580,6 +1622,8 @@ remote_write_reg(uint8_t* buffer, int size)
|
||||
static int
|
||||
remote_read_memory(uint8_t* buffer, int size)
|
||||
{
|
||||
(void) size;
|
||||
|
||||
const char* comma;
|
||||
comma = strchr((const char*) buffer, ',');
|
||||
if (comma == NULL)
|
||||
@@ -1609,6 +1653,8 @@ remote_read_memory(uint8_t* buffer, int size)
|
||||
static int
|
||||
remote_write_memory(uint8_t* buffer, int size)
|
||||
{
|
||||
(void) size;
|
||||
|
||||
const char* response = r_E01;
|
||||
const char* comma;
|
||||
const char* colon;
|
||||
@@ -1638,6 +1684,9 @@ remote_write_memory(uint8_t* buffer, int size)
|
||||
static int
|
||||
remote_single_step(uint8_t* buffer, int size)
|
||||
{
|
||||
(void) buffer;
|
||||
(void) size;
|
||||
|
||||
if (!rtems_debugger_server_flag(RTEMS_DEBUGGER_FLAG_VCONT)) {
|
||||
rtems_debugger_threads* threads = rtems_debugger->threads;
|
||||
if (threads != NULL && rtems_debugger_thread_current(threads) != NULL) {
|
||||
@@ -1658,6 +1707,8 @@ remote_single_step(uint8_t* buffer, int size)
|
||||
static int
|
||||
remote_breakpoints(bool insert, uint8_t* buffer, int size)
|
||||
{
|
||||
(void) size;
|
||||
|
||||
const char* comma1;
|
||||
int r = -1;
|
||||
comma1 = strchr((const char*) buffer, ',');
|
||||
@@ -1793,6 +1844,8 @@ remote_packets(uint8_t* buffer, size_t size)
|
||||
static void
|
||||
rtems_debugger_events(rtems_task_argument arg)
|
||||
{
|
||||
(void) arg;
|
||||
|
||||
int r = 0;
|
||||
|
||||
if (rtems_debugger_verbose())
|
||||
@@ -2052,6 +2105,8 @@ rtems_debugger_destroy(void)
|
||||
static void
|
||||
rtems_debugger_main(rtems_task_argument arg)
|
||||
{
|
||||
(void) arg;
|
||||
|
||||
int r;
|
||||
|
||||
rtems_debugger_lock();
|
||||
|
||||
@@ -165,6 +165,8 @@ rtems_debugger_thread_find_index(rtems_id id)
|
||||
static bool
|
||||
snapshot_thread(rtems_tcb* tcb, void* arg)
|
||||
{
|
||||
(void) arg;
|
||||
|
||||
rtems_debugger_threads* threads = rtems_debugger->threads;
|
||||
rtems_id id = tcb->Object.id;
|
||||
char name[RTEMS_DEBUGGER_THREAD_NAME_SIZE];
|
||||
|
||||
@@ -55,6 +55,8 @@ rtems_monitor_mpci_canonical(
|
||||
const void *config_void
|
||||
)
|
||||
{
|
||||
(void) config_void;
|
||||
|
||||
const rtems_multiprocessing_table *m;
|
||||
const rtems_mpci_table *mt;
|
||||
|
||||
@@ -94,6 +96,9 @@ rtems_monitor_mpci_next(
|
||||
rtems_id *next_id
|
||||
)
|
||||
{
|
||||
(void) object_info;
|
||||
(void) canonical_mpci;
|
||||
|
||||
int n = rtems_object_id_get_index(*next_id);
|
||||
|
||||
if (n >= 1)
|
||||
@@ -115,6 +120,8 @@ rtems_monitor_mpci_dump_header(
|
||||
bool verbose
|
||||
)
|
||||
{
|
||||
(void) verbose;
|
||||
|
||||
fprintf(stdout,"\
|
||||
max max max default max\n\
|
||||
node nodes globals proxies timeout pktsize\n");
|
||||
|
||||
@@ -206,6 +206,11 @@ int lio_listio(
|
||||
|
||||
return 0;
|
||||
#else
|
||||
(void) mode;
|
||||
(void) list;
|
||||
(void) nent;
|
||||
(void) sig;
|
||||
|
||||
rtems_set_errno_and_return_minus_one( ENOSYS );
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -71,6 +71,8 @@ int _POSIX_Thread_Translate_sched_param(
|
||||
Thread_Configuration *config
|
||||
)
|
||||
{
|
||||
(void) param;
|
||||
|
||||
config->cpu_budget_operations = NULL;
|
||||
|
||||
if ( policy == SCHED_FIFO ) {
|
||||
|
||||
@@ -58,6 +58,10 @@ static int _POSIX_Set_sched_param(
|
||||
Thread_queue_Context *queue_context
|
||||
)
|
||||
{
|
||||
#if !defined(RTEMS_POSIX_API)
|
||||
(void) policy;
|
||||
#endif
|
||||
|
||||
const Scheduler_Control *scheduler;
|
||||
int normal_prio;
|
||||
bool valid;
|
||||
|
||||
@@ -67,6 +67,10 @@ int sigprocmask(
|
||||
|
||||
return -1;
|
||||
#else
|
||||
(void) how;
|
||||
(void) set;
|
||||
(void) oset;
|
||||
|
||||
return -1;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -337,6 +337,8 @@ static void _Message_queue_MP_Send_response_packet (
|
||||
Thread_Control *the_thread
|
||||
)
|
||||
{
|
||||
(void) message_queue_id;
|
||||
|
||||
Message_queue_MP_Packet *the_packet;
|
||||
|
||||
switch ( operation ) {
|
||||
|
||||
@@ -196,6 +196,8 @@ static void _Partition_MP_Send_response_packet (
|
||||
Thread_Control *the_thread
|
||||
)
|
||||
{
|
||||
(void) partition_id;
|
||||
|
||||
Partition_MP_Packet *the_packet;
|
||||
|
||||
switch ( operation ) {
|
||||
|
||||
@@ -177,6 +177,8 @@ static void _Semaphore_MP_Send_response_packet (
|
||||
Thread_Control *the_thread
|
||||
)
|
||||
{
|
||||
(void) semaphore_id;
|
||||
|
||||
Semaphore_MP_Packet *the_packet;
|
||||
|
||||
switch ( operation ) {
|
||||
|
||||
@@ -49,6 +49,8 @@ static void _Exception_Raise_handler(
|
||||
ISR_lock_Context *lock_context
|
||||
)
|
||||
{
|
||||
(void) action;
|
||||
|
||||
_Thread_State_release( executing, lock_context );
|
||||
raise( raise_signal );
|
||||
_Thread_State_acquire( executing, lock_context );
|
||||
@@ -64,6 +66,8 @@ void _Exception_Raise_signal(
|
||||
Internal_errors_t code
|
||||
)
|
||||
{
|
||||
(void) always_set_to_false;
|
||||
|
||||
CPU_Exception_frame *ef;
|
||||
Per_CPU_Control *cpu_self = _Per_CPU_Get();
|
||||
bool system_up;
|
||||
|
||||
@@ -346,6 +346,7 @@ void _MPCI_Receive_server(
|
||||
Thread_Entry_numeric_type ignored
|
||||
)
|
||||
{
|
||||
(void) ignored;
|
||||
|
||||
MP_packet_Prefix *the_packet;
|
||||
MPCI_Packet_processor the_function;
|
||||
|
||||
@@ -47,6 +47,8 @@ void _Objects_Namespace_remove_string(
|
||||
Objects_Control *the_object
|
||||
)
|
||||
{
|
||||
(void) information;
|
||||
|
||||
char *name;
|
||||
|
||||
_Assert( _Objects_Has_string_name( information ) );
|
||||
|
||||
@@ -173,6 +173,8 @@ _Scheduler_EDF_SMP_Challenge_highest_ready(
|
||||
RBTree_Control *ready_queue
|
||||
)
|
||||
{
|
||||
(void) self;
|
||||
|
||||
Scheduler_EDF_SMP_Node *other;
|
||||
|
||||
other = (Scheduler_EDF_SMP_Node *) _RBTree_Minimum( ready_queue );
|
||||
@@ -826,6 +828,8 @@ static inline void _Scheduler_EDF_SMP_Do_set_affinity(
|
||||
void *arg
|
||||
)
|
||||
{
|
||||
(void) context;
|
||||
|
||||
Scheduler_EDF_SMP_Node *node;
|
||||
const uint8_t *rqi;
|
||||
|
||||
@@ -859,6 +863,8 @@ void _Scheduler_EDF_SMP_Pin(
|
||||
struct Per_CPU_Control *cpu
|
||||
)
|
||||
{
|
||||
(void) thread;
|
||||
|
||||
Scheduler_EDF_SMP_Node *node;
|
||||
uint8_t rqi;
|
||||
|
||||
@@ -881,6 +887,8 @@ void _Scheduler_EDF_SMP_Unpin(
|
||||
struct Per_CPU_Control *cpu
|
||||
)
|
||||
{
|
||||
(void) thread;
|
||||
|
||||
Scheduler_EDF_SMP_Node *node;
|
||||
|
||||
(void) scheduler;
|
||||
|
||||
@@ -345,6 +345,8 @@ static inline void _Scheduler_strong_APA_Insert_ready(
|
||||
Priority_Control insert_priority
|
||||
)
|
||||
{
|
||||
(void) insert_priority;
|
||||
|
||||
Scheduler_strong_APA_Context *self;
|
||||
Scheduler_strong_APA_Node *node;
|
||||
|
||||
@@ -545,6 +547,8 @@ static inline void _Scheduler_strong_APA_Extract_from_ready(
|
||||
Scheduler_Node *node_to_extract
|
||||
)
|
||||
{
|
||||
(void) context;
|
||||
|
||||
Scheduler_strong_APA_Node *node;
|
||||
|
||||
node = _Scheduler_strong_APA_Node_downcast( node_to_extract );
|
||||
@@ -861,6 +865,8 @@ static inline void _Scheduler_strong_APA_Do_set_affinity(
|
||||
void *arg
|
||||
)
|
||||
{
|
||||
(void) context;
|
||||
|
||||
Scheduler_strong_APA_Node *node;
|
||||
|
||||
node = _Scheduler_strong_APA_Node_downcast( node_base );
|
||||
|
||||
@@ -42,6 +42,8 @@
|
||||
|
||||
static void _SMP_Do_nothing_action( void *arg )
|
||||
{
|
||||
(void) arg;
|
||||
|
||||
/* Do nothing */
|
||||
}
|
||||
|
||||
|
||||
@@ -46,6 +46,10 @@ void *_Stack_Allocator_allocate_for_idle_static(
|
||||
size_t *storage_size
|
||||
)
|
||||
{
|
||||
#if !defined(RTEMS_SMP)
|
||||
(void) cpu_index;
|
||||
#endif
|
||||
|
||||
size_t size;
|
||||
|
||||
size = _Stack_Allocator_allocate_for_idle_storage_size;
|
||||
|
||||
@@ -91,6 +91,8 @@ static void _Thread_Global_construction( Thread_Control *executing )
|
||||
*/
|
||||
INIT_NAME();
|
||||
}
|
||||
#else
|
||||
(void) executing;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -444,10 +444,8 @@ 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;
|
||||
@@ -492,6 +490,9 @@ static void _Thread_queue_Priority_do_enqueue(
|
||||
Thread_queue_Heads *heads
|
||||
)
|
||||
{
|
||||
(void) queue;
|
||||
(void) queue_context;
|
||||
|
||||
#if defined(RTEMS_SMP)
|
||||
Chain_Node *wait_node;
|
||||
const Chain_Node *wait_tail;
|
||||
@@ -523,9 +524,6 @@ 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;
|
||||
|
||||
@@ -548,6 +546,8 @@ static void _Thread_queue_Priority_do_extract(
|
||||
Thread_Control *the_thread
|
||||
)
|
||||
{
|
||||
(void) queue;
|
||||
|
||||
#if defined(RTEMS_SMP)
|
||||
Chain_Node *wait_node;
|
||||
const Chain_Node *wait_tail;
|
||||
@@ -574,8 +574,6 @@ 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;
|
||||
|
||||
@@ -942,7 +940,11 @@ static void _Thread_queue_Priority_inherit_do_enqueue_change(
|
||||
void *arg
|
||||
)
|
||||
{
|
||||
(void) priority_group_order;
|
||||
|
||||
#if defined(RTEMS_SMP)
|
||||
(void) priority_actions;
|
||||
|
||||
Scheduler_Node *scheduler_node_of_owner;
|
||||
|
||||
scheduler_node_of_owner = arg;
|
||||
@@ -957,8 +959,6 @@ 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;
|
||||
@@ -1157,6 +1157,8 @@ static void _Thread_queue_Priority_inherit_do_extract(
|
||||
Thread_Control *the_thread
|
||||
)
|
||||
{
|
||||
(void) queue;
|
||||
|
||||
#if defined(RTEMS_SMP)
|
||||
Chain_Node *wait_node;
|
||||
const Chain_Node *wait_tail;
|
||||
@@ -1205,8 +1207,6 @@ 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 );
|
||||
|
||||
@@ -1280,6 +1280,8 @@ static void _Thread_queue_Priority_inherit_do_surrender_add(
|
||||
void *arg
|
||||
)
|
||||
{
|
||||
(void) priority_actions;
|
||||
|
||||
Scheduler_Node *scheduler_node;
|
||||
Thread_Control *the_thread;
|
||||
|
||||
@@ -1319,6 +1321,8 @@ static void _Thread_queue_Priority_inherit_do_surrender_change(
|
||||
)
|
||||
{
|
||||
#if defined(RTEMS_SMP)
|
||||
(void) arg;
|
||||
|
||||
_Priority_Actions_add( priority_actions, priority_aggregation );
|
||||
#else
|
||||
_Thread_queue_Context_add_priority_update(
|
||||
@@ -1341,6 +1345,9 @@ static void _Thread_queue_Priority_inherit_do_surrender_change_2(
|
||||
void *arg
|
||||
)
|
||||
{
|
||||
(void) priority_actions;
|
||||
(void) arg;
|
||||
|
||||
_Scheduler_Node_set_priority(
|
||||
SCHEDULER_NODE_OF_WAIT_PRIORITY( priority_aggregation ),
|
||||
_Priority_Get_priority( priority_aggregation ),
|
||||
@@ -1357,6 +1364,8 @@ static void _Thread_queue_Priority_inherit_do_surrender(
|
||||
Thread_Control *the_thread
|
||||
)
|
||||
{
|
||||
(void) queue;
|
||||
|
||||
#if defined(RTEMS_SMP)
|
||||
Chain_Node *fifo_node;
|
||||
const Chain_Node *fifo_head;
|
||||
@@ -1467,8 +1476,6 @@ 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;
|
||||
|
||||
@@ -437,6 +437,8 @@ Thread_Cancel_state _Thread_Cancel(
|
||||
Thread_Life_state life_states_to_clear
|
||||
)
|
||||
{
|
||||
(void) executing;
|
||||
|
||||
ISR_lock_Context lock_context;
|
||||
Thread_Life_state previous;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user