All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yury Norov <yury.norov@gmail.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>, g@thinkpad
Cc: linux-kernel@vger.kernel.org,
	Rasmus Villemoes <linux@rasmusvillemoes.dk>
Subject: Re: [PATCH v1 1/1] bitmap: Align documentation between bitmap_gather() and bitmap_scatter()
Date: Mon, 3 Feb 2025 12:01:37 -0500	[thread overview]
Message-ID: <Z6D2aLzVwNh-jhc6@thinkpad> (raw)
In-Reply-To: <20250203121919.3184930-1-andriy.shevchenko@linux.intel.com>

Hi Andy,

On Mon, Feb 03, 2025 at 02:19:19PM +0200, Andy Shevchenko wrote:
> 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

> 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 <andriy.shevchenko@linux.intel.com>
> ---
>  include/linux/bitmap.h | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)
> 
> diff --git a/include/linux/bitmap.h b/include/linux/bitmap.h
> index 2026953e2c4e..595217b7a6e7 100644
> --- a/include/linux/bitmap.h
> +++ b/include/linux/bitmap.h
> @@ -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.
> -- 
> 2.43.0.rc1.1336.g36b5255a03ac

  reply	other threads:[~2025-02-03 17:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-03 12:19 [PATCH v1 1/1] bitmap: Align documentation between bitmap_gather() and bitmap_scatter() Andy Shevchenko
2025-02-03 17:01 ` Yury Norov [this message]
2025-02-03 17:20   ` Andy Shevchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Z6D2aLzVwNh-jhc6@thinkpad \
    --to=yury.norov@gmail.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=g@thinkpad \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@rasmusvillemoes.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.