tracing: Fix incomplete locking when disabling buffered events
[platform/kernel/linux-starfive.git] / mm / show_mem.c
index 01f8e99..4b888b1 100644 (file)
@@ -186,7 +186,7 @@ static bool node_has_managed_zones(pg_data_t *pgdat, int max_zone_idx)
  * SHOW_MEM_FILTER_NODES: suppress nodes that are not allowed by current's
  *   cpuset.
  */
-void __show_free_areas(unsigned int filter, nodemask_t *nodemask, int max_zone_idx)
+static void show_free_areas(unsigned int filter, nodemask_t *nodemask, int max_zone_idx)
 {
        unsigned long free_pcp = 0;
        int cpu, nid;
@@ -251,9 +251,9 @@ void __show_free_areas(unsigned int filter, nodemask_t *nodemask, int max_zone_i
                        " writeback:%lukB"
                        " shmem:%lukB"
 #ifdef CONFIG_TRANSPARENT_HUGEPAGE
-                       " shmem_thp: %lukB"
-                       " shmem_pmdmapped: %lukB"
-                       " anon_thp: %lukB"
+                       " shmem_thp:%lukB"
+                       " shmem_pmdmapped:%lukB"
+                       " anon_thp:%lukB"
 #endif
                        " writeback_tmp:%lukB"
                        " kernel_stack:%lukB"
@@ -406,7 +406,7 @@ void __show_mem(unsigned int filter, nodemask_t *nodemask, int max_zone_idx)
        struct zone *zone;
 
        printk("Mem-Info:\n");
-       __show_free_areas(filter, nodemask, max_zone_idx);
+       show_free_areas(filter, nodemask, max_zone_idx);
 
        for_each_populated_zone(zone) {