[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <9f16a764ac564866b6ba6fad4c00b67a@AcuMS.aculab.com>
Date: Tue, 23 Mar 2021 17:24:09 +0000
From: David Laight <David.Laight@...LAB.COM>
To: 'Willy Tarreau' <w@....eu>, Arnd Bergmann <arnd@...nel.org>
CC: Christoph Hellwig <hch@...radead.org>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
Jens Axboe <axboe@...nel.dk>,
"Chaitanya Kulkarni" <chaitanya.kulkarni@....com>,
Hannes Reinecke <hare@...e.de>,
"Bodo Stroesser" <bstroesser@...fujitsu.com>,
"Matthew Wilcox (Oracle)" <willy@...radead.org>,
Guoqing Jiang <guoqing.jiang@...ud.ionos.com>,
linux-scsi <linux-scsi@...r.kernel.org>,
"target-devel@...r.kernel.org" <target-devel@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH] target: pscsi: avoid Wempty-body warning
..
> I totally agree with this one but usually it's already reported by
> another one (probably the one complaining about misindenting). The
> case I've seen quite a few times was:
>
> while (condition);
>
> At least I want the ';' on its own line to avoid it being
> confused with one that ends a do {} while() block.
For that one it is worth doing:
while (condition)
continue;
I've also managed to write:
while (...) {
....
} while (...);
And if anyone thing code should be laid out as:
do
{
...
}
while (...);
Show them:
...
}
while (.......................................................
{
...
and ask them what it is supposed to be.
David
-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)
Powered by blists - more mailing lists