Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1627714pxb; Tue, 17 Aug 2021 17:04:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgFIofgSx4cEXJcO+4cthcdh/N7xk3DYQeLOxykSaJrTZftm75BAf3vJMvhy5izN919mRQ X-Received: by 2002:a92:de4b:: with SMTP id e11mr4065010ilr.22.1629245088904; Tue, 17 Aug 2021 17:04:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629245088; cv=none; d=google.com; s=arc-20160816; b=hWqmY/kQ4fVKEqMY7zMGmCg0fPpDlcuiBFYA625VU8H4LwKgF+ymRFJMoP2sRLO9QN pAMjXzfn0DEMV1nnyEf+hh1hMMUJCM6T4PS+CDI/yTHSrwbru8t5G/9PEGSQnawQrtwv wiZPZ1QZT0BLa52XPNGV3orKZcNWGozehZf4Jpk5W8hkkz3nxPsyvSLQcBnc2ry7dzJX kb0+27UAekhg5dbtxBWfyx6NpcoLbtR4fSENSYJuY/GlMMRYGNm/ufUkv1ZpASfZNh4t Hsf+PoK7FfsD3XLg/cJeSve6agxG6Jz9+iD7mrKVAHL6SODsQVffVa8hYU0KTJPtOX+g nIFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=iQ7/KUtVSBl2ZF7aCwEPA/oEGhWJX+G5Tor9oPp//b0=; b=luKa+a5KazXmHWLnCBH8ExslKJJPM9WwY9iQg9vN2LcLkuZ1+sojJTo7aLz1PI/e+t z+YT5s/E3eaj5qFfhP+JdrMgvVAQrgeOT+wIcCTGGIzAwwZc4XGKv+Rvo3F/74uSdi21 sFZeRhR5qzWHEHAubxnQbimeaT0z2Va61u363cNkexuFGKnmW6Sn8s11UclUN8ghyZ/t DRiXmtSndOyKr/VrlcAdxsz1zK3GbQQo+kl0Vm7bIC7IHKpOnss0Nd5+SYBjoiQyw70U 0cU2tO5S7+RcpauVVdQHEeaw/gtunlJ6UnDKXI1Pc8jAhGM6Prf/G4o/an/zaZsF46uV phIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@embeddedor.com header.s=default header.b=GwgyHLFK; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o4si3705801iom.0.2021.08.17.17.04.30; Tue, 17 Aug 2021 17:04:48 -0700 (PDT) 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=fail header.i=@embeddedor.com header.s=default header.b=GwgyHLFK; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234435AbhHRAEV (ORCPT + 99 others); Tue, 17 Aug 2021 20:04:21 -0400 Received: from gateway32.websitewelcome.com ([192.185.145.102]:49213 "EHLO gateway32.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232706AbhHRAEU (ORCPT ); Tue, 17 Aug 2021 20:04:20 -0400 Received: from cm14.websitewelcome.com (cm14.websitewelcome.com [100.42.49.7]) by gateway32.websitewelcome.com (Postfix) with ESMTP id C6A0FDE61 for ; Tue, 17 Aug 2021 19:03:45 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id G93ZmTosr7sOiG93Zmwoaj; Tue, 17 Aug 2021 19:03:45 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=embeddedor.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=iQ7/KUtVSBl2ZF7aCwEPA/oEGhWJX+G5Tor9oPp//b0=; b=GwgyHLFKKMQck5mJqwxNWY4vTU 8A56XSwt+v7gd9lwTqN52riXiYtedRislJly+VXRTZMYvA+onvCiZSqcBqMeF5KE7ZMwGYWtNIpBf I07jy0bXlnOdQAvYjLyFSpg+SyU3JTsvjBT/4e36pu38VhuUbADV9cTN2Bp5qrR8liRgvXx4uc1L6 VhYUBp0anm0FLW6Wk6JD0wruvctUCBniH1FeDiE8XTnUS4F7oZx5D1IX67Ryt7VXrMQKc+b2qoFVq wWStR6lomgHCrYWoKQf3qf95+agwxENEsp0C+zqPoXRFfPhuGmuoeqEi0qEb3dfe9ypQ3jbiTJzGd 6FL2M9aw==; Received: from 187-162-31-110.static.axtel.net ([187.162.31.110]:44728 helo=[192.168.15.8]) by gator4166.hostgator.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1mG93Z-002CVZ-7Y; Tue, 17 Aug 2021 19:03:45 -0500 Subject: Re: [PATCH] scsi: st: Add missing break in switch statement in st_ioctl() To: Nathan Chancellor , =?UTF-8?Q?Kai_M=c3=a4kisara?= , "James E.J. Bottomley" , "Martin K. Petersen" , "Gustavo A. R. Silva" Cc: Nick Desaulniers , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com References: <20210817235531.172995-1-nathan@kernel.org> From: "Gustavo A. R. Silva" Message-ID: <5c2dd751-ba1d-efc1-54b8-2aa9968990c1@embeddedor.com> Date: Tue, 17 Aug 2021 19:06:49 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210817235531.172995-1-nathan@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 187.162.31.110 X-Source-L: No X-Exim-ID: 1mG93Z-002CVZ-7Y X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 187-162-31-110.static.axtel.net ([192.168.15.8]) [187.162.31.110]:44728 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 8 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/17/21 18:55, Nathan Chancellor wrote: > Clang + -Wimplicit-fallthrough warns: > > drivers/scsi/st.c:3831:2: warning: unannotated fall-through between > switch labels [-Wimplicit-fallthrough] > default: > ^ > drivers/scsi/st.c:3831:2: note: insert 'break;' to avoid fall-through > default: > ^ > break; > 1 warning generated. > > Clang's -Wimplicit-fallthrough is a little bit more pedantic than GCC's, > requiring every case block to end in break, return, or fallthrough, > rather than allowing implicit fallthroughs to cases that just contain > break or return. Add a break so that there is no more warning, as has > been done all over the tree already. > > Fixes: 2e27f576abc6 ("scsi: scsi_ioctl: Call scsi_cmd_ioctl() from scsi_ioctl()") I don't think this tag is needed for these patches. > Signed-off-by: Nathan Chancellor Reviewed-by: Gustavo A. R. Silva I also got the warnings in staging and ntfs3, I have the fixes for those in my local tree and I will commit them to my tree, soon. Thanks -- Gustavo > --- > drivers/scsi/st.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/scsi/st.c b/drivers/scsi/st.c > index 2d1b0594af69..0e36a36ed24d 100644 > --- a/drivers/scsi/st.c > +++ b/drivers/scsi/st.c > @@ -3828,6 +3828,7 @@ static long st_ioctl(struct file *file, unsigned int cmd_in, unsigned long arg) > case CDROM_SEND_PACKET: > if (!capable(CAP_SYS_RAWIO)) > return -EPERM; > + break; > default: > break; > } > > base-commit: 58dd8f6e1cf8c47e81fbec9f47099772ab75278b >