Skip to contentSkip to conversation

zsmalloc: Include linux/sched.h to fix build error

PATCH In review Guenter Roeck 2 participants 2 messages Mar 11, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 zsmalloc: Include linux/sched.h to fix build error

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 <[email protected]>
---
 mm/zsmalloc.c | 1 +
 1 file changed, 1 insertion(+)
mm/zsmalloc.c +1 -0
index 73400f0..b663a8b 100644
@@ -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>
 
Signature · 7 lines
2.1.0

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
maintainer
#1 lore raw

Hello Guenter,

Quoted 10 lines · 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 <[email protected]>

Thanks for the fixing!

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

Thanks.

Signature · 8 lines
Kind regards,
Minchan Kim

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>