Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4095772imu; Mon, 14 Jan 2019 15:02:10 -0800 (PST) X-Google-Smtp-Source: ALg8bN5X68jW3KUUccndFv5dK3VY/n6fUccz7mN8xoFmHqTXlzXswhbySZAmjOjBMLu8PBK2h7Qi X-Received: by 2002:a17:902:f20d:: with SMTP id gn13mr860623plb.11.1547506930086; Mon, 14 Jan 2019 15:02:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547506930; cv=none; d=google.com; s=arc-20160816; b=d0QqyjrgbvAcZ0R9RtjlrEawvqfWn3kY3ffH0MXHVMcjvjB6uZg9sLUeCOG4QUALbf BXvCRRfjD1lvfZ9HPakmtKfzkmaIMeIU6HsOGJino7jun/ESzw04XNeQkqdx/mLn4iZ4 pfjTF9/g7gQ4Y0rPm4s7T33z6Kl2XCAe4q8/VpwBspqA2UlFvc3elkFbuk+caORsiLhO 6RfAkQ0JwO6iXkzmWHXO1wg21+h3sQRJRHmkwwVI6DmwmDc/jm+gPkMv3eZKnBkXRqPI CQb8Yk8Zr27z6okvN7V+dR0Oe7vIantQtUfU868bDExzzj+5oiGkHPqOpKjJRKVLkA4I oaww== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=IYxBrdP7BiQBav/W+BvqZyMKhkOZZ02J1TuUnydZmkk=; b=ZJMMoTGuCh9yGl+P2M9VQi29LaVKv0xWbBmG4rP8XZ4KNujytn3LYtYnYOHynfifkM QYKT3VlIBf0Uhpg6k47KQajQcPnJ8nX0y0Zcw7H5kEdxozjfJYf0nvVT/M8EsPF6iT09 Fa3caiMDYN/+CJSgpn2+CjfqnoMdKQDTbB09bYrsYBjn7gE9aYfb/sMt4e8Y+ifu+e60 U6w2PISWesY7s+i9Hm3q8ecg4FJzu03JXqaRrrWDyEmOvzgzpajOWZijrHkuhHP9KSJG iPx2SxFjfjsG4yUeu48WF/mu202vT9hTAzyoocXHGVNXIwsIuXm9GFLBHVNqeBz6XSsx k3jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CRRT4rcn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l8si1518178pfc.98.2019.01.14.15.01.54; Mon, 14 Jan 2019 15:02:10 -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=pass header.i=@kernel.org header.s=default header.b=CRRT4rcn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727133AbfANXAp (ORCPT + 99 others); Mon, 14 Jan 2019 18:00:45 -0500 Received: from mail.kernel.org ([198.145.29.99]:52952 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726769AbfANXAp (ORCPT ); Mon, 14 Jan 2019 18:00:45 -0500 Received: from localhost (unknown [69.71.4.100]) (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 EECFC20657; Mon, 14 Jan 2019 23:00:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547506844; bh=i17pFvBR8ne7ThjBH0wTqjJW56Lhg7jsgKQDWcWmoWU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CRRT4rcnYqtzZhiEXbmarQ4Pk7hTeFEaXkI8usxFdEiaV7ypbZj8ihdtWzEoS7K6y qlQplLoUQR2nmsSG4k9kvA9lwLH9ZW/w+FeG0BHgbj47QeMl8mfzpxaR0NvH2w2dyi b3z9kscV5QcC2oOUytRBL3XeqLdB4w93vRGpmclU= Date: Mon, 14 Jan 2019 17:00:42 -0600 From: Bjorn Helgaas To: Mathieu Malaterre Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] PCI: annotate implicit fall throughs Message-ID: <20190114230042.GB33971@google.com> References: <20190114204137.21094-1-malat@debian.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190114204137.21094-1-malat@debian.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 14, 2019 at 09:41:36PM +0100, Mathieu Malaterre wrote: > There is a plan to build the kernel with -Wimplicit-fallthrough and > these places in the code produced warnings (W=1). Fix them up. > > In this particular case change a ‘:’ with either a ‘-’ or a ‘,’ > so as to match the regular expression expected by GCC. > > This commit remove the following warnings: > > drivers/pci/pci.c:861:6: warning: this statement may fall through [-Wimplicit-fallthrough=] > drivers/pci/pci.c:2261:7: warning: this statement may fall through [-Wimplicit-fallthrough=] > > Signed-off-by: Mathieu Malaterre I squashed these and applied the result to pci/misc for v5.1, thanks! > --- > drivers/pci/pci.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c > index c9d8e3c837de..94069fc35e91 100644 > --- a/drivers/pci/pci.c > +++ b/drivers/pci/pci.c > @@ -861,7 +861,7 @@ static int pci_raw_set_power_state(struct pci_dev *dev, pci_power_t state) > if ((pmcsr & PCI_PM_CTRL_STATE_MASK) == PCI_D3hot > && !(pmcsr & PCI_PM_CTRL_NO_SOFT_RESET)) > need_restore = true; > - /* Fall-through: force to D0 */ > + /* Fall-through - force to D0 */ > default: > pmcsr = 0; > break; > @@ -2260,7 +2260,7 @@ static pci_power_t pci_target_state(struct pci_dev *dev, bool wakeup) > case PCI_D2: > if (pci_no_d1d2(dev)) > break; > - /* else: fall through */ > + /* else, fall through */ > default: > target_state = state; > } > -- > 2.19.2 >