Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab83407e authored by Jens Axboe's avatar Jens Axboe
Browse files

crypto: don't pollute the global namespace with sg_next()



It's a subsystem function, prefix it as such.

Acked-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 7e3da6c4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
+1 −1
Original line number Diff line number Diff line
@@ -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));
	}
}

+1 −1
Original line number Diff line number Diff line
@@ -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;
}