* [PATCH 3/4] mm/vmstat: remove unused header cpumask.h
@ 2016-06-02 6:15 ` Geliang Tang
0 siblings, 0 replies; 18+ messages in thread
From: Geliang Tang @ 2016-06-02 6:15 UTC (permalink / raw)
To: Andrew Morton, Vlastimil Babka, Michal Hocko, Christoph Lameter,
Mel Gorman, Joonsoo Kim, Hugh Dickins
Cc: Geliang Tang, linux-mm, linux-kernel
Remove unused header cpumask.h from mm/vmstat.c.
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
---
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
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH 4/4] mm/zsmalloc: remove unused header cpumask.h
2016-06-02 6:15 ` Geliang Tang
@ 2016-06-02 6:15 ` Geliang Tang
-1 siblings, 0 replies; 18+ messages in thread
From: Geliang Tang @ 2016-06-02 6:15 UTC (permalink / raw)
To: Minchan Kim, Nitin Gupta, Sergey Senozhatsky, Andrew Morton
Cc: Geliang Tang, linux-mm, linux-kernel
Remove unused header cpumask.h from mm/zsmalloc.c.
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
---
mm/zsmalloc.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index b6d4f25..a93327e 100644
--- a/mm/zsmalloc.c
+++ b/mm/zsmalloc.c
@@ -57,7 +57,6 @@
#include <linux/slab.h>
#include <asm/tlbflush.h>
#include <asm/pgtable.h>
-#include <linux/cpumask.h>
#include <linux/cpu.h>
#include <linux/vmalloc.h>
#include <linux/preempt.h>
--
1.9.1
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH 4/4] mm/zsmalloc: remove unused header cpumask.h
@ 2016-06-02 6:15 ` Geliang Tang
0 siblings, 0 replies; 18+ messages in thread
From: Geliang Tang @ 2016-06-02 6:15 UTC (permalink / raw)
To: Minchan Kim, Nitin Gupta, Sergey Senozhatsky, Andrew Morton
Cc: Geliang Tang, linux-mm, linux-kernel
Remove unused header cpumask.h from mm/zsmalloc.c.
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
---
mm/zsmalloc.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index b6d4f25..a93327e 100644
--- a/mm/zsmalloc.c
+++ b/mm/zsmalloc.c
@@ -57,7 +57,6 @@
#include <linux/slab.h>
#include <asm/tlbflush.h>
#include <asm/pgtable.h>
-#include <linux/cpumask.h>
#include <linux/cpu.h>
#include <linux/vmalloc.h>
#include <linux/preempt.h>
--
1.9.1
^ permalink raw reply related [flat|nested] 18+ messages in thread
* Re: [PATCH 4/4] mm/zsmalloc: remove unused header cpumask.h
2016-06-02 6:15 ` Geliang Tang
@ 2016-06-02 7:10 ` Sergey Senozhatsky
-1 siblings, 0 replies; 18+ messages in thread
From: Sergey Senozhatsky @ 2016-06-02 7:10 UTC (permalink / raw)
To: Geliang Tang
Cc: Minchan Kim, Nitin Gupta, Sergey Senozhatsky, Andrew Morton,
linux-mm, linux-kernel
On (06/02/16 14:15), Geliang Tang wrote:
> Remove unused header cpumask.h from mm/zsmalloc.c.
>
> Signed-off-by: Geliang Tang <geliangtang@gmail.com>
> ---
> mm/zsmalloc.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
> index b6d4f25..a93327e 100644
> --- a/mm/zsmalloc.c
> +++ b/mm/zsmalloc.c
> @@ -57,7 +57,6 @@
> #include <linux/slab.h>
> #include <asm/tlbflush.h>
> #include <asm/pgtable.h>
> -#include <linux/cpumask.h>
> #include <linux/cpu.h>
> #include <linux/vmalloc.h>
> #include <linux/preempt.h>
NAK. I don't think it's "unused".
zs_register_cpu_notifier()
for_each_online_cpu()
which is coming from include/linux/cpumask.h
#define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask)
-ss
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 4/4] mm/zsmalloc: remove unused header cpumask.h
@ 2016-06-02 7:10 ` Sergey Senozhatsky
0 siblings, 0 replies; 18+ messages in thread
From: Sergey Senozhatsky @ 2016-06-02 7:10 UTC (permalink / raw)
To: Geliang Tang
Cc: Minchan Kim, Nitin Gupta, Sergey Senozhatsky, Andrew Morton,
linux-mm, linux-kernel
On (06/02/16 14:15), Geliang Tang wrote:
> Remove unused header cpumask.h from mm/zsmalloc.c.
>
> Signed-off-by: Geliang Tang <geliangtang@gmail.com>
> ---
> mm/zsmalloc.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
> index b6d4f25..a93327e 100644
> --- a/mm/zsmalloc.c
> +++ b/mm/zsmalloc.c
> @@ -57,7 +57,6 @@
> #include <linux/slab.h>
> #include <asm/tlbflush.h>
> #include <asm/pgtable.h>
> -#include <linux/cpumask.h>
> #include <linux/cpu.h>
> #include <linux/vmalloc.h>
> #include <linux/preempt.h>
NAK. I don't think it's "unused".
zs_register_cpu_notifier()
for_each_online_cpu()
which is coming from include/linux/cpumask.h
#define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask)
-ss
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 3/4] mm/vmstat: remove unused header cpumask.h
2016-06-02 6:15 ` Geliang Tang
@ 2016-06-02 6:44 ` Michal Hocko
-1 siblings, 0 replies; 18+ messages in thread
From: Michal Hocko @ 2016-06-02 6:44 UTC (permalink / raw)
To: Geliang Tang
Cc: Andrew Morton, Vlastimil Babka, Christoph Lameter, Mel Gorman,
Joonsoo Kim, Hugh Dickins, linux-mm, linux-kernel
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@gmail.com>
> ---
> 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
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 3/4] mm/vmstat: remove unused header cpumask.h
@ 2016-06-02 6:44 ` Michal Hocko
0 siblings, 0 replies; 18+ messages in thread
From: Michal Hocko @ 2016-06-02 6:44 UTC (permalink / raw)
To: Geliang Tang
Cc: Andrew Morton, Vlastimil Babka, Christoph Lameter, Mel Gorman,
Joonsoo Kim, Hugh Dickins, linux-mm, linux-kernel
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@gmail.com>
> ---
> 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
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 3/4] mm/vmstat: remove unused header cpumask.h
2016-06-02 6:15 ` Geliang Tang
@ 2016-06-02 13:46 ` Christoph Lameter
-1 siblings, 0 replies; 18+ messages in thread
From: Christoph Lameter @ 2016-06-02 13:46 UTC (permalink / raw)
To: Geliang Tang
Cc: Andrew Morton, Vlastimil Babka, Michal Hocko, Mel Gorman,
Joonsoo Kim, Hugh Dickins, linux-mm, linux-kernel
On Thu, 2 Jun 2016, Geliang Tang wrote:
> Remove unused header cpumask.h from mm/vmstat.c.
cpu.h by necessity already includes cpumask.h. So I guess its ok.
Acked-by: Christoph Lameter <cl@linux.com>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 3/4] mm/vmstat: remove unused header cpumask.h
@ 2016-06-02 13:46 ` Christoph Lameter
0 siblings, 0 replies; 18+ messages in thread
From: Christoph Lameter @ 2016-06-02 13:46 UTC (permalink / raw)
To: Geliang Tang
Cc: Andrew Morton, Vlastimil Babka, Michal Hocko, Mel Gorman,
Joonsoo Kim, Hugh Dickins, linux-mm, linux-kernel
On Thu, 2 Jun 2016, Geliang Tang wrote:
> Remove unused header cpumask.h from mm/vmstat.c.
cpu.h by necessity already includes cpumask.h. So I guess its ok.
Acked-by: Christoph Lameter <cl@linux.com>
^ permalink raw reply [flat|nested] 18+ messages in thread