Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5988107ybc; Wed, 27 Nov 2019 12:59:13 -0800 (PST) X-Google-Smtp-Source: APXvYqyfBgo/bSuFf/QANKL00l0Kk/nEdzPtYxCBI8hWHenlXdxj4CI3b/9A1nv7fm11y0OBFdHi X-Received: by 2002:a17:906:14d5:: with SMTP id y21mr9965728ejc.212.1574888353640; Wed, 27 Nov 2019 12:59:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574888353; cv=none; d=google.com; s=arc-20160816; b=d79MGlvD+BYLOgRZlgKv+95WDsnId6+s8d0S8Z71uMkUslSJ11bba1A3YVp75nYPmp jI5ADtVXJTknzM43NPKOB2NxBhQgyI/gh2C+dVaFMh1yIlFfMuN/2LrLl/hbTXyN54T+ nmDnDNjZ0zs0kGXqlh3SptCVE+EEb2SCUkWhcapLzMbBpwLBkK0y2pcuQlmgQeJgMSTQ xffZSMN4gRtDNFQNDZ35p7f+bFWR6QiAjl17TCqzwjKTNwY5FMRmmAjny0apl0mqBXHv 8N7tpPAi0aEltdhMQTaPA8SieJ2CvmEoHKahp9Cc3n1OaEX1Z/GocHIUXQqZ/SVhg3xM x7YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=HcXT2KvdEpbsVpLlYSk5PHWVzKqV1rt5PkHafnREkgA=; b=CRhD5RpjboqNxYJEqcNDFA/29w21kDdzDXcIWnOFXX6MDTUKfnGpm13cnHvTq+X2wV NK8z8MA7RKzaQ+49M3vLR9aOkJIzy4BBtv8eyWmhmPSrq9g4GVuTwuus/GjzoS2n/y/H DnJrzvDGhG6UnehiK7vjjyJCSaxXKtj9UwxjXh8fP6uLVsruM+xYQ5xpqZMu2GMu0hI2 mPHpuaAELcv8z99cv+jRizKx0615irkydLlWRtnyqqh79tRs1KG1cO8udm0Ec4yMsw7X LHXI8NDCZNNAY0mYzAfONFVWVQzU+6v7SdXX0R9T0qOW+uQYdKOnYhIs4JjKImucGEbZ /Vcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mqHkS8xT; 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 n16si1902175eda.345.2019.11.27.12.58.50; Wed, 27 Nov 2019 12:59:13 -0800 (PST) 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=@kernel.org header.s=default header.b=mqHkS8xT; 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 S1730992AbfK0U55 (ORCPT + 99 others); Wed, 27 Nov 2019 15:57:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:49014 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730688AbfK0U5x (ORCPT ); Wed, 27 Nov 2019 15:57:53 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 ED61E20862; Wed, 27 Nov 2019 20:57:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888272; bh=RUmIk2AyAHnF+oOB0qFKnfPjkDLo8tbmg3+ir3tzxSg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mqHkS8xT67Qj1lAlAhQXmasSNIRbbD0GkfHDaQBqfcHQdathyMflw6E3jxeL/mTwN HlY5cXADhPP8S8wiT4SYnc22TUGR433DCx5GODmWytGQBDmcDtds/2/bfd0IBJv0y/ 30n1itdA/VGaC9ZR/cB75mvOBIDL3Dic407jazIA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nathan Chancellor , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 4.19 070/306] scsi: isci: Use proper enumerated type in atapi_d2h_reg_frame_handler Date: Wed, 27 Nov 2019 21:28:40 +0100 Message-Id: <20191127203119.915281460@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nathan Chancellor [ Upstream commit e9e9a103528c7e199ead6e5374c9c52cf16b5802 ] Clang warns when one enumerated type is implicitly converted to another. drivers/scsi/isci/request.c:1629:13: warning: implicit conversion from enumeration type 'enum sci_io_status' to different enumeration type 'enum sci_status' [-Wenum-conversion] status = SCI_IO_FAILURE_RESPONSE_VALID; ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/scsi/isci/request.c:1631:12: warning: implicit conversion from enumeration type 'enum sci_io_status' to different enumeration type 'enum sci_status' [-Wenum-conversion] status = SCI_IO_FAILURE_RESPONSE_VALID; ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ status is of type sci_status but SCI_IO_FAILURE_RESPONSE_VALID is of type sci_io_status. Use SCI_FAILURE_IO_RESPONSE_VALID, which is from sci_status and has SCI_IO_FAILURE_RESPONSE_VALID's exact value since that is what SCI_IO_FAILURE_RESPONSE_VALID is mapped to in the isci.h file. Link: https://github.com/ClangBuiltLinux/linux/issues/153 Signed-off-by: Nathan Chancellor Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/isci/request.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/isci/request.c b/drivers/scsi/isci/request.c index ed197bc8e801a..2f151708b59ae 100644 --- a/drivers/scsi/isci/request.c +++ b/drivers/scsi/isci/request.c @@ -1626,9 +1626,9 @@ static enum sci_status atapi_d2h_reg_frame_handler(struct isci_request *ireq, if (status == SCI_SUCCESS) { if (ireq->stp.rsp.status & ATA_ERR) - status = SCI_IO_FAILURE_RESPONSE_VALID; + status = SCI_FAILURE_IO_RESPONSE_VALID; } else { - status = SCI_IO_FAILURE_RESPONSE_VALID; + status = SCI_FAILURE_IO_RESPONSE_VALID; } if (status != SCI_SUCCESS) { -- 2.20.1