From: Peter Rosin <peda@axentia.se>
To: "Gustavo A. R. Silva" <gustavoars@kernel.org>
Cc: Kees Cook <keescook@chromium.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Linus Torvalds <torvalds@linux-foundation.org>
Subject: Re: [GIT PULL] fallthrough pseudo-keyword macro conversions for 5.9-rc3
Date: Wed, 26 Aug 2020 01:36:20 +0200 [thread overview]
Message-ID: <d2c2cbb5-c63e-773f-5e90-1287e926bfa8@axentia.se> (raw)
In-Reply-To: <20200824034841.GA29995@embeddedor>
On 2020-08-23 22:48, Gustavo A. R. Silva wrote:
> Hi Linus,
>
> Please, pull the following tree-wide patch that replaces tons (2484) of
> /* fall through */ comments, and its variants, with the new pseudo-keyword
> macro fallthrough[1]. Also, remove unnecessary fall-through markings when
> it is the case.
Hi.
This is the second time [1] you have messed up the reading pleasure of
drivers/iio/dac/dpot-dac.c with mindless fall through conversions.
The comments in that file no longer make sense.
With more context:
case IIO_VAL_INT:
/*
* Convert integer scale to fractional scale by
* setting the denominator (val2) to one, and...
*/
*val2 = 1;
ret = IIO_VAL_FRACTIONAL;
- /* fall through */
+ fallthrough;
case IIO_VAL_FRACTIONAL:
*val *= regulator_get_voltage(dac->vref) / 1000;
*val2 *= dac->max_ohms;
break;
}
See how the comment ending with "and..." is no longer continued? I
disliked the last change to this file [2] that (after pressure) moved
"and" from the original "...and fall through." comment away from where
it belonged (instead of just removing it) exactly because it was less
clear that the "fall through" was part of the natural comment reading.
But this latest patch just destroys the commentary completely.
I guess I should have stood my ground the last time with my
/* ...and fall through. Say it again for GCC. */
/* fall through */
suggestion, so that it would now have become
/* ...and fall through. Say it again for GCC. */
fallthrough;
with this latest change. Because that makes sense.
If it was someone else, it would be understandable, but since it was
you - again - I expect a patch fixing this. Either as I suggested above
or some other way.
Comments are important.
Cheers,
Peter
[1] https://lore.kernel.org/lkml/20181008173528.GA31787@embeddedor.com/
[2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/iio/dac/dpot-dac.c?id=c65a0d84ee9c
next prev parent reply other threads:[~2020-08-25 23:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-24 3:48 Gustavo A. R. Silva
2020-08-24 18:46 ` Linus Torvalds
2020-08-24 18:56 ` Joe Perches
2020-08-24 20:58 ` Gustavo A. R. Silva
2020-08-24 19:21 ` pr-tracker-bot
2020-08-24 19:43 ` Nathan Chancellor
2020-08-24 20:04 ` Gustavo A. R. Silva
2020-08-25 23:36 ` Peter Rosin [this message]
2020-08-26 0:16 ` Gustavo A. R. Silva
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d2c2cbb5-c63e-773f-5e90-1287e926bfa8@axentia.se \
--to=peda@axentia.se \
--cc=gustavoars@kernel.org \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®