lkml.org 
[lkml]   [2023]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] bitmap: Fix a typo ("identify map")
On Mon, Aug 14, 2023 at 07:37:08PM +0200, Jonathan Neuschäfer wrote:
> A map in which each element is mapped to itself is called an "identity
> map".
>
> Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Applied in bitmap-for-next. Thanks!

> ---
>
> v2:
> - Add R-b
> ---
> lib/bitmap.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/lib/bitmap.c b/lib/bitmap.c
> index ddb31015e38ae..24284caadbcc6 100644
> --- a/lib/bitmap.c
> +++ b/lib/bitmap.c
> @@ -988,7 +988,7 @@ static int bitmap_pos_to_ord(const unsigned long *buf, unsigned int pos, unsigne
> * to @dst.
> *
> * The positions of unset bits in @old are mapped to themselves
> - * (the identify map).
> + * (the identity map).
> *
> * Apply the above specified mapping to @src, placing the result in
> * @dst, clearing any bits previously set in @dst.
> @@ -1037,7 +1037,7 @@ EXPORT_SYMBOL(bitmap_remap);
> * the position of the m-th set bit in @new, where m == n % w.
> *
> * The positions of unset bits in @old are mapped to themselves
> - * (the identify map).
> + * (the identity map).
> *
> * Apply the above specified mapping to bit position @oldbit, returning
> * the new bit position.
> --
> 2.40.1

\
 
 \ /
  Last update: 2023-08-14 20:28    [W:0.042 / U:0.568 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site