From: Johannes Berg <johannes.berg@xxxxxxxxx> Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx> --- backport/backport-include/linux/bitops.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backport/backport-include/linux/bitops.h b/backport/backport-include/linux/bitops.h index 17bd8138ecd6..20890e198ee5 100644 --- a/backport/backport-include/linux/bitops.h +++ b/backport/backport-include/linux/bitops.h @@ -24,4 +24,8 @@ #define BITS_PER_TYPE(type) (sizeof(type) * BITS_PER_BYTE) #endif +#ifndef BITS_TO_BYTES +#define BITS_TO_BYTES(nr) __KERNEL_DIV_ROUND_UP(nr, BITS_PER_TYPE(char)) +#endif + #endif /* __BACKPORT_BITOPS_H */ -- 2.45.1