2024-02-14 18:56:11

by Kees Cook

[permalink] [raw]
Subject: Re: [PATCH v1 1/1] kernel.h: Move upper_*_bits() and lower_*_bits() to wordpath.h

On Wed, 14 Feb 2024 19:26:32 +0200, Andy Shevchenko wrote:
> 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).
>
> [...]

Applied to for-next/hardening, thanks!

[1/1] kernel.h: Move upper_*_bits() and lower_*_bits() to wordpart.h
https://git.kernel.org/kees/c/9aa3bb490404

Take care,

--
Kees Cook