Skip to content

Commit

Permalink
crypto: don't pollute the global namespace with sg_next()
Browse files Browse the repository at this point in the history
It's a subsystem function, prefix it as such.

Acked-by: Herbert Xu <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Jens Axboe committed Oct 16, 2007
1 parent 7e3da6c commit ab83407
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crypto/digest.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion crypto/scatterwalk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

Expand Down
2 changes: 1 addition & 1 deletion crypto/scatterwalk.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ab83407

Please sign in to comment.