Re: [PATCH v1 1/4] bitmap: Add bitmap_zero()/bitmap_clear() test cases
From: Yury Norov
Date: Thu Jan 11 2018 - 07:07:42 EST
On Wed, Jan 10, 2018 at 03:11:45PM +0200, Andy Shevchenko wrote:
> On Wed, 2018-01-10 at 12:34 +0300, Yury Norov wrote:
> > Hi Andy,
> >
> > On Tue, Jan 09, 2018 at 07:24:27PM +0200, Andy Shevchenko wrote:
> > > Explicitly test bitmap_zero() and bitmap_clear() functions.
>
> > > + /* Known way to set all bits */
> >
> > Nit: if you start your comments with capital, proceed that way till
> > the end.
>
> Right, I have to keep the original style. I'll check this.
>
> > I don't understand what patch #4 is doing in this series. At the first
> > glance, it may be applied separately.
>
> It fixes test failures found by patch 2 in the series.
> The idea is similar to TDD.
So with current order, patch 2 introduces regression that is fixed in
patch 4, is my understanding correct?
This is not the best idea because it will break bisectability. I would
recommend you to change the order and move patch #4 to the begin.
Also it would be reasonable to leave a note in patch 2 comment that it
causes regression if applied alone.
Yury