From patchwork Fri Jul 17 16:40:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gustavo A. R. Silva" X-Patchwork-Id: 11670707 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 539EB159A for ; Fri, 17 Jul 2020 16:35:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3B2602074B for ; Fri, 17 Jul 2020 16:35:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595003735; bh=PKNDgQwBHU+u8iM5TGqJfeOToHbtv4pEScV52MFvHls=; h=Date:From:To:Cc:Subject:List-ID:From; b=gZHcEkHWQCna2Cr2QHQX2/5sCUB3JXN90pWFSApGQGXrq3stbmpPagaBmbhdg7WP6 W88AgI+brvjJBztduD5fZYDugjQisiJdSEXKPte30S3ZL8n/o+c6OPoEA68SKReAW1 74vCYw05Dm6on5DqTWUJ/hEMfoRzbs/ny56ivN/w= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726858AbgGQQff (ORCPT ); Fri, 17 Jul 2020 12:35:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:59528 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726221AbgGQQfe (ORCPT ); Fri, 17 Jul 2020 12:35:34 -0400 Received: from embeddedor (unknown [201.162.167.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9A6D52065E; Fri, 17 Jul 2020 16:35:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595003734; bh=PKNDgQwBHU+u8iM5TGqJfeOToHbtv4pEScV52MFvHls=; h=Date:From:To:Cc:Subject:From; b=TxrJ7MbTKKQV9fmTaapbzAMx82PP2hfF0FIoSt9LDMdPqIRlGudG3yJ01uwHmGhB5 xuciIdPKqVhf9uoQaTkLSkxE2QyoiinG9PwsMe82+8Nw2SmzMxRHklZNNC3nzAYXy2 G+ztodhuCgdH/qcjHxyaU5OuuUAgLzENA+9E9dEk= Date: Fri, 17 Jul 2020 11:40:59 -0500 From: "Gustavo A. R. Silva" To: Jim Cromie , Wim Van Sebroeck , Guenter Roeck Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH][next] watchdog: scx200_wdt: Use fallthrough pseudo-keyword Message-ID: <20200717164059.GA26947@embeddedor> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-watchdog-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. [1] https://www.kernel.org/doc/html/v5.7-rc7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva Reviewed-by: Guenter Roeck --- drivers/watchdog/scx200_wdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/scx200_wdt.c b/drivers/watchdog/scx200_wdt.c index c94098acb78f..7b5e18323f3f 100644 --- a/drivers/watchdog/scx200_wdt.c +++ b/drivers/watchdog/scx200_wdt.c @@ -186,7 +186,7 @@ static long scx200_wdt_ioctl(struct file *file, unsigned int cmd, margin = new_margin; scx200_wdt_update_margin(); scx200_wdt_ping(); - /* Fall through */ + fallthrough; case WDIOC_GETTIMEOUT: if (put_user(margin, p)) return -EFAULT;