]> err.no Git - linux-2.6/blobdiff - crypto/digest.c
[NET]: should explicitely initialize atomic_t field in struct dst_ops
[linux-2.6] / crypto / digest.c
index d3e827a141f11cf458d848e0e54c042895cc169e..6fd43bddd545e788546d868b097e3ad811867e76 100644 (file)
@@ -12,6 +12,7 @@
  *
  */
 
+#include <crypto/scatterwalk.h>
 #include <linux/mm.h>
 #include <linux/errno.h>
 #include <linux/hardirq.h>
@@ -20,8 +21,6 @@
 #include <linux/module.h>
 #include <linux/scatterlist.h>
 
-#include "internal.h"
-
 static int init(struct hash_desc *desc)
 {
        struct crypto_tfm *tfm = crypto_hash_tfm(desc->tfm);
@@ -76,7 +75,7 @@ static int update2(struct hash_desc *desc,
 
                if (!nbytes)
                        break;
-               sg = sg_next(sg);
+               sg = scatterwalk_sg_next(sg);
        }
 
        return 0;