From patchwork Thu Jul 27 23:34:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Maslenkin X-Patchwork-Id: 13330980 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D6ED5EB64DD for ; Thu, 27 Jul 2023 23:54:59 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qPAV0-0008RM-Ny; Thu, 27 Jul 2023 19:34:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qPAV0-0008R4-1y for qemu-devel@nongnu.org; Thu, 27 Jul 2023 19:34:26 -0400 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qPAUy-0001D5-FT for qemu-devel@nongnu.org; Thu, 27 Jul 2023 19:34:25 -0400 Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-4fba8f2197bso2534215e87.3 for ; Thu, 27 Jul 2023 16:34:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690500863; x=1691105663; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KSbLpaSE+UAqzzlGuBowjxWnHVXq8GMPqVPL807lgMY=; b=m95MRWpXiierAa4OwQTdjTUtYLIRYVKH0NFMPi0ZUZw6z8ncm2+8fMTKU5iuH8KPXe swtNiPcjc3Jg+eWiQ2aVbYqbKDNiRhJ6eluGS6ZEmI35uNuLzb8WetD2tEsQ5ra7Xqq4 FcGPRBZArg32V3KkimcZQazaWHgXb2+qrDpFRXO2jcbdHbiBthJMKFusaJpYbGQAeFW/ T1/LGMy0Pp+0FfDs3+yF8KzwavKpq0wdSIBl4a5Nar5+QJigA8Rp7CH7SApniXYHLzNr 6JKxsCQgl6fysWWQ1EcB/iYMKfYhyXInW7X0EZFNrTtUVSQLEeK+DS6WOjMoVZpy16fR yGbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690500863; x=1691105663; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KSbLpaSE+UAqzzlGuBowjxWnHVXq8GMPqVPL807lgMY=; b=EGZ1aCNaiUrAufi9KhH9bQaCay/TZDiHpp4Dv6hOa0YhCrvsYyl6DxTau0RtmoTEVv 1WGBcepzrZRCs70VxcoQd45p8fNiAAOycIz0lczHZ8QeAL51vXLRPN4/zR89gbZaT17I uK3Afh2snunVFG55BregxFuIugSSGBjf6zgHz6h8adsVSRA55JakqCgPBTUS8Jig3Jcu FTPywlRl4kNw+0/LPmMP2RsagShVd1oh2+TaoevJlsR0fQpbd8PXTEhlHkqdCUUZ+w+2 W1/rEirEF8dC2rxkeMqC0xlVKpmeL0frOGwfrGOVkFMBvhZ03AKgFt3wjUoHoRhCbUi/ /H+A== X-Gm-Message-State: ABy/qLYcCaOtXnMiwUTs1lBHcxC8r7YkR/UqCu5BKxEC9x2L1pfiJmUG jOPmT4IwiECVu4Kv/LfSH5rkpAUTRoGEow== X-Google-Smtp-Source: APBJJlGqze5h7e2ZCo2gBJwfiuCrFatP/r5yjjxXS71yyokgrVE7Vy4CQnt8+jA5bnMPMzvP5AH2CQ== X-Received: by 2002:ac2:4f0c:0:b0:4fe:193a:e15c with SMTP id k12-20020ac24f0c000000b004fe193ae15cmr483321lfr.40.1690500862523; Thu, 27 Jul 2023 16:34:22 -0700 (PDT) Received: from localhost.localdomain ([185.9.78.206]) by smtp.gmail.com with ESMTPSA id h16-20020ac25970000000b004fe0de39fddsm528241lfp.290.2023.07.27.16.34.21 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 27 Jul 2023 16:34:22 -0700 (PDT) From: Mike Maslenkin To: Cc: qemu-devel@nongnu.org, jeuk20.kim@samsung.com, stefanha@redhat.com, Mike Maslenkin Subject: [PATCH 1/3] hw/ufs: fix compilation warning Date: Fri, 28 Jul 2023 02:34:03 +0300 Message-Id: <20230727233405.35937-2-mike.maslenkin@gmail.com> X-Mailer: git-send-email 2.32.0 (Apple Git-132) In-Reply-To: <20230727233405.35937-1-mike.maslenkin@gmail.com> References: <20230727233405.35937-1-mike.maslenkin@gmail.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::12f; envelope-from=mike.maslenkin@gmail.com; helo=mail-lf1-x12f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org 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 Cc: Stefan Hajnoczi Signed-off-by: Mike Maslenkin --- 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; } } From patchwork Thu Jul 27 23:34:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Maslenkin X-Patchwork-Id: 13330978 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 48C03EB64DD for ; Thu, 27 Jul 2023 23:51:21 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qPAV2-0008S4-HK; Thu, 27 Jul 2023 19:34:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qPAV1-0008Rb-7E for qemu-devel@nongnu.org; Thu, 27 Jul 2023 19:34:27 -0400 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qPAUz-0001DE-EF for qemu-devel@nongnu.org; Thu, 27 Jul 2023 19:34:26 -0400 Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-4fbf09a9139so2661728e87.2 for ; Thu, 27 Jul 2023 16:34:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690500864; x=1691105664; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4x4X9HcXunJY2e/nTLa6Qqic/2+/FjTj0qiz3rIHmF4=; b=CTpJzr6ZhDKw6AEuyW0jKtUK8PJiWuER/FSeczcFs543Wr0QknoRVpOwvzwe3DkBuS Ia93iGwUp4veX0RdBsKySLQK0LMoswt/whpt1Rhu7Cp67Cx2N59cgRNkcZn+yKlOpZcO CbrtBLVRmBS8n5jPZLfWIN+7lDuBkMkBMxqyXrEs1i3Q5vfGxhHYH2qg94K39eMVGqoA OnMWn1BHGdH3Tkizf5fzsHanEVzfeCjeDi7iYaZME4nnyDymmWEBCSc+oXKi4DNWI222 0A1a812BoGHSqVNhckf9ctjoGwQiPtA2+LRqeIRhengKUfIGk5HjzRdM29auZDXRzQF6 ytJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690500864; x=1691105664; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4x4X9HcXunJY2e/nTLa6Qqic/2+/FjTj0qiz3rIHmF4=; b=EGQFIP8kF7KrrSWc5a8bncttcgI9TKwSZjjSpYDdEK6h5aMCZkX4vWUNGxcSmifTLG utLK+p2iZQgTWoJX4IQJ3vCNBF3AZaWdMDd4l0EK8ntwP8IwuQRVNVOO2CPn2MMl8ngx 5w0TUYwu0POk4VQUzKfVbFyB8ZSENeqewO40I/DEeLwv1rFUs/2FlIKJ8DRagmQZhRR8 h9VwJSji10bCfMCprMD1jboXFfwvj8rgvzy4iB14jR/bgBzjS24H+8gU5J0wWMNE+jmW VzdcAMDYQ+OUxVh1Z3rxYx5WOaCUt4a1n7UnHzcqk2bHRFYxPl/LrJlr1hayOgcRNGzp 486g== X-Gm-Message-State: ABy/qLbz9B24F6bZCiNU+cZ9UbgIkXvK7/lrn+NX4GPmB9ZoQW2tkRrD fg8pL+ZQ9GtmZG//PPsF4wB6APzrX4mzsg== X-Google-Smtp-Source: APBJJlETZWji3DBlt44VPf2FKGtVKZsFRyjHu24EX01WXtEumJ88XWHWekFZ4+r7vO2STEO8gAqwNQ== X-Received: by 2002:a19:7401:0:b0:4fe:825:a081 with SMTP id v1-20020a197401000000b004fe0825a081mr376145lfe.45.1690500863403; Thu, 27 Jul 2023 16:34:23 -0700 (PDT) Received: from localhost.localdomain ([185.9.78.206]) by smtp.gmail.com with ESMTPSA id h16-20020ac25970000000b004fe0de39fddsm528241lfp.290.2023.07.27.16.34.22 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 27 Jul 2023 16:34:23 -0700 (PDT) From: Mike Maslenkin To: Cc: qemu-devel@nongnu.org, jeuk20.kim@samsung.com, stefanha@redhat.com, Mike Maslenkin Subject: [PATCH 2/3] hw/ufs: fix compilation warning Date: Fri, 28 Jul 2023 02:34:04 +0300 Message-Id: <20230727233405.35937-3-mike.maslenkin@gmail.com> X-Mailer: git-send-email 2.32.0 (Apple Git-132) In-Reply-To: <20230727233405.35937-1-mike.maslenkin@gmail.com> References: <20230727233405.35937-1-mike.maslenkin@gmail.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::12a; envelope-from=mike.maslenkin@gmail.com; helo=mail-lf1-x12a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org This patch fixes compilation warning, since argument to ufs_process_db() passed to find_first_bit() that expects unsigned long value. The exact warnings are: warning: incompatible pointer types passing 'uint64_t *' (aka 'unsigned long long *') to parameter of type 'const unsigned long *' [-Wincompatible-pointer-types] slot = find_first_bit(&val, nutrs); ^~~~ warning: incompatible pointer types passing 'uint64_t *' (aka 'unsigned long long *') to parameter of type 'const unsigned long *' [-Wincompatible-pointer-types] slot = find_next_bit(&val, nutrs, slot + 1); ^~~~ Cc: Jeuk Kim Cc: Stefan Hajnoczi Signed-off-by: Mike Maslenkin --- 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 af32366c8504..b0656e47598e 100644 --- a/hw/ufs/ufs.c +++ b/hw/ufs/ufs.c @@ -267,7 +267,7 @@ static void ufs_process_db(UfsHc *u, uint64_t val) return; } - slot = find_first_bit(&val, nutrs); + slot = find_first_bit((unsigned long *) &val, nutrs); while (slot < nutrs) { req = &u->req_list[slot]; @@ -283,7 +283,7 @@ static void ufs_process_db(UfsHc *u, uint64_t val) trace_ufs_process_db(slot); req->state = UFS_REQUEST_READY; - slot = find_next_bit(&val, nutrs, slot + 1); + slot = find_next_bit((unsigned long *) &val, nutrs, slot + 1); } qemu_bh_schedule(u->doorbell_bh); From patchwork Thu Jul 27 23:34:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Maslenkin X-Patchwork-Id: 13330977 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3D2F8EB64DD for ; Thu, 27 Jul 2023 23:37:07 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qPAV7-0008Sp-Ls; Thu, 27 Jul 2023 19:34:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qPAV1-0008Rj-H8 for qemu-devel@nongnu.org; Thu, 27 Jul 2023 19:34:27 -0400 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qPAV0-0001DI-1I for qemu-devel@nongnu.org; Thu, 27 Jul 2023 19:34:27 -0400 Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-4fb960b7c9dso2752080e87.0 for ; Thu, 27 Jul 2023 16:34:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690500864; x=1691105664; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zWDN8OQ7S1a/kBflaC/qAdwP0GllihYkz9NZehoKxpM=; b=o2I14X4vOjr7lIVCpUdmkBl8LPNtyzDobd/aIpZ4XQY/nX/Ss6hWvG/FdZ3JaMZt9N HMLo/HqYP7dT8PBELeJbfmIBr5QgEcfoyfv6pmwtLLSVqKjcPP3BROn6zwEbVw6vwgyV 3zJK4AtYi0f9m5Ak9TxhC/+UQ5aj7UefaJ5HIQY5eRyHTrHuFvFyp4GS77vvqwVoc69J i0hW/RyDa07DZVj7ipNdurToQqCvlbR5AwhkNfVMJlJ6z8CaOXWUI0HmZekz6lmryl9r wA4dOI5BE/zQQrbQvRK7L17RE0I7YksdYGf9P7mqs6HWs8uKiafaEiF1n8G08Kpif/ub 8gpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690500864; x=1691105664; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zWDN8OQ7S1a/kBflaC/qAdwP0GllihYkz9NZehoKxpM=; b=PdiwwXWq5bNu/yYh2kxvZR52C0aR44yIoO81vtQ1EMUtzgTvPmyap1SGhJhjcn1NnP OaXfOEmnO2+U/lnPxuxrqRgitxqpyfMxP4cEoadN/lE8e5DAEbphLO9+VKmfJUBYWsy1 SijOlH9Qz1Pun7r9qsPsi+vOM9PH5pg4kx8wNIVcxRT91WAgs+8bP5uzF2/h1v2WJh8M 34ESyYyakRnSun6i77dx6E2ORhT0gAEYcq3bHW1agMwYYlGjmrEQBnJc5Lqevi6dP51L Lkl6m5i4ZTQ1BNoJqT0MJPvW2dzsefvIcQxYOb654E5CPTsVd82sLgEXCU4N9LSLcs0h 2Gsw== X-Gm-Message-State: ABy/qLZK65EERzHtRonWZmzMs6y6Irn6ue7FqWg97qKfWykRJm57KM76 sbmKHpUhCyOEltyfvOsGvEcQdnadN89F+Q== X-Google-Smtp-Source: APBJJlFV7By6X1CnP4vmdLnehqJoQD/NMgSB0HXPm9ojPiiHZeZe5+z7h0nz1uSpRW1UvBHxcDMMXg== X-Received: by 2002:a05:6512:605:b0:4fb:780d:2a49 with SMTP id b5-20020a056512060500b004fb780d2a49mr415704lfe.5.1690500864192; Thu, 27 Jul 2023 16:34:24 -0700 (PDT) Received: from localhost.localdomain ([185.9.78.206]) by smtp.gmail.com with ESMTPSA id h16-20020ac25970000000b004fe0de39fddsm528241lfp.290.2023.07.27.16.34.23 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 27 Jul 2023 16:34:23 -0700 (PDT) From: Mike Maslenkin To: Cc: qemu-devel@nongnu.org, jeuk20.kim@samsung.com, stefanha@redhat.com, Mike Maslenkin Subject: [PATCH 3/3] hw/ufs: change ufs_process_db signature Date: Fri, 28 Jul 2023 02:34:05 +0300 Message-Id: <20230727233405.35937-4-mike.maslenkin@gmail.com> X-Mailer: git-send-email 2.32.0 (Apple Git-132) In-Reply-To: <20230727233405.35937-1-mike.maslenkin@gmail.com> References: <20230727233405.35937-1-mike.maslenkin@gmail.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::133; envelope-from=mike.maslenkin@gmail.com; helo=mail-lf1-x133.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Actually UTRLDBR is 32bit register. There is no need to pass 64bit value to ufs_process_db() function. Cc: Jeuk Kim Cc: Stefan Hajnoczi Signed-off-by: Mike Maslenkin --- hw/ufs/ufs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ufs/ufs.c b/hw/ufs/ufs.c index b0656e47598e..af57ba6df02c 100644 --- a/hw/ufs/ufs.c +++ b/hw/ufs/ufs.c @@ -256,7 +256,7 @@ static void ufs_irq_check(UfsHc *u) } } -static void ufs_process_db(UfsHc *u, uint64_t val) +static void ufs_process_db(UfsHc *u, uint32_t val) { uint32_t slot; uint32_t nutrs = u->params.nutrs;