
On Wed, 16 Mar 2022 at 09:40, Pierre-Clément Tosi ptosi@google.com wrote:
Import the header from version 5.16 of the kernel:
commit df0cc57e057f18e44dac8e6c18aba47ab53202f9
Inline the included <vdso/bits.h> and prevent U-Boot from including <asm/bitsperlong.h> as BITS_PER_LONG is defined in <asm/types.h>.
Remove now-duplicate definitions from <linux/bitops.h>.
Note: This brings extra compile-time checks through GENMASK_INPUT_CHECK.
Signed-off-by: Pierre-Clément Tosi ptosi@google.com Cc: Simon Glass sjg@chromium.org Cc: Tom Rini trini@konsulko.com
include/linux/bitops.h | 27 ++++++--------------- include/linux/bits.h | 55 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 20 deletions(-) create mode 100644 include/linux/bits.h
Reviewed-by: Simon Glass sjg@chromium.org