Received: by 10.223.164.202 with SMTP id h10csp388904wrb; Wed, 8 Nov 2017 18:56:50 -0800 (PST) X-Google-Smtp-Source: ABhQp+Q0yDOlImof3qxq4OrpROoYXbOkyrFYis4GjEI3kBzJJgi2lpAB8kwytI46szxogcpITpvH X-Received: by 10.84.191.131 with SMTP id a3mr2305569pld.253.1510196210482; Wed, 08 Nov 2017 18:56:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510196210; cv=none; d=google.com; s=arc-20160816; b=Zctvgrn4d4FIoXnqYBEeKugKNAL0xLlb/cNsuVM/iSdd22y5ag52od+Kj27M59C2c2 HtQCiwt9RV2j5msOUfRXwRDup30wmtxL8xUb2syYSzItHfTVzpEzTqQ5PI47DMR45lp+ m9xp1Ps8YfUBdCRCdSWXSt+IHpo1nhmZZnsCOoM0DmotQa9DF3rFfQSH3MIJtME2dC+t N0lgAH3uDIfYnJuXlwV0WlZVUw5MU/Pgz66JVj+ACvfyCQHSytWXyGWkX3B+1KErLwB8 N1J1FbgcVCuKp8l+2WtFbSf4TmtQazBppXaeva01konuj5KC+x8exhhefSlZcM5h+BA7 RHOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date :arc-authentication-results; bh=HtR4Csc3nbMz02a2c5hUjtvc5XePfUitOvcPBln0pUM=; b=ZI5lfnIjO1D2QI0QuO8zf2PECA+09BdfE/P09A3MFjWlj8ynlbJO1cB5+OVGZdkjyN 0FynQoXJ4FYh3MlCKpN18mpAJAc1PLDWpge8p+AxlBB1q/VBQrGxYaunaj/AOiyg3UIA Wg1BKRMOpXAvgSmYf64HsjbwzE7Xfoh18tUpx8Ju2U6FAdSeOF3jLTG0M1L0POtzFRdr 8uOD+84faacCu8kvDZxDSeBf4UyK0xS+X5GPXwmJEH9nzmG/nS+m1sSMJG2NIaRcTxsF VFz+kWm8H6990ORx2DbWv7/Z2GheqzRsn+Azp7gPUeJfH5XDnXafVLkt4/AIyfUuLsYM SHkg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e3si1110186pld.771.2017.11.08.18.56.38; Wed, 08 Nov 2017 18:56:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752005AbdKIC4B (ORCPT + 82 others); Wed, 8 Nov 2017 21:56:01 -0500 Received: from gateway23.websitewelcome.com ([192.185.50.161]:19999 "EHLO gateway23.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751495AbdKIC4A (ORCPT ); Wed, 8 Nov 2017 21:56:00 -0500 Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20]) by gateway23.websitewelcome.com (Postfix) with ESMTP id B31B32643 for ; Wed, 8 Nov 2017 20:55:59 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id Cd0ZezJgMc72gCd0ZewP9p; Wed, 08 Nov 2017 20:55:59 -0600 Received: from [189.175.248.21] (port=34360 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.87) (envelope-from ) id 1eCd0Z-001Hiu-C1; Wed, 08 Nov 2017 20:55:59 -0600 Date: Wed, 8 Nov 2017 20:55:59 -0600 From: "Gustavo A. R. Silva" To: Dmitry Torokhov Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH] Input: spaceball - mark expected switch fall-throughs Message-ID: <20171109025559.GA12406@embeddedor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 189.175.248.21 X-Source-L: No X-Exim-ID: 1eCd0Z-001Hiu-C1 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.175.248.21]:34360 X-Source-Auth: garsilva@embeddedor.com X-Email-Count: 7 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 114767 Addresses-Coverity-ID: 114768 Addresses-Coverity-ID: 114769 Signed-off-by: Gustavo A. R. Silva --- drivers/input/joystick/spaceball.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/input/joystick/spaceball.c b/drivers/input/joystick/spaceball.c index e9712a1..bb3faef 100644 --- a/drivers/input/joystick/spaceball.c +++ b/drivers/input/joystick/spaceball.c @@ -162,6 +162,7 @@ static irqreturn_t spaceball_interrupt(struct serio *serio, break; } spaceball->escape = 0; + /* fall through */ case 'M': case 'Q': case 'S': @@ -169,6 +170,7 @@ static irqreturn_t spaceball_interrupt(struct serio *serio, spaceball->escape = 0; data &= 0x1f; } + /* fall through */ default: if (spaceball->escape) spaceball->escape = 0; @@ -234,11 +236,13 @@ static int spaceball_connect(struct serio *serio, struct serio_driver *drv) input_dev->keybit[BIT_WORD(BTN_A)] |= BIT_MASK(BTN_A) | BIT_MASK(BTN_B) | BIT_MASK(BTN_C) | BIT_MASK(BTN_MODE); + /* fall through */ default: input_dev->keybit[BIT_WORD(BTN_0)] |= BIT_MASK(BTN_2) | BIT_MASK(BTN_3) | BIT_MASK(BTN_4) | BIT_MASK(BTN_5) | BIT_MASK(BTN_6) | BIT_MASK(BTN_7) | BIT_MASK(BTN_8); + /* fall through */ case SPACEBALL_3003C: input_dev->keybit[BIT_WORD(BTN_0)] |= BIT_MASK(BTN_1) | BIT_MASK(BTN_8); -- 2.7.4 From 1582945653890174827@xxx Thu Nov 02 09:23:34 +0000 2017 X-GM-THRID: 1582773766176775393 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread