Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1623247pxb; Tue, 17 Aug 2021 16:58:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKNvFhhi9eT7hMA1oJRsrfclEVtUjz5GrxLMZsFqekyX9RR0//bskaflGvVOlYuyHKtl9r X-Received: by 2002:a17:906:fc16:: with SMTP id ov22mr6597586ejb.45.1629244681675; Tue, 17 Aug 2021 16:58:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629244681; cv=none; d=google.com; s=arc-20160816; b=FRb2faRvnSXJF59eL3U66eXgZIynKecoj3vA+Ke/kp/wGJeqROi03NivCapVSJvyUb 2uE6tTzBSAHYe87RQMU2t8qmjgzaW7HO26587GGZtFfdtgxf+JomQf/FCYE+fBAT+Jeh PBxPK9geR6GMzfU5ArDzlZdlFWFtQGIW+zooOdMAQ/aGW9dqlFqgnNsPNiVA7I39AsGp f3p3LkJqL404ltwpO0Nw+f1NQdPLvOLVbMSLcVItlN76BBmbwklA3u4P114DWP5Bo41U mezEmEz7jv9/tGVk/bSF13gRgXhCkCX+Im5EC5pZFTxb77QByrHdhPopKn4IPB2L4zRG /FJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=IAqn5Isriwmwxy2Wsr+/XwNAllFx3YE3+ykOrRTojWE=; b=ldjfmznlu0ixvAyAXeOqBG8P+fB3ZfI0YYt2mc2Cme9LGevWyKb+HEzbVwA1mEFcRT WZltiYBXSgN49FXrZjhv/eXs5CjecbkOIi4bNrKlBA7J4AiLETMHzsn+7tkKAtWnD9Yz wUvQTvmNa4cNmINfE6BWgdsqsbAhvzwLCXt34ZTqzvY9bgIVvRgzYb2swr5v4TGkuc52 zBHIT4wLtF3QCc2vOJfIRL/fOkSieUor0zEECgOUN1gFezksKBUVByda26aaeRwf5J+s nPibClr9drfvXaFyWqS8biHcojvLeUcHACKtGS2a/DRvL4/O/WTaV2x5wnTX2V1Tbyut NJ7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ga+ag2Pn; 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 l3si4142317ejo.634.2021.08.17.16.57.38; Tue, 17 Aug 2021 16:58:01 -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=pass header.i=@kernel.org header.s=k20201202 header.b=Ga+ag2Pn; 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 S236860AbhHQX4P (ORCPT + 99 others); Tue, 17 Aug 2021 19:56:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:47046 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236831AbhHQX4O (ORCPT ); Tue, 17 Aug 2021 19:56:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E7E3B61026; Tue, 17 Aug 2021 23:55:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629244540; bh=1tXm1ZK5eBuqFdwalK+JaYUMeBrtRzBzZQUvOp4atGs=; h=From:To:Cc:Subject:Date:From; b=Ga+ag2Png9FbqmvQdyueg11z+BncKy0TBP0Leb8uBg2dgVibDy7Jg/lPnht3nM7hq reIZHdd97CyKrkrsHTnogsNItJ3/P4L50TnLdtU4xH9A59y+9dN/3sqV4wPl9+H8FU xjvWc4wTtbGoV2iuw+KfO9ndBmGA7a+Hrfdcv2NM5g9owwoyeJuluwbz9aH7hRydh/ hKyh/dPkaZI5B+lm2LX+cPvs9a0kBUB0gNpJ6mLV8FEPm4ixQmM75MDif3Qy1BFVrT LSlBOcVRRZ02eh3qW5Ulp/UKCeT5RZNW7epedJTuvJQVdKq9kYZONBHFeOmW3H2rXs nVKO+5OXUPd7A== From: Nathan Chancellor To: =?UTF-8?q?Kai=20M=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, Nathan Chancellor Subject: [PATCH] scsi: st: Add missing break in switch statement in st_ioctl() Date: Tue, 17 Aug 2021 16:55:31 -0700 Message-Id: <20210817235531.172995-1-nathan@kernel.org> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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()") Signed-off-by: Nathan Chancellor --- 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 -- 2.33.0