qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] migration/multifd: Fix compile error caused by page_size usage
@ 2024-12-03 12:49 Shameer Kolothum via
  2024-12-03 13:17 ` Fabiano Rosas
  2025-01-12 13:04 ` Michael Tokarev
  0 siblings, 2 replies; 6+ messages in thread
From: Shameer Kolothum via @ 2024-12-03 12:49 UTC (permalink / raw)
  To: qemu-devel, peterx, farosas; +Cc: linuxarm, zhangfei.gao

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>
---
 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) {
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-01-13 12:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-03 12:49 [PATCH] migration/multifd: Fix compile error caused by page_size usage Shameer Kolothum via
2024-12-03 13:17 ` Fabiano Rosas
2024-12-03 17:31   ` Peter Xu
2024-12-03 17:59     ` Fabiano Rosas
2025-01-12 13:04 ` Michael Tokarev
2025-01-13 12:55   ` Fabiano Rosas

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).