From: Saurabh Sengar Date: Mon, 12 Aug 2024 06:13:40 +0000 (-0700) Subject: mm-vmstat-defer-the-refresh_zone_stat_thresholds-after-all-cpus-bringup-fix X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a4addae0eaac0c7293a0d499f5e7d3d872cbbae7;p=users%2Fjedix%2Flinux-maple.git mm-vmstat-defer-the-refresh_zone_stat_thresholds-after-all-cpus-bringup-fix 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 Cc: Mirsad Todorovac Signed-off-by: Andrew Morton --- diff --git a/mm/vmstat.c b/mm/vmstat.c index e361c2b3a8bc..f41984dc856f 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c @@ -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)