Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6033384ybc; Wed, 27 Nov 2019 13:46:50 -0800 (PST) X-Google-Smtp-Source: APXvYqw7ebQK90oBC2+F6ogBJoqBws1CSFO7DWgWZcd6k478dGvKM9f5MDBXMM+hDlENhkNuRjBl X-Received: by 2002:a17:906:c41:: with SMTP id t1mr50878569ejf.282.1574891210373; Wed, 27 Nov 2019 13:46:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574891210; cv=none; d=google.com; s=arc-20160816; b=Oty8jC+v9+uFWTPoxkt/XBTkGmpjkt7F07CgFDeiX7uAIGXcQLnUa5/2GhXPQrni9q OLRJdu8M30DH9z/7CLCnTv4V++lO+5tNbJdxLBfNVotCm+vuVhuiMwuOBmjaYXn43GLy 7vlqhym584E6F0Hd9MlTbSRaxYAzcZcx9tG68wydTSfu94bh6XaKcz04GGZ6vxw2TC8I wAz8baQWMGLEhVsIfHKaBhXlvTZlfeb6cOXp7rWfj2aNkzlFaIaFvpRqThY3EEKkR1tr u1n+nE1mO81Qay94KHW7p56jaPqZkvQeSW0jr2nKK31bBm0PZ1Pxz5ZpfG6mngWdtulX NX1A== 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=nB7QytYwP29hx8pHcN4XTS0NPwLaawQ5TOZSr4aisqY=; b=efawQVzmE292D0dlviqrptmbzbf14eV1q+/AU0XI5Tdqa64WNgeaVk71eJbEYUGMRV 0UI98wk5Ll5cer+C/s5FohdGCulduHm4WaFnuxg7IJxPc7nnWHKIKVoRGZZPyFfx8G4o eJDXIMvmtSN4hV3ulknAB1qfYP23dXFdapDIwKd9nF0y0ckPz83yfcn6PC5L/pSBoLSO QCDQHewqEzBkewGw9TeNzP+++XqFqDoPMqr468NhwkBuBF48R/XsbNB0tLEJLYrN/FoB 7eps/McW3c3v/PVqp86dfEsuqwlpu1a4KlWBh3cxKwbZzUmdmXUfIacXMpWrCp1pJw4d LPUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vBXFtrA5; 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 z65si12559527ede.388.2019.11.27.13.46.27; Wed, 27 Nov 2019 13:46:50 -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=vBXFtrA5; 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 S1728237AbfK0VmO (ORCPT + 99 others); Wed, 27 Nov 2019 16:42:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:45072 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729032AbfK0Uk1 (ORCPT ); Wed, 27 Nov 2019 15:40:27 -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 9591C215A4; Wed, 27 Nov 2019 20:40:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574887227; bh=F/ryplOLoyCK6W19sBZaQN24wr2gWrf1Q6aRTNdpz2Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vBXFtrA5YAWuiZz2vV8WsTl7xodkuX/pHnAvuy0Zmx++JBKcPqjNJKiFOQg494DVp yMB0sFqy1iulhJ5TvfnAG48CJIoLIoBhFYmyjobTia5GpDQjTDU/iStc44efbpk0dg q0f7hh3SMTHLcMsRODMnpc6AiROox458Qp+XEes0= 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.9 030/151] scsi: isci: Use proper enumerated type in atapi_d2h_reg_frame_handler Date: Wed, 27 Nov 2019 21:30:13 +0100 Message-Id: <20191127203019.778906319@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203000.773542911@linuxfoundation.org> References: <20191127203000.773542911@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 b709d2b208809..7d71ca421751d 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