Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2060151pxp; Mon, 21 Mar 2022 10:23:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDKJit5dOzsXD1MxceU92kDqH/mksRLCADyhWWbIG8Q/Kh8B2pHMvbTc9R7fmxoPkGQD36 X-Received: by 2002:a05:6402:8d7:b0:419:1162:a507 with SMTP id d23-20020a05640208d700b004191162a507mr16574915edz.157.1647883401811; Mon, 21 Mar 2022 10:23:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647883401; cv=none; d=google.com; s=arc-20160816; b=ZHkTg2F+XJNrJWG9DZaY08V098AEPMEdapSRxHOEwY/lUDtginvxXK1ZLzCqx9zgLC 92+sCjiRvyPDcFQ+SqvtDH+6Y+bfsakHkUHEgTYJn9kGXzn94jlL/JmxtzXy/inupYBC m1hJnR/90M4EjgFOQ+4yOXSFrOXXBi0ukeuKbjoJFMMHDQI4TacCzEktcqu/mbPVspKa IpsP6Av5n/Yqq9Fj2Vahi15XwBmBczxJLOV9zpEvUQe56planjRXMrXVCHYShQUSl1cj +szw1oVOYy2LNKLR5iqs40TdAXIpIBe0naTEpOuBV429HHh1ZngrXxU/UKXLVkLxakko awbQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ENMKUrHCZOudvRHtAehTfcBN0mWzmRD42cEDUwxZdLg=; b=ErkUvkdPpWGFFEb+W1nLy6ew04RnQnaXZYOaqfYNvwVQK4wB8wiM48+Ow4tAn4YTz6 cHXYXnMjnPqaxfZsHmNx/1dX6ilfN2YaKmjCyRtDbUXvzz4sOz62nukIalYDjNruW4nh j0v5fu9Fgo22Wu4hclZ/W7fgC9rTBsS9Y3AizZc4AVd35AHh9AGyyJxHMCNWeA3NbYId cm4ZglMmL8oif5R0WsOD+jk79BjcfmA0qFev7olD2Orm/kSFO4+ZtU1ZK73elL1xPSy7 NI1e4K7kEUsPy6/ULvlmML4/wL6/G+IP98JOlHQswhHKptBGtLmYyKu6JUuz1v9NddFA 2amA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b="kdxZab/X"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nc31-20020a1709071c1f00b006df76385c9dsi9716897ejc.317.2022.03.21.10.22.37; Mon, 21 Mar 2022 10:23:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b="kdxZab/X"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242025AbiCSD7I (ORCPT + 99 others); Fri, 18 Mar 2022 23:59:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242015AbiCSD6s (ORCPT ); Fri, 18 Mar 2022 23:58:48 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3A0710BBFE; Fri, 18 Mar 2022 20:57:27 -0700 (PDT) Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 22J2t7Kc014720; Sat, 19 Mar 2022 03:57:21 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type : content-transfer-encoding; s=corp-2021-07-09; bh=ENMKUrHCZOudvRHtAehTfcBN0mWzmRD42cEDUwxZdLg=; b=kdxZab/XQ2yhdFvwYR3e3g78cDh9jCTGOKJx2PXIZFnsQTB0onjwmRN2e5bbyywKD7wr /adTQzJi3/QI4XABQYkWlB+FXZewiaWRVRksqRfYzpSVOgQcsBdqaLKlmrVaZtwRBzBX NDY3w8UPpJRwxJpYfwGkIQuvt9nob7NS3DkJGtnbTmiO3Z6vYJVo/IDx+BvEXodqBOhu 0KIgoiIrigFLFHPJKHEGFxrmUpnOOG+9eJ4WF9p47CNI2a66v4jAq5tzIHRzUPDdSBMN wdKzoh+8nOcDK7zfLVHvI/XKwfDRbFEwZunIhf29d5nx6D1ACu1f+w9O1DmVLtbDsNv/ vw== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com with ESMTP id 3ew6ss0176-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 19 Mar 2022 03:57:20 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.16.1.2/8.16.1.2) with SMTP id 22J3vKAV007347; Sat, 19 Mar 2022 03:57:20 GMT Received: from pps.reinject (localhost [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com with ESMTP id 3ew5kyshpy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 19 Mar 2022 03:57:20 +0000 Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 22J3v5R0007126; Sat, 19 Mar 2022 03:57:19 GMT Received: from ca-mkp.mkp.ca.oracle.com (ca-mkp.ca.oracle.com [10.156.108.201]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com with ESMTP id 3ew5kyshmn-12; Sat, 19 Mar 2022 03:57:19 +0000 From: "Martin K. Petersen" To: jejb@linux.ibm.com, Yang Li Cc: "Martin K . Petersen" , linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Abaci Robot Subject: Re: [PATCH -next] scsi: Remove ignoring unreachable code warning Date: Fri, 18 Mar 2022 23:57:02 -0400 Message-Id: <164766213031.31329.18166732732178921996.b4-ty@oracle.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220301080448.112813-1-yang.lee@linux.alibaba.com> References: <20220301080448.112813-1-yang.lee@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: wYmM5p4msxaHkJOR8g4Tj3ruIKrHTtOM X-Proofpoint-GUID: wYmM5p4msxaHkJOR8g4Tj3ruIKrHTtOM X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 1 Mar 2022 16:04:48 +0800, Yang Li wrote: > The smatch tool reported the following warning: > drivers/scsi/scsi_error.c:1988 scsi_decide_disposition() warn: ignoring > unreachable code. > > Remove the "default:return FAILED;" instead of "return FAILED;" reported > by smatch, because compilers can provide more useful diagnostics about > switch/case statements that do not have a default statement, especially > if the "switch" applies to a value with enumeration type. > > [...] Applied to 5.18/scsi-queue, thanks! [1/1] scsi: Remove ignoring unreachable code warning https://git.kernel.org/mkp/scsi/c/e1b353e7a31d -- Martin K. Petersen Oracle Linux Engineering