public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Yury Norov <ynorov@nvidia.com>
To: linux-kernel@vger.kernel.org,
	Andrew Morton <akpm@linux-foundation.org>,
	Arnd Bergmann <arnd@arndb.de>,
	Jinjie Ruan <ruanjinjie@huawei.com>,
	Rasmus Villemoes <linux@rasmusvillemoes.dk>,
	Yury Norov <yury.norov@gmail.com>
Cc: Yury Norov <ynorov@nvidia.com>
Subject: [PATCH 0/2] lib: compile generic bitrev based on GENERIC_BITREVERSE
Date: Mon, 27 Apr 2026 16:52:06 -0400	[thread overview]
Message-ID: <20260427205210.397471-1-ynorov@nvidia.com> (raw)

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


             reply	other threads:[~2026-04-27 20:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-27 20:52 Yury Norov [this message]
2026-04-27 20:52 ` [PATCH 1/2] lib: compile generic bitrev.c conditionally on GENERIC_BITREVERSE Yury Norov
2026-04-27 20:52 ` [PATCH 2/2] MAINTAINERS: BITOPS: include bitrev.[ch] Yury Norov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260427205210.397471-1-ynorov@nvidia.com \
    --to=ynorov@nvidia.com \
    --cc=akpm@linux-foundation.org \
    --cc=arnd@arndb.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@rasmusvillemoes.dk \
    --cc=ruanjinjie@huawei.com \
    --cc=yury.norov@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox