summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDave Gordon <david.s.gordon@intel.com>2015-06-30 17:58:52 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2015-06-30 22:44:59 -0400
commit4dc7daf843f3914c9c0c7efb71b8f251c9c4636f (patch)
tree6ab6ea607b24bbeab8beb8e4ef562f991b418a12 /lib
parent6157dbbfbf9d8e4a2b6d4e5ee35e864ab9ee8414 (diff)
lib/scatterlist.c: fix kerneldoc for sg_pcopy_{to,from}_buffer()
The kerneldoc for the functions doesn't match the code; the last two parameters (buflen, skip) have been transposed, which is confusing, especially as they're both integral types and the compiler won't warn about swapping them. These functions and the kerneldoc were introduced in commit: df642cea lib/scatterlist: introduce sg_pcopy_from_buffer() ... Author: Akinobu Mita <akinobu.mita@gmail.com> Date: Mon Jul 8 16:01:54 2013 -0700 The only difference between sg_pcopy_{from,to}_buffer() and sg_copy_{from,to}_buffer() is an additional argument that specifies the number of bytes to skip the SG list before copying. The functions have the extra argument at the end, but the kerneldoc lists it in penultimate position. Signed-off-by: Dave Gordon <david.s.gordon@intel.com> Reviewed-by: Akinobu Mita <akinobu.mita@gmail.com> Cc: "Martin K. Petersen" <martin.petersen@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/scatterlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/scatterlist.c b/lib/scatterlist.c
index 99fbc2f238c4..965c36e7a5a4 100644
--- a/lib/scatterlist.c
+++ b/lib/scatterlist.c
@@ -729,8 +729,8 @@ EXPORT_SYMBOL(sg_copy_to_buffer);
729 * @sgl: The SG list 729 * @sgl: The SG list
730 * @nents: Number of SG entries 730 * @nents: Number of SG entries
731 * @buf: Where to copy from 731 * @buf: Where to copy from
732 * @skip: Number of bytes to skip before copying
733 * @buflen: The number of bytes to copy 732 * @buflen: The number of bytes to copy
733 * @skip: Number of bytes to skip before copying
734 * 734 *
735 * Returns the number of copied bytes. 735 * Returns the number of copied bytes.
736 * 736 *
@@ -747,8 +747,8 @@ EXPORT_SYMBOL(sg_pcopy_from_buffer);
747 * @sgl: The SG list 747 * @sgl: The SG list
748 * @nents: Number of SG entries 748 * @nents: Number of SG entries
749 * @buf: Where to copy to 749 * @buf: Where to copy to
750 * @skip: Number of bytes to skip before copying
751 * @buflen: The number of bytes to copy 750 * @buflen: The number of bytes to copy
751 * @skip: Number of bytes to skip before copying
752 * 752 *
753 * Returns the number of copied bytes. 753 * Returns the number of copied bytes.
754 * 754 *