[PATCH v6 1/5] lib/bitmap: add bitmap_{read,write}()
Alexander Potapenko
glider at google.com
Tue Oct 10 02:43:13 PDT 2023
> >
> > > + if (space >= nbits)
> > > + return (map[index] >> offset) & GENMASK(nbits - 1, 0);
> >
> > And don't you want to replace this GENMASK() as well?
>
> See my next reply to Yury, tl;dr this is a stale code version :(
Actually, no, we haven't discussed improvements to bitmap_read(), and
this is the correct version.
I'll fix this one.
More information about the linux-arm-kernel
mailing list