[CRYPTO] api: Include sched.h for cond_resched in scatterwalk.h
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 24 Dec 2007 00:54:24 +0000 (08:54 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 10 Jan 2008 21:16:59 +0000 (08:16 +1100)
As Andrew Morton correctly points out, we need to explicitly include
sched.h as we use the function cond_resched in crypto/scatterwalk.h.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/crypto/scatterwalk.h

index bd62431c33bdbbc0651b6542a917303af8ada16a..224658b8d80689560e6ebf7c7bd94c41a2ea76bf 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/kernel.h>
 #include <linux/mm.h>
 #include <linux/scatterlist.h>
+#include <linux/sched.h>
 
 static inline enum km_type crypto_kmap_type(int out)
 {