rts: mark 'removeFromRunQueue' as static
authorSergei Trofimovich <siarheit@google.com>
Sun, 7 Feb 2016 17:33:02 +0000 (17:33 +0000)
committerSergei Trofimovich <siarheit@google.com>
Sun, 7 Feb 2016 20:27:27 +0000 (20:27 +0000)
Noticed by uselex.rb:
    removeFromRunQueue: [R]: exported from:
        ./rts/dist/build/Schedule.o

Signed-off-by: Sergei Trofimovich <siarheit@google.com>
rts/Schedule.c
rts/Schedule.h

index e3dd881..89c5cde 100644 (file)
@@ -557,7 +557,7 @@ run_thread:
  * Run queue operations
  * -------------------------------------------------------------------------- */
 
-void
+static void
 removeFromRunQueue (Capability *cap, StgTSO *tso)
 {
     if (tso->block_info.prev == END_TSO_QUEUE) {
index eb5135b..67e2fdc 100644 (file)
@@ -187,8 +187,7 @@ peekRunQueue (Capability *cap)
     return cap->run_queue_hd;
 }
 
-void removeFromRunQueue (Capability *cap, StgTSO *tso);
-extern void promoteInRunQueue (Capability *cap, StgTSO *tso);
+void promoteInRunQueue (Capability *cap, StgTSO *tso);
 
 /* Add a thread to the end of the blocked queue.
  */