Re: [GIT PULL] bitmap for 6.18

From: Linus Walleij
Date: Fri Oct 03 2025 - 18:46:43 EST


On Thu, Oct 2, 2025 at 6:46 PM Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:

> Am I the only person who would find "BITS(1,11)" to be much easier to
> understand than "GENMASK(11,1)"?

You're not alone. It's obviously more intuitive in many cases,
let's add a generic BITS(lo,hi).

Linus Walleij