* [PATCH] zsmalloc: use preempt.h for in_interrupt()
@ 2015-10-14 13:13 ` Sergey Senozhatsky
0 siblings, 0 replies; 4+ messages in thread
From: Sergey Senozhatsky @ 2015-10-14 13:13 UTC (permalink / raw)
To: Minchan Kim
Cc: Andrew Morton, linux-kernel, linux-mm, Sergey Senozhatsky,
Sergey Senozhatsky
A cosmetic change.
Commit c60369f01125 ("staging: zsmalloc: prevent mappping
in interrupt context") added in_interrupt() check to
zs_map_object() and 'hardirq.h' include; but in_interrupt()
macro is defined in 'preempt.h' not in 'hardirq.h', so include
it instead.
Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
---
mm/zsmalloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index 7ad5e54..4d5671d 100644
--- a/mm/zsmalloc.c
+++ b/mm/zsmalloc.c
@@ -58,7 +58,7 @@
#include <linux/cpumask.h>
#include <linux/cpu.h>
#include <linux/vmalloc.h>
-#include <linux/hardirq.h>
+#include <linux/preempt.h>
#include <linux/spinlock.h>
#include <linux/types.h>
#include <linux/debugfs.h>
--
2.6.1.134.g4b1fd35
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] zsmalloc: use preempt.h for in_interrupt()
@ 2015-10-14 13:13 ` Sergey Senozhatsky
0 siblings, 0 replies; 4+ messages in thread
From: Sergey Senozhatsky @ 2015-10-14 13:13 UTC (permalink / raw)
To: Minchan Kim
Cc: Andrew Morton, linux-kernel, linux-mm, Sergey Senozhatsky,
Sergey Senozhatsky
A cosmetic change.
Commit c60369f01125 ("staging: zsmalloc: prevent mappping
in interrupt context") added in_interrupt() check to
zs_map_object() and 'hardirq.h' include; but in_interrupt()
macro is defined in 'preempt.h' not in 'hardirq.h', so include
it instead.
Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
---
mm/zsmalloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index 7ad5e54..4d5671d 100644
--- a/mm/zsmalloc.c
+++ b/mm/zsmalloc.c
@@ -58,7 +58,7 @@
#include <linux/cpumask.h>
#include <linux/cpu.h>
#include <linux/vmalloc.h>
-#include <linux/hardirq.h>
+#include <linux/preempt.h>
#include <linux/spinlock.h>
#include <linux/types.h>
#include <linux/debugfs.h>
--
2.6.1.134.g4b1fd35
--
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] 4+ messages in thread
* Re: [PATCH] zsmalloc: use preempt.h for in_interrupt()
2015-10-14 13:13 ` Sergey Senozhatsky
@ 2015-10-15 2:24 ` Minchan Kim
-1 siblings, 0 replies; 4+ messages in thread
From: Minchan Kim @ 2015-10-15 2:24 UTC (permalink / raw)
To: Sergey Senozhatsky
Cc: Andrew Morton, linux-kernel, linux-mm, Sergey Senozhatsky
On Wed, Oct 14, 2015 at 10:13:20PM +0900, Sergey Senozhatsky wrote:
> A cosmetic change.
>
> Commit c60369f01125 ("staging: zsmalloc: prevent mappping
> in interrupt context") added in_interrupt() check to
> zs_map_object() and 'hardirq.h' include; but in_interrupt()
> macro is defined in 'preempt.h' not in 'hardirq.h', so include
> it instead.
>
> Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] zsmalloc: use preempt.h for in_interrupt()
@ 2015-10-15 2:24 ` Minchan Kim
0 siblings, 0 replies; 4+ messages in thread
From: Minchan Kim @ 2015-10-15 2:24 UTC (permalink / raw)
To: Sergey Senozhatsky
Cc: Andrew Morton, linux-kernel, linux-mm, Sergey Senozhatsky
On Wed, Oct 14, 2015 at 10:13:20PM +0900, Sergey Senozhatsky wrote:
> A cosmetic change.
>
> Commit c60369f01125 ("staging: zsmalloc: prevent mappping
> in interrupt context") added in_interrupt() check to
> zs_map_object() and 'hardirq.h' include; but in_interrupt()
> macro is defined in 'preempt.h' not in 'hardirq.h', so include
> it instead.
>
> Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Thanks.
--
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] 4+ messages in thread
end of thread, other threads:[~2015-10-15 2:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-14 13:13 [PATCH] zsmalloc: use preempt.h for in_interrupt() Sergey Senozhatsky
2015-10-14 13:13 ` Sergey Senozhatsky
2015-10-15 2:24 ` Minchan Kim
2015-10-15 2:24 ` Minchan Kim
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.