linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] zsmalloc: Include linux/sched.h to fix build error
@ 2015-03-11  3:41 Guenter Roeck
  2015-03-11  4:32 ` Minchan Kim
  0 siblings, 1 reply; 2+ messages in thread
From: Guenter Roeck @ 2015-03-11  3:41 UTC (permalink / raw)
  To: Minchan Kim; +Cc: Nitin Gupta, linux-mm, linux-kernel, Guenter Roeck

Fix:

mm/zsmalloc.c: In function '__zs_compact':
mm/zsmalloc.c:1747:2: error: implicit declaration of function 'cond_resched'

seen when building mips:allmodconfig.

Fixes: c4d204c38734 ("zsmalloc: support compaction")
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
 mm/zsmalloc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index 73400f0..b663a8b 100644
--- a/mm/zsmalloc.c
+++ b/mm/zsmalloc.c
@@ -94,6 +94,7 @@
 #include <linux/spinlock.h>
 #include <linux/types.h>
 #include <linux/debugfs.h>
+#include <linux/sched.h>
 #include <linux/zsmalloc.h>
 #include <linux/zpool.h>
 
-- 
2.1.0

--
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] 2+ messages in thread

* Re: [PATCH -next] zsmalloc: Include linux/sched.h to fix build error
  2015-03-11  3:41 [PATCH -next] zsmalloc: Include linux/sched.h to fix build error Guenter Roeck
@ 2015-03-11  4:32 ` Minchan Kim
  0 siblings, 0 replies; 2+ messages in thread
From: Minchan Kim @ 2015-03-11  4:32 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: Nitin Gupta, linux-mm, linux-kernel

Hello Guenter,

On Tue, Mar 10, 2015 at 08:41:02PM -0700, Guenter Roeck wrote:
> Fix:
> 
> mm/zsmalloc.c: In function '__zs_compact':
> mm/zsmalloc.c:1747:2: error: implicit declaration of function 'cond_resched'
> 
> seen when building mips:allmodconfig.
> 
> Fixes: c4d204c38734 ("zsmalloc: support compaction")
> Cc: Minchan Kim <minchan@kernel.org>
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>

Thanks for the fixing!

A few hours ago, Geert Uytterhoeven sent a patch.
http://www.spinics.net/lists/linux-mm/msg85571.html

Thanks.

-- 
Kind regards,
Minchan Kim

--
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] 2+ messages in thread

end of thread, other threads:[~2015-03-11  4:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-11  3:41 [PATCH -next] zsmalloc: Include linux/sched.h to fix build error Guenter Roeck
2015-03-11  4:32 ` Minchan Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox