crypto: don't pollute the global namespace with sg_next()
authorJens Axboe <jens.axboe@oracle.com>
Wed, 9 May 2007 06:58:32 +0000 (08:58 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 16 Oct 2007 09:07:09 +0000 (11:07 +0200)
It's a subsystem function, prefix it as such.

Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
crypto/digest.c
crypto/scatterwalk.c
crypto/scatterwalk.h

index 1bf7414aeb9e4e212beda804cf270aa310548c5d..e56de6748b155eadf0f749c801e911a9a2d23577 100644 (file)
@@ -77,7 +77,7 @@ static int update2(struct hash_desc *desc,
 
                if (!nbytes)
                        break;
-               sg = sg_next(sg);
+               sg = scatterwalk_sg_next(sg);
        }
 
        return 0;
index 3052f6507f53f3118de2adfc818da7d56e78b3f4..d6852c33cfb78f2ac2300280f90dadc6acb3b5a7 100644 (file)
@@ -62,7 +62,7 @@ static void scatterwalk_pagedone(struct scatter_walk *walk, int out,
                walk->offset += PAGE_SIZE - 1;
                walk->offset &= PAGE_MASK;
                if (walk->offset >= walk->sg->offset + walk->sg->length)
-                       scatterwalk_start(walk, sg_next(walk->sg));
+                       scatterwalk_start(walk, scatterwalk_sg_next(walk->sg));
        }
 }
 
index 500a220ad908cbad83bc8f1a285a03c169d71961..9c73e37a42cef9ad9eb63133cf78a35ac78ae9fd 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "internal.h"
 
-static inline struct scatterlist *sg_next(struct scatterlist *sg)
+static inline struct scatterlist *scatterwalk_sg_next(struct scatterlist *sg)
 {
        return (++sg)->length ? sg : (void *)sg->page;
 }