xarray: use BITS_PER_LONGS()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 23 Apr 2024 14:20:24 +0000 (17:20 +0300)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 6 May 2024 00:53:44 +0000 (17:53 -0700)
commitccde70f4d4baea4d2ebc3d646a0a4ab4cfdf683c
treef7a5a17b2782cf3801f38aaedd4f75c38a6e0777
parent91882c1617c15eb2a4e996b0822e0b9cbd854dea
xarray: use BITS_PER_LONGS()

Patch series "xarray: Clean up xarray.h".

Main portion of this change is to get rid of kernel.h included into other
globally available headers.  This decreases a dependency hell degree.  The
first patch makes it possible to avoid math.h to be included as bitops.h
is implied by bitmap.h.

This patch (of 2):

Use BITS_PER_LONGS() instead of open coded variant.

Link: https://lkml.kernel.org/r/20240423142204.2408923-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/xarray.h