kernel.h: Move upper_*_bits() and lower_*_bits() to wordpart.h
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 14 Feb 2024 17:26:32 +0000 (19:26 +0200)
committerKees Cook <keescook@chromium.org>
Thu, 29 Feb 2024 21:38:01 +0000 (13:38 -0800)
commitadeb04362d74188c1e22ccb824b15a0a7b3de2f4
tree3cba47782f69c2910a1d754623b13b49daffcae1
parentde2683e7fdac0c33c4c2c115e69dbbbe904a2224
kernel.h: Move upper_*_bits() and lower_*_bits() to wordpart.h

The wordpart.h header is collecting APIs related to the handling
parts of the word (usually in byte granularity). The upper_*_bits()
and lower_*_bits() are good candidates to be moved to there.

This helps to clean up header dependency hell with regard to kernel.h
as the latter gathers completely unrelated stuff together and slows
down compilation (especially when it's included into other header).

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240214172752.3605073-1-andriy.shevchenko@linux.intel.com
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
include/linux/kernel.h
include/linux/wordpart.h