bitmap: Align documentation between bitmap_gather() and bitmap_scatter()
PATCH 1/1 bitmap: Align documentation between bitmap_gather() and bitmap_scatter()
First of all, the bitmap_scatter() mistakenly refers to itself for detailed explanation about the relationships of two. Instead of simply fixing this, align text in both making a cross-reference.
--- include/linux/bitmap.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
include/linux/bitmap.h +5 -3
@@ -560,9 +560,9 @@ void bitmap_replace(unsigned long *dst,* ...0..11...0..10 * dst: 0000001100000010 * -* A relationship exists between bitmap_scatter() and bitmap_gather(). +* A relationship exists between bitmap_scatter() and bitmap_gather(). See +* bitmap_gather() for the bitmap gather detailed operations. TL;DR: * bitmap_gather() can be seen as the 'reverse' bitmap_scatter() operation. -* See bitmap_scatter() for details related to this relationship. */ static __always_inline void bitmap_scatter(unsigned long *dst, const unsigned long *src,
@@ -608,7 +608,9 @@ void bitmap_scatter(unsigned long *dst, const unsigned long *src,* dst: 0000000000011010 * * A relationship exists between bitmap_gather() and bitmap_scatter(). See -* bitmap_scatter() for the bitmap scatter detailed operations. +* bitmap_scatter() for the bitmap scatter detailed operations. TL;DR: +* bitmap_scatter() can be seen as the 'reverse' bitmap_gather() operation. +* * Suppose scattered computed using bitmap_scatter(scattered, src, mask, n). * The operation bitmap_gather(result, scattered, mask, n) leads to a result * equal or equivalent to src.
Signature · 1 line
2.43.0.rc1.1336.g36b5255a03ac
Yury Norov
maintainerHi Andy,
Quoted 1 line · Andy Shevchenko
First of all, the
bitmap_scatter()mistakenly refers to itself for
It seems there's no 2nd concern. So I removed the 'First of all' part and applied in bitmap-for-next.
Thanks,
Yury
Quoted 38 lines
detailed explanation about the relationships of two. Instead of simply fixing this, align text in both making a cross-reference.
Fixes de5f84338970 ("lib/bitmap: Introduce bitmap_scatter() and bitmap_gather() helpers")Signed-off-by Andy Shevchenko <[email protected]>--- include/linux/bitmap.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)include/linux/bitmap.h +5
-3@@ -560,9 +560,9 @@ void bitmap_replace(unsigned long *dst,* ...0..11...0..10 * dst: 0000001100000010 * -* A relationship exists between bitmap_scatter() and bitmap_gather(). +* A relationship exists between bitmap_scatter() and bitmap_gather(). See +* bitmap_gather() for the bitmap gather detailed operations. TL;DR: * bitmap_gather() can be seen as the 'reverse' bitmap_scatter() operation. -* See bitmap_scatter() for details related to this relationship. */ static __always_inline void bitmap_scatter(unsigned long *dst, const unsigned long *src,@@ -608,7 +608,9 @@ void bitmap_scatter(unsigned long *dst, const unsigned long *src,* dst: 0000000000011010 * * A relationship exists between bitmap_gather() and bitmap_scatter(). See -* bitmap_scatter() for the bitmap scatter detailed operations. +* bitmap_scatter() for the bitmap scatter detailed operations. TL;DR: +* bitmap_scatter() can be seen as the 'reverse' bitmap_gather() operation. +* * Suppose scattered computed using bitmap_scatter(scattered, src, mask, n). * The operation bitmap_gather(result, scattered, mask, n) leads to a result * equal or equivalent to src. Signature · 1 line
2.43.0.rc1.1336.g36b5255a03ac
Quoted 7 lines · Yury Norov
Hi Andy,
Quoted 1 line · Andy Shevchenko
First of all, the
bitmap_scatter()mistakenly refers to itself forIt seems there's no 2nd concern. So I removed the 'First of all' part and applied in bitmap-for-next.
Thank you!
Signature · 2 lines
With Best Regards, Andy Shevchenko