[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZO3DS4OrKeN78qLU@yury-ThinkPad>
Date: Tue, 29 Aug 2023 03:07:07 -0700
From: Yury Norov <yury.norov@...il.com>
To: linux-kernel@...r.kernel.org
Cc: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Rasmus Villemoes <linux@...musvillemoes.dk>
Subject: Re: [PATCH v4 8/8] bitmap: move bitmap_*_region() functions to
bitmap.h
> +/**
> + * bitmap_release_region - release allocated bitmap region
> + * @bitmap: array of unsigned longs corresponding to the bitmap
> + * @pos: beginning of bit region to release
> + * @order: region size (log base 2 of number of bits) to release
> + *
> + * This is the complement to __bitmap_find_free_region() and releases
> + * the found region (by clearing it in the bitmap).
> + */
> +static inline void bitmap_release_region(unsigned long *bitmap, unsigned int pos, int order)
> +{
> + bitmap_clear(bitmap, pos, pos + BIT(order));
> +}
This is a leftover after wrong rebase from previous buggy version. It
should be:
bitmap_clear(bitmap, pos, BIT(order));
Please igonre the patch, I'll resend it shourtly.
Sorry for noise.
Powered by blists - more mailing lists