Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1485821pxb; Fri, 20 Nov 2020 10:36:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJwAKKztZGJ8RUe2+11KhmfD/AD46hLSan81Tu3PIi2SRWsaKJbwogVOkqzOjFz/z5NvA/Vb X-Received: by 2002:a17:906:b20c:: with SMTP id p12mr33639278ejz.369.1605897371225; Fri, 20 Nov 2020 10:36:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605897371; cv=none; d=google.com; s=arc-20160816; b=l4uaNTL7l5MTyr3Vdk6rwAlhCVRL3xerCwKKMIxoke40/6gHhb3TIeAnIgTEcJidHX iiukSahsDYwugRAjx0nuSLe1+Vp7GS9MFH2quh8iF5wnSH4dWOHmBHdObQQi+ox8xZRK 5sxALImTtXkPPHf8XSu/0Zj57JosmfGp7Gcy8a3zEBqbTGHDxfHMJulETBXwU6O5hrpI 7YOPySTxc+Cd3bS6simyPI6Ee5475JvT9kTLdn2lVjxPgh47oePjqx6tR6ypWi6mpQTi pr8ezgmDscOX1tfLseZvskexDVnzXgCs93lLRV5TOEEIcU0ilOMQcAWy7EgUq3QTKZGh +6SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=bBBrPtTJmOo1pWv+OyWy5LXBmwUp+cKDP51512x3dvc=; b=UHgo6bK7XmHNVu2eKBAKaCaqUsU/oGorKz4set/NyOTm+9eJGCCD70kqSwzfXSxpH2 XIi1YIxq7LcQVj3tFQqQUNeydzUITsHYso/iGL1idPQpvMoAL0LnqVKl1IoOfNYvkJaD 6WIL5XQZ2Q4BdCW/rcx5hqYyvwPURJ/pVSySZXz3wLUQ5t6iXnRS5Koy38+O+WrbuEFz XsQirQJQ7mcVv7esySE1VhNX5G2OSk0572gHk/rgl4iZY6OZ79obyyQTPhbgXxSCCK3K BQCMVM2erHYamv6sHAN29Zx2QXJMS6RAZ+34qw5EiW9k5gwEnc6WayXkWoYR28TfF/uf TSeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1qAYtGR0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id p14si1302961edy.528.2020.11.20.10.35.48; Fri, 20 Nov 2020 10:36:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1qAYtGR0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1730875AbgKTSeg (ORCPT + 99 others); Fri, 20 Nov 2020 13:34:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:53108 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729952AbgKTSee (ORCPT ); Fri, 20 Nov 2020 13:34:34 -0500 Received: from embeddedor (187-162-31-110.static.axtel.net [187.162.31.110]) (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 87D0222470; Fri, 20 Nov 2020 18:34:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605897274; bh=pNUFEE16O9q1lV79zGxWuVcJGvY5m6bMjPJFWzou+m8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=1qAYtGR0yoZVgzXkrY8ihvySutVvfR0l/auGAHC69QBHKGTs1eRqubAV3V4yh3uc5 XfKrnN90Y0I9sTLO+QaUEl3sEmV44k6cEJSMocI6ap6+2Ej3b0RRFyYeZ15PUFY5kM WJFfzbTXZPyBjOSqqlVTDJtvxR0dJKLoRPqObw04= Date: Fri, 20 Nov 2020 12:34:40 -0600 From: "Gustavo A. R. Silva" To: Wolfgang Grandegger , Marc Kleine-Budde , "David S. Miller" , Jakub Kicinski Cc: linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH 072/141] can: peak_usb: Fix fall-through warnings for Clang Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva --- drivers/net/can/usb/peak_usb/pcan_usb_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/can/usb/peak_usb/pcan_usb_core.c b/drivers/net/can/usb/peak_usb/pcan_usb_core.c index c2764799f9ef..fd65a155be3b 100644 --- a/drivers/net/can/usb/peak_usb/pcan_usb_core.c +++ b/drivers/net/can/usb/peak_usb/pcan_usb_core.c @@ -299,6 +299,8 @@ static void peak_usb_write_bulk_callback(struct urb *urb) if (net_ratelimit()) netdev_err(netdev, "Tx urb aborted (%d)\n", urb->status); + break; + case -EPROTO: case -ENOENT: case -ECONNRESET: -- 2.27.0