rts: mark 'ccs_mutex' and 'prof_arena' as static
authorSergei Trofimovich <siarheit@google.com>
Sun, 7 Feb 2016 18:00:00 +0000 (18:00 +0000)
committerSergei Trofimovich <siarheit@google.com>
Sun, 7 Feb 2016 20:27:53 +0000 (20:27 +0000)
Noticed by uselex.rb:
    ccs_mutex: [R]: exported from:
        ./rts/dist/build/Profiling.thr_p_o
    prof_arena: [R]: exported from:
        ./rts/dist/build/Profiling.p_o

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

index 4f2606c..5dca8c0 100644 (file)
@@ -29,7 +29,7 @@
 /*
  * Profiling allocation arena.
  */
-Arena *prof_arena;
+static Arena *prof_arena;
 
 /*
  * Global variables used to assign unique IDs to cc's, ccs's, and
@@ -59,7 +59,7 @@ CostCentre      *CC_LIST  = NULL;
 CostCentreStack *CCS_LIST = NULL;
 
 #ifdef THREADED_RTS
-Mutex ccs_mutex;
+static Mutex ccs_mutex;
 #endif
 
 /*