Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1194018ybe; Fri, 13 Sep 2019 12:31:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqwgs/HMUynLBYxM5CsTkNRgkN1Tjl2yAynC8Cprr0WmaEc2ayX7q51SWsfV9oeDQ14na04c X-Received: by 2002:a17:906:5606:: with SMTP id f6mr40715723ejq.110.1568403110323; Fri, 13 Sep 2019 12:31:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568403110; cv=none; d=google.com; s=arc-20160816; b=isynqBJVdP11eG/i6SCZ2uyH5LR2Upyg5uzLauz9qW1be+Gn2T+G41GU9M9tOi9+Pm cWhKmu0sjrEuNmGOP7KdYhh+FK8CKzVSSMbmb8ueCn1EfHMx/GIHnAwcoa/o71CYeHp2 wqBPDq0LRJ/50LjCpkB3Mcf0HAbh7uaiEN3KYWypHf6GYnlFnlFNOEfB5ZzBWn5+yneh jGrUAvOzTriNZ1TXNn2+bETCTD89U8HiWzewZTTesvWLxWtV9bBCwPYw8Zfk/GtkFdi2 USI1zaHTZs/QEQSaOPazXrMNPP6henO6YJiJ1B+Ke5AOzbxmvkiooUhqvJQaXTWv2w09 KaUQ== 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:dkim-signature; bh=rrqyBJXWUQ16PunrNF8zt8vFNM7dGzrn1uN2ZDTIc38=; b=XyGMekS8ou6BZm6Mqa7cOYtK9GrFa281/YbdSo4keqrQj8BNwgW8UpxWMyKOUOX/bZ VXMIIsCLRELZ3x1+gxJoK3tCw3IfB2VOYFUglqSsKX6Bd/QFWuDO48M5t8/mW9tkEpoO ULgax65E8rvvVbiub+eTtYqMEGt4IvwdvWHP85s0re9rJYwnJ7S+EWJ8P66cnM7mA0LH e9khKg6yxPyiTMDKquPAPGA+3U/U0KzRdvXMOfT2BJFq6DnoYzjKjoWTiUVPGlVfCovL 8LYJpPAWzfK/iWLwKbRvUMw/GS/DDHGxNGTWJH1GRAc/0h1BTFtZhsUNx5ccHTcO30k1 7rMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=WYkiuNst; 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 jo17si13479571ejb.167.2019.09.13.12.31.26; Fri, 13 Sep 2019 12:31:50 -0700 (PDT) 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=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=WYkiuNst; 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 S2388295AbfIMSBi (ORCPT + 99 others); Fri, 13 Sep 2019 14:01:38 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:39252 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387935AbfIMSBh (ORCPT ); Fri, 13 Sep 2019 14:01:37 -0400 Received: by mail-io1-f66.google.com with SMTP id a1so6336146ioc.6 for ; Fri, 13 Sep 2019 11:01:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rrqyBJXWUQ16PunrNF8zt8vFNM7dGzrn1uN2ZDTIc38=; b=WYkiuNstUL4C1A6/IQCqTzer03XR1ChqSC4kgR1OcSkJQFGlbYACPK2h8EdfA/qqBd GoGsmX94Xxf3i8gIrwfafayJsVgMePf/V6ebIWmVWX9cZ5GaZ7745S7FAUFZPgYnO0Ft TDuX0vamwNxc3AUvtkUyfhcNm7b17L0B+o1LcV5fU+IZS8ZUiQMPJKcOeR+RFXx8sEog Q0jKrDzrhTfTe/MIFcg05mmu0EY/afa7vNV1MOaXHmyHrMNDIhNfT3QRldyMdScWxegG f7oGGpQvDt2+fD7qeLy2jTMmEnnsi0/BRfS3qvOhWT6FOZtwcVLiHn+18kU5pBdEkDvP LY4g== 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=rrqyBJXWUQ16PunrNF8zt8vFNM7dGzrn1uN2ZDTIc38=; b=mfsJeoYSbnI+oRVe3X3dnwakCy/dmtKempohB/mQG4p3yJVVkdLCLZvK8AaRBPt9jX N1zDhe6pQg4K5oReLu86rMJ4NDgw9Ha2X5ec/qJF0tfRFeOnnijFvUGoMloPmv9zbULy zuyKvw+ZuILD+xCM3jHvs3S+JojgiHvipYO9UrbeWUx5RdOa6SEgBJRySOj4H5p9TQKd z7xhAQsnIlA6WnI5jKm946xPKLsR6LfogRGAKDlHhQJT9jSXatceU8sfOPL1iLTSywGU FFh4dMO/v+3ZLrRopeZCbl2G30ag4CrjPH/l//TEgm7v1SBFv2H7q6ewrK3gQWiU+6N8 rNAQ== X-Gm-Message-State: APjAAAU2WbL3blQB6fVrajssHe4zCttitHayD82C3OkESFK3b5PxaF0I mZpVfI+4kUrCHS5SSRNK9gj4WRsGU5swme7nVTzfFw== X-Received: by 2002:a6b:b291:: with SMTP id b139mr1195741iof.281.1568397697093; Fri, 13 Sep 2019 11:01:37 -0700 (PDT) MIME-Version: 1.0 References: <20190729000631.GA24165@embeddedor> <201907290936.F5F486A6F@keescook> In-Reply-To: From: Olof Johansson Date: Fri, 13 Sep 2019 19:01:25 +0100 Message-ID: Subject: Re: [PATCH] usb: phy: ab8500-usb: Mark expected switch fall-throughs To: Kees Cook Cc: "Gustavo A. R. Silva" , Felipe Balbi , Greg Kroah-Hartman , linux-usb@vger.kernel.org, Linux Kernel Mailing List , Stephen Rothwell 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 Fri, Sep 13, 2019 at 7:00 PM Olof Johansson wrote: > > On Mon, Jul 29, 2019 at 5:36 PM Kees Cook wrote: > > > > On Sun, Jul 28, 2019 at 07:06:31PM -0500, Gustavo A. R. Silva wrote: > > > Mark switch cases where we are expecting to fall through. > > > > > > This patch fixes the following warnings: > > > > > > drivers/usb/phy/phy-ab8500-usb.c: In function 'ab8500_usb_link_status_update': > > > drivers/usb/phy/phy-ab8500-usb.c:424:9: warning: this statement may fall through [-Wimplicit-fallthrough=] > > > event = UX500_MUSB_RIDB; > > > ~~~~~~^~~~~~~~~~~~~~~~~ > > > drivers/usb/phy/phy-ab8500-usb.c:425:2: note: here > > > case USB_LINK_NOT_CONFIGURED_8500: > > > ^~~~ > > > drivers/usb/phy/phy-ab8500-usb.c:440:9: warning: this statement may fall through [-Wimplicit-fallthrough=] > > > event = UX500_MUSB_RIDC; > > > ~~~~~~^~~~~~~~~~~~~~~~~ > > > drivers/usb/phy/phy-ab8500-usb.c:441:2: note: here > > > case USB_LINK_STD_HOST_NC_8500: > > > ^~~~ > > > drivers/usb/phy/phy-ab8500-usb.c:459:9: warning: this statement may fall through [-Wimplicit-fallthrough=] > > > event = UX500_MUSB_RIDA; > > > ~~~~~~^~~~~~~~~~~~~~~~~ > > > drivers/usb/phy/phy-ab8500-usb.c:460:2: note: here > > > case USB_LINK_HM_IDGND_8500: > > > ^~~~ > > > drivers/usb/phy/phy-ab8500-usb.c: In function 'ab8505_usb_link_status_update': > > > drivers/usb/phy/phy-ab8500-usb.c:332:9: warning: this statement may fall through [-Wimplicit-fallthrough=] > > > event = UX500_MUSB_RIDB; > > > ~~~~~~^~~~~~~~~~~~~~~~~ > > > drivers/usb/phy/phy-ab8500-usb.c:333:2: note: here > > > case USB_LINK_NOT_CONFIGURED_8505: > > > ^~~~ > > > drivers/usb/phy/phy-ab8500-usb.c:352:9: warning: this statement may fall through [-Wimplicit-fallthrough=] > > > event = UX500_MUSB_RIDC; > > > ~~~~~~^~~~~~~~~~~~~~~~~ > > > drivers/usb/phy/phy-ab8500-usb.c:353:2: note: here > > > case USB_LINK_STD_HOST_NC_8505: > > > ^~~~ > > > drivers/usb/phy/phy-ab8500-usb.c:370:9: warning: this statement may fall through [-Wimplicit-fallthrough=] > > > event = UX500_MUSB_RIDA; > > > ~~~~~~^~~~~~~~~~~~~~~~~ > > > drivers/usb/phy/phy-ab8500-usb.c:371:2: note: here > > > case USB_LINK_HM_IDGND_8505: > > > ^~~~ > > > > > > Reported-by: Stephen Rothwell > > > Signed-off-by: Gustavo A. R. Silva > > > > Reviewed-by: Kees Cook > > Acked-by: Olof Johansson > > Felipe, Greg, this is still throwing warnings, several months later -- > patch was never applied. > > Mind picking it up as a fix to get a quieter build? Nevermind, I see they're gone from -next, so at least it's queued for next merge window. Sorry for the noise. -Olof