Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp187946imu; Fri, 25 Jan 2019 00:10:30 -0800 (PST) X-Google-Smtp-Source: ALg8bN7F/+X9S59DejJjifVbndzem/2A1AKc4rY8ieWT/m07/NGspxZik5dhJFudHEWjPDm8LbXg X-Received: by 2002:a17:902:bd0a:: with SMTP id p10mr9641675pls.322.1548403830002; Fri, 25 Jan 2019 00:10:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548403829; cv=none; d=google.com; s=arc-20160816; b=wtBD2RChj7FfHEhwabzrUhsqCllGa7v1zy3I/88864p7W7bsSr+uYWUOh/OeTNZfz3 E5mwZXuzeAUzTJKsGGMc0T5B1HiEo2ClZ6pVx2rQSIsdviwUgpXHCDda/QVq5FHhRUx2 IK161+bvZYVZSKNdFA1brmLjM/Aa/FbEsd63LTJleK9vJcIYip7PKeOXxgPXGNgBNlKt CGpm2G+NCUESJjehCGI2E3PQ4pDVFajp2AwcJT8C67dQAwaAzPAdeSgjKbJ7Zf3gWt3F 5XdZ/cHrFNCo9NSl4WCAHPBvWQ1u0B7HKFLljb0J7CwMU8E0OPqHZusmh2B0ZDTqTxcZ X1Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=djPbkyd1+SDPYk6mxzOjNnM2qu3TJB1XOhWLX2r26UY=; b=ecAW5OyE4sDhTeDVTHMBK+BS5q5LokOjXMr89L24TieGU1TV+gTRvzr5D+QzgPCCrG OQU0wax6Gzy9CKeHYSLcO65/sKsAiQKokprfAiRoSB2WGk6uAWeEcMvXEigHLmLhkjIF /K6dw5ZYO4isc+vLJomvwFUH8N1bVHmk6cN+71rMr2CluSc+1dmXkHMFkqhlCwRoIqM7 wPZFWpoNqRzaXwQ65fStDUpnFygrI2XPWcilokDcdPEZPHPFDtQ/d2ygtzEX9zN1uQh5 TsGEvHd3ZMt9/uMSEXcPiV5fsDDLeaZHdXO/j0Gk8jfqFyG2PgTTOBGZ3BnmqHm2Gsxs rUKA== 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 c8si25249391pfe.243.2019.01.25.00.10.14; Fri, 25 Jan 2019 00:10:29 -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 S1728524AbfAYIJu (ORCPT + 99 others); Fri, 25 Jan 2019 03:09:50 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:45013 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726219AbfAYIJu (ORCPT ); Fri, 25 Jan 2019 03:09:50 -0500 Received: by mail-ot1-f65.google.com with SMTP id g16so3762388otg.11; Fri, 25 Jan 2019 00:09:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=djPbkyd1+SDPYk6mxzOjNnM2qu3TJB1XOhWLX2r26UY=; b=lCU6NQaIA8SuIm9EqDBlh2kX1j6AhBAh238qY7kmJxDGJuwAegkCvfuc7gIsFpAJO1 T9dpZTZHal98cO3wXTGUO451YZnQ7nUtX3Disv7kPh+Bz6pgCDTGsT9hJq0rcn+fyD1D Oy1e44lAMvas0Rg/OTPbe+ELRjGDD//ZOwhp07MUEDKiCwxo8XKlWeODYHvqpNzSfia+ QNDdaWDq2Y+DyPZh3FjEYxaUAtKZPGBQ0xZdPi//Qm/HXr/Hr+sFhIDKTPo6Zx4yv3Lk jW5kzg8Iyx83x1WRRFxgMWMh7+DeCiQaGTd1MzmK5qpmg006+PUSi75ZwDHHK6Ug4hUw v1yA== X-Gm-Message-State: AJcUukeKxGM/PhQobcXld03NBAFFh1wihP6iDg9mBuIVQfwAdCI+ex1/ yBKI7FIP+2lzy/44Ai0P7Pyg825byq4/MBehJmg= X-Received: by 2002:a9d:3d24:: with SMTP id a33mr7164512otc.365.1548403788902; Fri, 25 Jan 2019 00:09:48 -0800 (PST) MIME-Version: 1.0 References: <20190124180724.20910-1-malat@debian.org> <20190124180724.20910-2-malat@debian.org> In-Reply-To: <20190124180724.20910-2-malat@debian.org> From: Mathieu Malaterre Date: Fri, 25 Jan 2019 09:09:38 +0100 Message-ID: Subject: Re: [PATCH 2/2] Bluetooth: Correctly annotate implicit fall through in __rfcomm_dlc_close To: Marcel Holtmann Cc: Peter Hurley , Johan Hedberg , "David S. Miller" , linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 24, 2019 at 7:07 PM Mathieu Malaterre wrote: > > 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=] Please discard, already fixed by : 6317950c1b9c Bluetooth: Mark expected switch fall-throughs > 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 >