qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Mike Maslenkin <mike.maslenkin@gmail.com>
Cc: qemu-devel@nongnu.org, jeuk20.kim@samsung.com,
	stefanha@redhat.com, Mike Maslenkin <mike.maslenkin@gmail.com>
Subject: [PATCH 1/3] hw/ufs: fix compilation warning
Date: Fri, 28 Jul 2023 02:34:03 +0300	[thread overview]
Message-ID: <20230727233405.35937-2-mike.maslenkin@gmail.com> (raw)
In-Reply-To: <20230727233405.35937-1-mike.maslenkin@gmail.com>

This patch fixes a compilation warning: implicit conversion from enumeration
type 'enum UfsRequestState' to different enumeration type 'UfsReqResult'
(aka 'enum UfsReqResult') [-Wenum-conversion]

ufs_exec_scsi_cmd() returns a value from UfsReqResult enum.

Cc: Jeuk Kim <jeuk20.kim@samsung.com>
Cc: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
---
 hw/ufs/ufs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/ufs/ufs.c b/hw/ufs/ufs.c
index 1760e0f88d70..af32366c8504 100644
--- a/hw/ufs/ufs.c
+++ b/hw/ufs/ufs.c
@@ -514,10 +514,10 @@ static UfsReqResult ufs_exec_scsi_cmd(UfsRequest *req)
     if (!is_wlun(lun)) {
         if (lun >= u->device_desc.number_lu) {
             trace_ufs_err_scsi_cmd_invalid_lun(lun);
-            return UFS_REQUEST_ERROR;
+            return UFS_REQUEST_FAIL;
         } else if (u->lus[lun] == NULL) {
             trace_ufs_err_scsi_cmd_invalid_lun(lun);
-            return UFS_REQUEST_ERROR;
+            return UFS_REQUEST_FAIL;
         }
     }
 
-- 
2.32.0 (Apple Git-132)



  reply	other threads:[~2023-07-27 23:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-27 23:34 [PATCH 0/3] hw/ufs: fix compilation warnings Mike Maslenkin
2023-07-27 23:34 ` Mike Maslenkin [this message]
2023-07-27 23:34 ` [PATCH 2/3] hw/ufs: fix compilation warning Mike Maslenkin
2023-07-27 23:34 ` [PATCH 3/3] hw/ufs: change ufs_process_db signature Mike Maslenkin
     [not found] ` <CGME20230727233426epcas2p42f9a359efad22cda0b6ae6cf5c200ea0@epcms2p3>
2023-08-01  0:08   ` [PATCH 0/3] hw/ufs: fix compilation warnings Jeuk Kim
2023-08-01 21:03 ` Philippe Mathieu-Daudé
2023-08-02  0:52   ` Jeuk Kim
2023-08-02  8:37     ` Mike Maslenkin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230727233405.35937-2-mike.maslenkin@gmail.com \
    --to=mike.maslenkin@gmail.com \
    --cc=jeuk20.kim@samsung.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).