projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[CRYPTO] scatterwalk: Restore custom sg chaining for now
[powerpc.git]
/
crypto
/
digest.c
diff --git
a/crypto/digest.c
b/crypto/digest.c
index
1bf7414
..
6fd43bd
100644
(file)
--- a/
crypto/digest.c
+++ b/
crypto/digest.c
@@
-12,6
+12,7
@@
*
*/
*
*/
+#include <crypto/scatterwalk.h>
#include <linux/mm.h>
#include <linux/errno.h>
#include <linux/hardirq.h>
#include <linux/mm.h>
#include <linux/errno.h>
#include <linux/hardirq.h>
@@
-20,9
+21,6
@@
#include <linux/module.h>
#include <linux/scatterlist.h>
#include <linux/module.h>
#include <linux/scatterlist.h>
-#include "internal.h"
-#include "scatterwalk.h"
-
static int init(struct hash_desc *desc)
{
struct crypto_tfm *tfm = crypto_hash_tfm(desc->tfm);
static int init(struct hash_desc *desc)
{
struct crypto_tfm *tfm = crypto_hash_tfm(desc->tfm);
@@
-41,7
+39,7
@@
static int update2(struct hash_desc *desc,
return 0;
for (;;) {
return 0;
for (;;) {
- struct page *pg = sg
->page
;
+ struct page *pg = sg
_page(sg)
;
unsigned int offset = sg->offset;
unsigned int l = sg->length;
unsigned int offset = sg->offset;
unsigned int l = sg->length;
@@
-77,7
+75,7
@@
static int update2(struct hash_desc *desc,
if (!nbytes)
break;
if (!nbytes)
break;
- sg = sg_next(sg);
+ sg = s
catterwalk_s
g_next(sg);
}
return 0;
}
return 0;