From: Hans de Goede <hdegoede@redhat.com>
To: Joe Perches <joe@perches.com>, Arnd Bergmann <arnd@arndb.de>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/3] virt: vbox: Use fallthrough;
Date: Fri, 13 Mar 2020 11:45:57 +0100 [thread overview]
Message-ID: <eb4b9c3d-23c4-7b93-9a5d-6686947a818d@redhat.com> (raw)
In-Reply-To: <68773b4cd82288b78ca6fcde8c43e249a025378a.1584040050.git.joe@perches.com>
Hi,
On 3/12/20 8:17 PM, Joe Perches wrote:
> Convert the various uses of fallthrough comments to fallthrough;
>
> Done via script
> Link: https://lore.kernel.org/lkml/b56602fcf79f849e733e7b521bb0e17895d390fa.1582230379.git.joe@perches.com/
>
> And by hand:
>
> drivers/virt/vboxguest/vboxguest_core.c has a fallthrough comment outside
> of an #ifdef block that causes gcc to emit a warning if converted in-place.
>
> So move the new fallthrough; inside the containing #ifdef/#endif too.
>
> Signed-off-by: Joe Perches <joe@perches.com>
Patch looks good to me:
Acked-by: Hans de Goede <hdegoede@redhat.com>
Regards,
Hans
> ---
> drivers/virt/vboxguest/vboxguest_core.c | 2 +-
> drivers/virt/vboxguest/vboxguest_utils.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/virt/vboxguest/vboxguest_core.c b/drivers/virt/vboxguest/vboxguest_core.c
> index d823d5..b690a8 100644
> --- a/drivers/virt/vboxguest/vboxguest_core.c
> +++ b/drivers/virt/vboxguest/vboxguest_core.c
> @@ -1553,8 +1553,8 @@ int vbg_core_ioctl(struct vbg_session *session, unsigned int req, void *data)
> #ifdef CONFIG_COMPAT
> case VBG_IOCTL_HGCM_CALL_32(0):
> f32bit = true;
> + fallthrough;
> #endif
> - /* Fall through */
> case VBG_IOCTL_HGCM_CALL(0):
> return vbg_ioctl_hgcm_call(gdev, session, f32bit, data);
> case VBG_IOCTL_LOG(0):
> diff --git a/drivers/virt/vboxguest/vboxguest_utils.c b/drivers/virt/vboxguest/vboxguest_utils.c
> index 50920b..739618 100644
> --- a/drivers/virt/vboxguest/vboxguest_utils.c
> +++ b/drivers/virt/vboxguest/vboxguest_utils.c
> @@ -311,7 +311,7 @@ static u32 hgcm_call_linear_addr_type_to_pagelist_flags(
> switch (type) {
> default:
> WARN_ON(1);
> - /* Fall through */
> + fallthrough;
> case VMMDEV_HGCM_PARM_TYPE_LINADDR:
> case VMMDEV_HGCM_PARM_TYPE_LINADDR_KERNEL:
> return VMMDEV_HGCM_F_PARM_DIRECTION_BOTH;
>
next prev parent reply other threads:[~2020-03-13 10:46 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-12 19:17 [PATCH 0/3] treewide: Convert unscriptable /* fallthrough */ comments to fallthrough; Joe Perches
2020-03-12 19:17 ` [PATCH 1/3] drm: drm_vm: Use fallthrough; Joe Perches
2020-03-17 16:48 ` Daniel Vetter
2020-03-17 22:13 ` Joe Perches
2020-03-18 13:49 ` Daniel Vetter
2020-03-18 16:43 ` Joe Perches
2020-03-12 19:17 ` [PATCH 2/3] net: [IPv4/IPv6]: " Joe Perches
2020-03-12 22:44 ` David Miller
2020-03-12 19:17 ` [PATCH 3/3] virt: vbox: " Joe Perches
2020-03-13 10:45 ` Hans de Goede [this message]
2020-03-12 22:50 ` [PATCH 2/3 V2] inet: " Joe Perches
2020-03-12 22:56 ` David Miller
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=eb4b9c3d-23c4-7b93-9a5d-6686947a818d@redhat.com \
--to=hdegoede@redhat.com \
--cc=arnd@arndb.de \
--cc=gregkh@linuxfoundation.org \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.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®