kernel.h: split out mathematical helpers
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 16 Dec 2020 04:42:48 +0000 (20:42 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 16 Dec 2020 06:46:15 +0000 (22:46 -0800)
commitaa6159ab99a9ab5df835b4750b66cf132a5aa292
tree3f17a71f9853783e4b6eb00e6c835ef033f1ce75
parent0a571b085ff6dadf946b248133533d3ba68f6e31
kernel.h: split out mathematical helpers

kernel.h is being used as a dump for all kinds of stuff for a long time.
Here is the attempt to start cleaning it up by splitting out
mathematical helpers.

At the same time convert users in header and lib folder to use new
header.  Though for time being include new header back to kernel.h to
avoid twisted indirected includes for existing users.

[sfr@canb.auug.org.au: fix powerpc build]
Link: https://lkml.kernel.org/r/20201029150809.13059608@canb.auug.org.au
Link: https://lkml.kernel.org/r/20201028173212.41768-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: "Paul E. McKenney" <paulmck@kernel.org>
Cc: Trond Myklebust <trond.myklebust@hammerspace.com>
Cc: Jeff Layton <jlayton@kernel.org>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
15 files changed:
fs/nfs/callback_proc.c
include/linux/bitops.h
include/linux/dcache.h
include/linux/iommu-helper.h
include/linux/kernel.h
include/linux/math.h [new file with mode: 0644]
include/linux/rcu_node_tree.h
include/linux/units.h
lib/errname.c
lib/errseq.c
lib/find_bit.c
lib/math/div64.c
lib/math/int_pow.c
lib/math/int_sqrt.c
lib/math/reciprocal_div.c