From patchwork Thu Oct 8 22:25:14 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: 11824695 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 3A0F9139F for ; Thu, 8 Oct 2020 22:19:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 17BAC22246 for ; Thu, 8 Oct 2020 22:19:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602195593; bh=vh2MTDkqTCddfhj24WjA3iu9qgZTb5K4SXKLvmgxfR0=; h=Date:From:To:Cc:Subject:List-ID:From; b=pnberHiKsg9dYxEWV0/5HnRIktA2ibKk4obA5Fq6XSeyPVw0MN3NWahirVDpbHnei sjCZsA08yc/+/xIR+nC3Fe1yjvpV/N+CdLMHxmB6tHVGz2b3vGvgyOw05xl8Kf9Jrz 86cgDj9HoNWgC+toyaoBFVH2IlpdkgqhgtWsEDrk= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729297AbgJHWTw (ORCPT ); Thu, 8 Oct 2020 18:19:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:58174 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725852AbgJHWTv (ORCPT ); Thu, 8 Oct 2020 18:19:51 -0400 Received: from embeddedor (187-162-31-110.static.axtel.net [187.162.31.110]) (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 26CF322241; Thu, 8 Oct 2020 22:19:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602195590; bh=vh2MTDkqTCddfhj24WjA3iu9qgZTb5K4SXKLvmgxfR0=; h=Date:From:To:Cc:Subject:From; b=XHtojaceDHnalxQKsgQbWYwAiIv98i4g8qt4yqeqTZrW6hX+YqJ4EEKyXa2gzWQRO /QMNHJa4wnfUZzXfxpuCVqY+A8OjYYJiozjZDl0xkwhSZLycwsmIDe6pEjFaJohr8g uvkJx1ca1jt97uP2pWnA79Sx92QvCr/O5Q31HTIY= Date: Thu, 8 Oct 2020 17:25:14 -0500 From: "Gustavo A. R. Silva" To: Dmitry Torokhov Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" , linux-hardening@vger.kernel.org Subject: [PATCH][next] Input: libps2 - Use fallthrough pseudo-keyword Message-ID: <20201008222514.GA17682@embeddedor> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org In order to enable -Wimplicit-fallthrough for Clang[1], replace the existing /* Fall through */ comment with the new pseudo-keyword macro fallthrough[2]. [1] https://git.kernel.org/linus/e2079e93f562c7f7a030eb7642017ee5eabaaa10 [2] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva --- drivers/input/serio/libps2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/serio/libps2.c b/drivers/input/serio/libps2.c index 8a16e41f7b7f..250e213cc80c 100644 --- a/drivers/input/serio/libps2.c +++ b/drivers/input/serio/libps2.c @@ -405,7 +405,7 @@ bool ps2_handle_ack(struct ps2dev *ps2dev, u8 data) ps2dev->nak = PS2_RET_ERR; break; } - /* Fall through */ + fallthrough; /* * Workaround for mice which don't ACK the Get ID command.