qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] migration/multifd: Fix compile error caused by page_size usa


From: Michael Tokarev
Subject: Re: [PATCH] migration/multifd: Fix compile error caused by page_size usage
Date: Sun, 12 Jan 2025 16:04:44 +0300
User-agent: Mozilla Thunderbird

03.12.2024 15:49, Shameer Kolothum via wrote:
 From Commit 90fa121c6c07 ("migration/multifd: Inline page_size and
page_count") onwards page_size is not part of MutiFD*Params but uses
an inline constant instead.

However, it missed updating an old usage, causing a compile error.

Fixes: 90fa121c6c07 ("migration/multifd: Inline page_size and page_count")
Signed-off-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>

This looks like a qemu-stable material, is it not?

I wonder how come thie code hasn't been compiled since 90fa121c6c07.

/mjt

  migration/multifd-uadk.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/migration/multifd-uadk.c b/migration/multifd-uadk.c
index 6e6a290ae9..6895c1f65a 100644
--- a/migration/multifd-uadk.c
+++ b/migration/multifd-uadk.c
@@ -169,7 +169,7 @@ static int multifd_uadk_send_prepare(MultiFDSendParams *p, 
Error **errp)
              .src_len = page_size,
              .dst     = buf,
              /* Set dst_len to double the src in case compressed out >= 
page_size */
-            .dst_len = p->page_size * 2,
+            .dst_len = page_size * 2,
          };
if (uadk_data->handle) {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]