From: Marek Szyprowski Date: Wed, 28 Feb 2024 10:19:03 +0000 (+0100) Subject: kdbus: use fallthrough keyword when available X-Git-Tag: accepted/tizen/unified/20240306.011949~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=598f54d75a8d61cc9ea72202a7d296a22de08a8b;p=platform%2Fkernel%2Flinux-tizen-modules-source.git kdbus: use fallthrough keyword when available Since kernel v5.5 the fallthrough keyword is available and prefered to be used instead of the "/* fallthrough */" comment. Change-Id: I713a6a869a343152f71f0dd69e4bd001a469aa38 Signed-off-by: Marek Szyprowski --- diff --git a/kernel/kdbus/fs.c b/kernel/kdbus/fs.c index 25718eb..5eb7973 100644 --- a/kernel/kdbus/fs.c +++ b/kernel/kdbus/fs.c @@ -495,7 +495,11 @@ void kdbus_fs_flush(struct kdbus_node *node) if (IS_ERR_OR_NULL(parent_dentry)) goto exit; +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,5,0)) + fallthrough; +#else /* fallthrough */ +#endif case KDBUS_NODE_BUS: if (WARN_ON(!node->name)) goto exit;