All of lore.kernel.org
 help / color / mirror / Atom feed
* bitmap API consistency
@ 2017-05-24 12:11 Andy Shevchenko
  2017-05-24 12:38 ` Rasmus Villemoes
  0 siblings, 1 reply; 4+ messages in thread
From: Andy Shevchenko @ 2017-05-24 12:11 UTC (permalink / raw)
  To: Rasmus Villemoes; +Cc: Andrew Morton, LKML, Martin Schwidefsky

Hi!

Surprisingly discovered today that bitmap API is not consistent in some
cases (at least one I found recently).

bitmap_fill() sets area of bits in a bitmap.
bitmap_zero() clears them.

However, if _fill() does something sane, _zero() clears _all_ bits up to
word size (long).

I think it should be fixed to be consistent with _fill() variant.

Thoughts?

-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-12-19 17:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-24 12:11 bitmap API consistency Andy Shevchenko
2017-05-24 12:38 ` Rasmus Villemoes
2017-05-24 12:43   ` Andy Shevchenko
2017-12-19 17:32     ` Andy Shevchenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.