[CRYPTO] api: Include sched.h for cond_resched in scatterwalk.h
Herbert Xu [Mon, 24 Dec 2007 00:54:24 +0000 (08:54 +0800)]
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 bd62431..224658b 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)
 {