summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-08-23 11:57:11 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-08-26 10:02:53 +0200
commitdb0e05ff6f6f9d3738c10c80bf5faaea2a0a4fa8 (patch)
treed5d29ea79cdd066425373c82545c330e4d8adad0
parentscore: PR2140: Fix _Thread_queue_Process_timeout() (diff)
downloadrtems-db0e05ff6f6f9d3738c10c80bf5faaea2a0a4fa8.tar.bz2
score: Delete unused function parameter
-rw-r--r--cpukit/score/include/rtems/score/threadqimpl.h6
-rw-r--r--cpukit/score/src/threadqextract.c4
-rw-r--r--cpukit/score/src/threadqextractfifo.c1
-rw-r--r--cpukit/score/src/threadqextractpriority.c1
-rw-r--r--cpukit/score/src/threadqrequeue.c2
5 files changed, 5 insertions, 9 deletions
diff --git a/cpukit/score/include/rtems/score/threadqimpl.h b/cpukit/score/include/rtems/score/threadqimpl.h
index 11de27872e..78376b065c 100644
--- a/cpukit/score/include/rtems/score/threadqimpl.h
+++ b/cpukit/score/include/rtems/score/threadqimpl.h
@@ -266,7 +266,6 @@ Thread_blocking_operation_States _Thread_queue_Enqueue_priority (
* @retval false Otherwise.
*/
bool _Thread_queue_Extract_priority_helper(
- Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread,
bool requeuing
);
@@ -277,8 +276,8 @@ bool _Thread_queue_Extract_priority_helper(
* This macro wraps the underlying call and hides the requeuing argument.
*/
-#define _Thread_queue_Extract_priority( _the_thread_queue, _the_thread ) \
- _Thread_queue_Extract_priority_helper( _the_thread_queue, _the_thread, false )
+#define _Thread_queue_Extract_priority( _the_thread ) \
+ _Thread_queue_Extract_priority_helper( _the_thread, false )
/**
* @brief Get highest priority thread on the_thread_queue.
*
@@ -339,7 +338,6 @@ Thread_blocking_operation_States _Thread_queue_Enqueue_fifo (
* and cancels any timeouts associated with this blocking.
*/
bool _Thread_queue_Extract_fifo(
- Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread
);
diff --git a/cpukit/score/src/threadqextract.c b/cpukit/score/src/threadqextract.c
index b2da4f0f87..9ea9cba89a 100644
--- a/cpukit/score/src/threadqextract.c
+++ b/cpukit/score/src/threadqextract.c
@@ -31,8 +31,8 @@ bool _Thread_queue_Extract(
* is a macro and the underlying methods do not have the same signature.
*/
if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
- return _Thread_queue_Extract_priority( the_thread_queue, the_thread );
+ return _Thread_queue_Extract_priority( the_thread );
else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */
- return _Thread_queue_Extract_fifo( the_thread_queue, the_thread );
+ return _Thread_queue_Extract_fifo( the_thread );
}
diff --git a/cpukit/score/src/threadqextractfifo.c b/cpukit/score/src/threadqextractfifo.c
index 21c98276ab..0cc1ee71b9 100644
--- a/cpukit/score/src/threadqextractfifo.c
+++ b/cpukit/score/src/threadqextractfifo.c
@@ -26,7 +26,6 @@
#include <rtems/score/watchdogimpl.h>
bool _Thread_queue_Extract_fifo(
- Thread_queue_Control *the_thread_queue __attribute__((unused)),
Thread_Control *the_thread
)
{
diff --git a/cpukit/score/src/threadqextractpriority.c b/cpukit/score/src/threadqextractpriority.c
index d22fdf2836..09a2f9092e 100644
--- a/cpukit/score/src/threadqextractpriority.c
+++ b/cpukit/score/src/threadqextractpriority.c
@@ -25,7 +25,6 @@
#include <rtems/score/watchdogimpl.h>
bool _Thread_queue_Extract_priority_helper(
- Thread_queue_Control *the_thread_queue __attribute__((unused)),
Thread_Control *the_thread,
bool requeuing
)
diff --git a/cpukit/score/src/threadqrequeue.c b/cpukit/score/src/threadqrequeue.c
index 840699e016..829e3cdea4 100644
--- a/cpukit/score/src/threadqrequeue.c
+++ b/cpukit/score/src/threadqrequeue.c
@@ -45,7 +45,7 @@ void _Thread_queue_Requeue(
_ISR_Disable( level );
if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
_Thread_queue_Enter_critical_section( tq );
- _Thread_queue_Extract_priority_helper( tq, the_thread, true );
+ _Thread_queue_Extract_priority_helper( the_thread, true );
(void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
}
_ISR_Enable( level );