]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm-vmstat-defer-the-refresh_zone_stat_thresholds-after-all-cpus-bringup-fix
authorSaurabh Sengar <ssengar@linux.microsoft.com>
Mon, 12 Aug 2024 06:13:40 +0000 (23:13 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 17 Aug 2024 00:53:08 +0000 (17:53 -0700)
move vmstat_late_init_done under CONFIG_SMP to fix variable 'defined but
not used' warning

Link: https://lkml.kernel.org/r/1723443220-20623-1-git-send-email-ssengar@linux.microsoft.com
Signed-off-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Cc: Mirsad Todorovac <mtodorovac69@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmstat.c

index e361c2b3a8bcddb807a5dd40504ba2ecbde3075f..f41984dc856fd5252e527f7c83360f9bf5517e6e 100644 (file)
@@ -31,7 +31,6 @@
 
 #include "internal.h"
 
-static int vmstat_late_init_done;
 #ifdef CONFIG_NUMA
 int sysctl_vm_numa_stat = ENABLE_NUMA_STAT;
 
@@ -1929,6 +1928,7 @@ static const struct seq_operations vmstat_op = {
 #ifdef CONFIG_SMP
 static DEFINE_PER_CPU(struct delayed_work, vmstat_work);
 int sysctl_stat_interval __read_mostly = HZ;
+static int vmstat_late_init_done;
 
 #ifdef CONFIG_PROC_FS
 static void refresh_vm_stats(struct work_struct *work)