[PATCH 0/2] lib: compile generic bitrev based on GENERIC_BITREVERSE
From: Yury Norov
Date: Mon Apr 27 2026 - 16:58:10 EST
The bitrev.c is compiled based on CONFIG_BITREVERSE=y, but everything
inside is protected with CONFIG_GENERIC_BITREVERSE.
Make it simpler by switching the Makefile to compile lib/bitrev.c based
on the proper config. Also, cover generic bitrev.[ch] with BITOPS entry.
Based on bitmap-for-next:
https://github.com/norov/linux/tree/bitmap-for-next
Yury Norov (2):
lib: compile generic bitrev.c conditionally on the proper option
MAINTAINERS: BITOPS: include bitrev.[ch]
MAINTAINERS | 2 ++
lib/Makefile | 2 +-
lib/bitrev.c | 3 ---
3 files changed, 3 insertions(+), 4 deletions(-)
--
2.51.0