Re: [PATCH 3/4] mm/vmstat: remove unused header cpumask.h

From: Michal Hocko
Date: Thu Jun 02 2016 - 02:44:36 EST


On Thu 02-06-16 14:15:35, Geliang Tang wrote:
> Remove unused header cpumask.h from mm/vmstat.c.

what about for_each_online_cpu? Maybe it will get included transitively
from other header but I guess it is better to have a direct include
because transitive includes lead to unexpected compilation issues.

> Signed-off-by: Geliang Tang <geliangtang@xxxxxxxxx>
> ---
> mm/vmstat.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/mm/vmstat.c b/mm/vmstat.c
> index 1b585f8..3653449 100644
> --- a/mm/vmstat.c
> +++ b/mm/vmstat.c
> @@ -15,7 +15,6 @@
> #include <linux/module.h>
> #include <linux/slab.h>
> #include <linux/cpu.h>
> -#include <linux/cpumask.h>
> #include <linux/vmstat.h>
> #include <linux/proc_fs.h>
> #include <linux/seq_file.h>
> --
> 1.9.1
>

--
Michal Hocko
SUSE Labs