Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3987010imu; Mon, 14 Jan 2019 12:43:08 -0800 (PST) X-Google-Smtp-Source: ALg8bN4uLG7lSR5zM9pSZhsvlo7F4rfezrv7hNGOAjQv+1QfHTKQ+dnWUUXgADxtGgIBLnsrYrFX X-Received: by 2002:a63:1766:: with SMTP id 38mr325729pgx.299.1547498588492; Mon, 14 Jan 2019 12:43:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547498588; cv=none; d=google.com; s=arc-20160816; b=ntYHPmzCdv3NtR8M6qd9uF9+8bzSKKaC3chYv1oiFFZTJ/7LGuTAJZ1RSyNmwYVHEb v2iXrD6uUZrQFRBq0y23IcRGV9aBBz8dN0OkbShEZbmvLYFl9x1V27NKt+5bgfjqFAOl t9fvo2Vt64pUbzS50uyprR/tW37rnaA9LxS9WMct+T06gsBTVQl6vLLJi093P1UwzG5z /kGw4mmfs8v6Qj6JYnmr2JDqamb+/g1yaLttdUjvLjBGKQNHkliaT6CssvZaBbdR/EtP vOt/gQSKWOx8dMKjbmLiKXREMh2682SfGISRoGWQJJpkqfW77JqbbnXnv25SCLf3gxdV wHnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Kh2F4pMOFwFuAAQJLLTxrbaIzUyiTQtNdJuRQypsGJU=; b=MtNDlLJUjJ8KZCBqi8pb3s/AfcevyEwrsK6ETBZQVKFgPz2ryDupuypA0OTxa4I7Fb 9tMYlQeUqjfSx9x9dWwhrWohn6F8mRYz5WxLuvcJgDuQd2iAFwvHccVPmrijRq1c+ik2 UqEHPp3MWTRXV3Osk6n+hMNxKKAle8R8Ay2mNZLctHZ/M/9grKH2PFA0Osar8BzLI99J 4x17E0lAWLEwKtx9hwgb8tGEkM/naURM9gLkfUmj7DZpkzXH7XVXoCD6KYhHrkHUJRX/ kdvR7hUpFJ27MgoRElVBnICmVvUr129edXaEXWR1v0noW0wGMJ8l6jIi7+SLOhBbRbIC 3+pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=M8boeAWl; 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 b34si1190244pld.305.2019.01.14.12.42.52; Mon, 14 Jan 2019 12:43:08 -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=@gmail.com header.s=20161025 header.b=M8boeAWl; 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 S1727075AbfANUlo (ORCPT + 99 others); Mon, 14 Jan 2019 15:41:44 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:42713 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726788AbfANUlo (ORCPT ); Mon, 14 Jan 2019 15:41:44 -0500 Received: by mail-wr1-f67.google.com with SMTP id q18so432337wrx.9; Mon, 14 Jan 2019 12:41:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Kh2F4pMOFwFuAAQJLLTxrbaIzUyiTQtNdJuRQypsGJU=; b=M8boeAWlDh1B8nhFah77FSZHP1dAHMzXsPeXUy94wXr2ojksFhG1l+KoWpVFsZs33I /S0g0UrpDDF4f6xJV8q7ZMnoL39y8Q67ap0EbtnlfzSB1BAWQrIRio3VMb2+6pOFy2Oe PZMwqTzSCRxjaqWgmMZiBnI1jPBug2Y5AgConAPUen1c84Mw9JZq564eUyCLe34ut4H3 9WAf4XoZB5EfoB0rytLcduQdLHwb6FnwKqgZwUmOcX2yXweep5ZhY25J2QXMyLMG5iNR Ly2A5cHB5Nk0EHYdxUU2daVJxUu+MbBXAtIT0QH1gum4QAm25Wq5xnp+x8oFHzi4DH5p DQ7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=Kh2F4pMOFwFuAAQJLLTxrbaIzUyiTQtNdJuRQypsGJU=; b=Wpct8/ZWxHtkqw6sDaBHH97MdDn5sNhQbhBiCZeg3XbRZDAVQD/DpjSo5S8A5K+wEx WkS665JisFUfsmec4OhtNNEvGXuMGk5d4YPvro6G6Y5doUkFnhNLyBmbHp1rr3IhsT6W Ih4+CuFrps/LrJxf6qL3z5QeHgf3qlQ1w5r3nbg2QUaveCx0Z2bTvrqKntBsVjGCZEbA +mk5lfXgRxvUYAxeYaBdBSrY3qa3BLYan/+zMgZC/Ap/VAa2sKsiuZtTb0TfiXWBlFJB uI4vHYyyd2IGg/qhBd77JpB3/SbrH8sieIjwxB1ScF6mwp8+v7QGCo5YLEJrX478r8IG H/sw== X-Gm-Message-State: AJcUukeJc1jCPDD3Z05jv1ysxxMsaA+VeqNvQ0BQl3S+AjU9KgneicVB qBftsF6DDAXr0jGtoofyS4Y= X-Received: by 2002:adf:b3c3:: with SMTP id x3mr228782wrd.294.1547498502061; Mon, 14 Jan 2019 12:41:42 -0800 (PST) Received: from macbookpro.malat.net (bru31-1-78-225-224-134.fbx.proxad.net. [78.225.224.134]) by smtp.gmail.com with ESMTPSA id y13sm54296260wrw.85.2019.01.14.12.41.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 12:41:41 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 5C8B011422AD; Mon, 14 Jan 2019 21:41:40 +0100 (CET) From: Mathieu Malaterre To: Bjorn Helgaas Cc: Mathieu Malaterre , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] PCI: annotate implicit fall throughs Date: Mon, 14 Jan 2019 21:41:36 +0100 Message-Id: <20190114204137.21094-1-malat@debian.org> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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