Thread (52 messages) 52 messages, 8 authors, 2024-04-02

Re: [PATCH net-next v5 14/21] lib/bitmap: add compile-time test for __assign_bit() optimization

From: Yury Norov <yury.norov@gmail.com>
Date: 2024-02-28 16:32:36
Also in: intel-wired-lan, linux-btrfs, linux-s390, lkml, ntfs3

On Thu, Feb 01, 2024 at 01:22:09PM +0100, Alexander Lobakin wrote:
Commit dc34d5036692 ("lib: test_bitmap: add compile-time
optimization/evaluations assertions") initially missed __assign_bit(),
which led to that quite a time passed before I realized it doesn't get
optimized at compilation time. Now that it does, add test for that just
to make sure nothing will break one day.
To make things more interesting, use bitmap_complement() and
bitmap_full(), thus checking their compile-time evaluation as well. And
remove the misleading comment mentioning the workaround removed recently
in favor of adding the whole file to GCov exceptions.

Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Signed-off-by: Yury Norov <yury.norov@gmail.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help