Commit aa52619c authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

lib/sort.c: fix kernel-doc notation warnings

Fix kernel-doc notation in lib/sort.c by using correct function parameter
names.

  lib/sort.c:59: warning: Excess function parameter 'size' description in 'swap_words_32'
  lib/sort.c:83: warning: Excess function parameter 'size' description in 'swap_words_64'
  lib/sort.c:110: warning: Excess function parameter 'size' description in 'swap_bytes'

Link: http://lkml.kernel.org/r/60e25d3d-68d1-bde2-3b39-e4baa0b14907@infradead.org
Fixes: 37d0ec34 ("lib/sort: make swap functions more generic")
Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Cc: George Spelvin <lkml@sdf.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 91173c6e
...@@ -43,8 +43,9 @@ static bool is_aligned(const void *base, size_t size, unsigned char align) ...@@ -43,8 +43,9 @@ static bool is_aligned(const void *base, size_t size, unsigned char align)
/** /**
* swap_words_32 - swap two elements in 32-bit chunks * swap_words_32 - swap two elements in 32-bit chunks
* @a, @b: pointers to the elements * @a: pointer to the first element to swap
* @size: element size (must be a multiple of 4) * @b: pointer to the second element to swap
* @n: element size (must be a multiple of 4)
* *
* Exchange the two objects in memory. This exploits base+index addressing, * Exchange the two objects in memory. This exploits base+index addressing,
* which basically all CPUs have, to minimize loop overhead computations. * which basically all CPUs have, to minimize loop overhead computations.
...@@ -65,8 +66,9 @@ static void swap_words_32(void *a, void *b, size_t n) ...@@ -65,8 +66,9 @@ static void swap_words_32(void *a, void *b, size_t n)
/** /**
* swap_words_64 - swap two elements in 64-bit chunks * swap_words_64 - swap two elements in 64-bit chunks
* @a, @b: pointers to the elements * @a: pointer to the first element to swap
* @size: element size (must be a multiple of 8) * @b: pointer to the second element to swap
* @n: element size (must be a multiple of 8)
* *
* Exchange the two objects in memory. This exploits base+index * Exchange the two objects in memory. This exploits base+index
* addressing, which basically all CPUs have, to minimize loop overhead * addressing, which basically all CPUs have, to minimize loop overhead
...@@ -100,8 +102,9 @@ static void swap_words_64(void *a, void *b, size_t n) ...@@ -100,8 +102,9 @@ static void swap_words_64(void *a, void *b, size_t n)
/** /**
* swap_bytes - swap two elements a byte at a time * swap_bytes - swap two elements a byte at a time
* @a, @b: pointers to the elements * @a: pointer to the first element to swap
* @size: element size * @b: pointer to the second element to swap
* @n: element size
* *
* This is the fallback if alignment doesn't allow using larger chunks. * This is the fallback if alignment doesn't allow using larger chunks.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment