Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1834887imu; Wed, 28 Nov 2018 16:17:34 -0800 (PST) X-Google-Smtp-Source: AFSGD/UEMKnChHw4XFvLLU2jbWR6804oosiZ/9GMejJYm6VTSjNCPGLfC3EEl/VLEyQqf5MkMR2Q X-Received: by 2002:a17:902:66e6:: with SMTP id e93mr4473674plk.92.1543450653952; Wed, 28 Nov 2018 16:17:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543450653; cv=none; d=google.com; s=arc-20160816; b=KBOLPzQYX/mEelKFV54KOZDh42L+J02+5JPHyircXprgBH2DGTh6WaUFcnwWa0Bkok MpJBIo0sUi1Iedj6z7uuTj3A3O02fMiB0W953+uWkpJvbw1GC+wVS1q45iyiuIedr1Bo A4Abc6ifo9eKYQ6a65Thobp220kaBIVCDDTtFqjA2CHihbntRMBwcWW6D/Db5eKvNSBU /5oKawVdQx12NgeGJYDxgcBNW4wYi9UM8qywGyrdCp4wG6e5Yt7R8UMce/ey1S26j4H/ //RdNwjeM2SylO1KAjce0XS0U6dBT2eJ7EYPT2JqoHQYgQDb2FeB9c/bHyKn3U+Ksf5v zRpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/tLFbISmxWBmC3TgjCp1z4n+RwvtnNEvvGnjho+0Ky8=; b=dmzNsSRQky8JSzmfKWUBQNQYpQctu3b03PFpTJh0AZbt3pg3Z02LH+JeJCWyCLR/dU B5TRprMWDNzakyLYpAyDUrVtovcVr0rCJyCCj5FsvhIydjJ2eDxcEm92hfW3ZeQ0kA2R aAccHtVgA+YLHquAfiNBD3gtSEGXO8Lzfx917aI5WHWkeaZnOJvoJZ+qCGisqBKQRVwt eFaVZumI/Wn/nC5EoJRUDqCxX14C2CZ00VE1OpVJ3Rm1XyYPaHRnIO1OlnF0cr/Ouo4p ZEjIZhWKCVjVt3QRQIroV3J6gUHVxIBxdmyyR0ajibSbMUMkdX+EZumIFRSy9QYVrmS3 LroA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=YvYLGFVl; 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 bi6si154501plb.279.2018.11.28.16.17.19; Wed, 28 Nov 2018 16:17:33 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=YvYLGFVl; 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 S1727014AbeK2LTG (ORCPT + 99 others); Thu, 29 Nov 2018 06:19:06 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:34328 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726617AbeK2LTG (ORCPT ); Thu, 29 Nov 2018 06:19:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=/tLFbISmxWBmC3TgjCp1z4n+RwvtnNEvvGnjho+0Ky8=; b=YvYLGFVllIpSh8tptrBpv+n4d aFFJ8e+s5IUrnfgzM01lEgLgq+O8vtDmwxPjMbsP6eDtd1E7VeKZt9H3POmVMTd9Z2qxJ7TXKQaMT 9phUls7UPhKCn2bBxtCRs2PBnzW+AZtlvzVRkxmRS5sCNAo4D6+Z6HN5M87DLZX/sJiSDSVCzfvZT 38WoWEDXXbgT+NSDJjQB6VHR+UUArOwaaV3bcHOD/2IoYUr4JdO6JzyZO/5CUgWOhIEwK9gDH/CuD dC6rC6p7UdcwCL2tqVeZqoL4W2/Dg5aORi083a8Ih721QO2dkcGviVSu1oqyBDMBVlX5fu9DZJN2C Uy+JJbO0A==; Received: from dvhart by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gS9zS-0004If-KS; Thu, 29 Nov 2018 00:15:34 +0000 Date: Wed, 28 Nov 2018 16:15:33 -0800 From: Darren Hart To: "Gustavo A. R. Silva" Cc: Matthew Garrett , Pali =?iso-8859-1?Q?Roh=E1r?= , Andy Shevchenko , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] platform/x86: dell-laptop: Mark expected switch fall-throughs Message-ID: <20181129001533.GA2468@fedora.eng.vmware.com> References: <20180705203807.GA10327@embeddedor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180705203807.GA10327@embeddedor.com> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 05, 2018 at 03:38:07PM -0500, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Signed-off-by: Gustavo A. R. Silva I've applied this patch, but not the acer or sony fall through patches due to the pending questions there. Happy to revisit those as needed, but closing these out of the patch queue. > --- > drivers/platform/x86/dell-laptop.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/platform/x86/dell-laptop.c b/drivers/platform/x86/dell-laptop.c > index f1fa861..1938f11 100644 > --- a/drivers/platform/x86/dell-laptop.c > +++ b/drivers/platform/x86/dell-laptop.c > @@ -1565,8 +1565,10 @@ static ssize_t kbd_led_timeout_store(struct device *dev, > switch (unit) { > case KBD_TIMEOUT_DAYS: > value *= 24; > + /* fall through */ > case KBD_TIMEOUT_HOURS: > value *= 60; > + /* fall through */ > case KBD_TIMEOUT_MINUTES: > value *= 60; > unit = KBD_TIMEOUT_SECONDS; > -- > 2.7.4 > > -- Darren Hart VMware Open Source Technology Center