Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2286118imu; Thu, 24 Jan 2019 10:08:34 -0800 (PST) X-Google-Smtp-Source: ALg8bN6o6k144wPVdXTrFbAr6jKbeddOGNsH8/2/Q6pQCsKIYWlTAkObqTb7lLnTthDqM6Tr8NEe X-Received: by 2002:a17:902:8346:: with SMTP id z6mr7530128pln.340.1548353314001; Thu, 24 Jan 2019 10:08:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548353313; cv=none; d=google.com; s=arc-20160816; b=rdYJW+yZCSCnogO1AI2Y17qOQxsFbl+w3fzwb8NQsge9fj3RunVNomaa4wPfWhSJJv NUpKHu6DjkgpOE0E2f2CwjJEM/K9XLO2vL7NyBsaPv8Sfy2ipYHTSABUOb9+Rwhb25Wi WEBH/cUOqeVVv4vcx7thx384rSvH7nPJch9A++uMWzjPA3GIxTiH1OCUpcefcLLEgIE/ xkEKw1+kpTDpSsV3WkhZImGUcPvMFXXTg42km6vG4mXbjFTYg1jBbmsJkqzJ+aYnUkvB CP93FDDSeAsr66ckWPvlZaVun8UUJAHGkGQZJioS5w7G+PwF+n9Es1nrLfUqrhtBBNIS DENQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BeYJT0Z/72s44LJc0KKufww5He7xJOSI991sA39Lbhc=; b=Z7k30s6k+H+az81ZbjlUSucw+kyTXfzZxRi7Xi5ZOZOhkCy3IPICrUjBD6FZMPYHA4 0QZgz4Rk7d1pAwUCzcxt6rgU/NJhr2NoGchc38EMF504PLrBcRRXEEcK9MKRB1I9Yz7c eLf7iSEgbUh5d+uUeHRvqSXXLnjsrpUq5+AMzkRbn199xHbQDHJhbAu2N0NHipoj0r+Q 15J5JaPiwVHBn+akxfpuOuYBt3VN4/fJj+WAl8UA7DpQPEHbXCf8pilpe//UHzuhNF/F zEooU+pG7BNAukVyMvOH2F+Nvq24bPQ0NehtGPfBnkIIdvehwokdzkeDB1no3VcTYLOC 4RVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=q2PXFZrO; 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 n24si21274355pgv.119.2019.01.24.10.08.18; Thu, 24 Jan 2019 10:08: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=@gmail.com header.s=20161025 header.b=q2PXFZrO; 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 S1729308AbfAXSHp (ORCPT + 99 others); Thu, 24 Jan 2019 13:07:45 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:40125 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729287AbfAXSHo (ORCPT ); Thu, 24 Jan 2019 13:07:44 -0500 Received: by mail-wm1-f67.google.com with SMTP id f188so4033358wmf.5; Thu, 24 Jan 2019 10:07: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:in-reply-to:references :mime-version:content-transfer-encoding; bh=BeYJT0Z/72s44LJc0KKufww5He7xJOSI991sA39Lbhc=; b=q2PXFZrOM/z/diJ3NnNBKWMlk1VoribLeZ7TW4zBpAuGa6RGQga/gFJhWTByadXhfc cjDHdXDkrvU7skdSqL3syKu7aAyixMVtwHkJhpMgCJBLgGmLWEo/9EV5/M/Emkkj28xi yJ4bZz1rwhtW+KmVNvnkM9j5DajZXpILqNuPR9OZ4MdN8jwZlDpIl9HOks6v5RuCCbuA 16xLPwNBiCVxNeDc8JjE4hNvNdpDvIddnK++M3iWG9gW76AIs5g3M8H8iSKUAIWx3Kln U2v/lgfDgf0SRM329AY/T9wrLPKi+DcG4woIeLxK6jIFEWB1sOsw4H8DjlfaFkow7t/d xbiA== 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 :in-reply-to:references:mime-version:content-transfer-encoding; bh=BeYJT0Z/72s44LJc0KKufww5He7xJOSI991sA39Lbhc=; b=AN1Ks4XQpnABqz1xaPZcCibyaJcHRsafiekvbemlONGozxPGU4bUlRRmFNQ7Ux5884 LYU7HUSjPmNPhnqeZgTiabfoHxQuXnAdwPN2+y3g5Rgk1N1RqFWkDLuppSplA1WhjWdE hlgiw5Ee7STBCFZ3UOcB3yTkpEFn17nlQeePCaH8z4mvTlyaZOe/D69CdirHrWXGIQAS +6NoQjuvYlYsURKkeuyu3Ct5BuaBc2tsy+dpbI8rYNIBpIOmLFPjFhIOfvTkC4BGc224 nnVWNhVl/b9j+tKwSC8BgFvEcaFWfh2LTnrcgC81ZSLU4tw6yRQAA7trlJx1yAlqP3/R Ekig== X-Gm-Message-State: AJcUukd9NejAG3mu0SBDhO9pcWUx0fC93Qxl3T9QL+ankek13xUyFrPd dIkkAoH26O4FYmyE83QOjso= X-Received: by 2002:a1c:85d2:: with SMTP id h201mr3502164wmd.151.1548353261479; Thu, 24 Jan 2019 10:07:41 -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 v132sm61758566wme.20.2019.01.24.10.07.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 24 Jan 2019 10:07:40 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 922D71143574; Thu, 24 Jan 2019 19:07:39 +0100 (CET) From: Mathieu Malaterre To: Marcel Holtmann Cc: Mathieu Malaterre , Peter Hurley , Johan Hedberg , "David S. Miller" , linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] Bluetooth: Correctly annotate implicit fall through in __rfcomm_dlc_close Date: Thu, 24 Jan 2019 19:07:24 +0100 Message-Id: <20190124180724.20910-2-malat@debian.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20190124180724.20910-1-malat@debian.org> References: <20190124180724.20910-1-malat@debian.org> MIME-Version: 1.0 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 this place in the code produced a warning (W=1). In this particular case put the fall through comment on a separate line so as to match the regular expression expected by GCC. This commit removes the following warning: net/bluetooth/rfcomm/core.c:479:6: warning: this statement may fall through [-Wimplicit-fallthrough=] Cc: Peter Hurley Signed-off-by: Mathieu Malaterre --- net/bluetooth/rfcomm/core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/net/bluetooth/rfcomm/core.c b/net/bluetooth/rfcomm/core.c index 1a635df80643..caaae6accafa 100644 --- a/net/bluetooth/rfcomm/core.c +++ b/net/bluetooth/rfcomm/core.c @@ -480,9 +480,8 @@ static int __rfcomm_dlc_close(struct rfcomm_dlc *d, int err) __rfcomm_dlc_disconn(d); break; } - /* if closing a dlc in a session that hasn't been started, - * just close and unlink the dlc - */ + /* fall through - if closing a dlc in a session that hasn't */ + /* been started, just close and unlink the dlc */ default: rfcomm_dlc_clear_timer(d); -- 2.19.2