1be5c7
From 3b567f762cbd8d4ffaf717b0baba9cf9fe9614c2 Mon Sep 17 00:00:00 2001
1be5c7
From: Juan Quintela <quintela@redhat.com>
1be5c7
Date: Wed, 18 May 2022 02:52:23 -0300
1be5c7
Subject: [PATCH 03/37] multifd: Add missing documentation
1be5c7
MIME-Version: 1.0
1be5c7
Content-Type: text/plain; charset=UTF-8
1be5c7
Content-Transfer-Encoding: 8bit
1be5c7
1be5c7
RH-Author: Leonardo Brás <leobras@redhat.com>
1be5c7
RH-MergeRequest: 191: MSG_ZEROCOPY + Multifd @ rhel8.7
1be5c7
RH-Commit: [3/26] 924fca4305ebd8669955d456fc1c515f509e6026
1be5c7
RH-Bugzilla: 2072049
1be5c7
RH-Acked-by: Peter Xu <peterx@redhat.com>
1be5c7
RH-Acked-by: Daniel P. Berrangé <berrange@redhat.com>
1be5c7
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
1be5c7
1be5c7
Signed-off-by: Juan Quintela <quintela@redhat.com>
1be5c7
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
1be5c7
(cherry picked from commit 18ede636bc29fd8bda628fe3e5c593f8c1b734f4)
1be5c7
(fixed typo in commit message)
1be5c7
Signed-off-by: Leonardo Bras <leobras@redhat.com>
1be5c7
---
1be5c7
 migration/multifd-zlib.c | 2 ++
1be5c7
 migration/multifd-zstd.c | 2 ++
1be5c7
 migration/multifd.c      | 1 +
1be5c7
 3 files changed, 5 insertions(+)
1be5c7
1be5c7
diff --git a/migration/multifd-zlib.c b/migration/multifd-zlib.c
1be5c7
index ab4ba75d75..f403d2f031 100644
1be5c7
--- a/migration/multifd-zlib.c
1be5c7
+++ b/migration/multifd-zlib.c
1be5c7
@@ -74,6 +74,7 @@ static int zlib_send_setup(MultiFDSendParams *p, Error **errp)
1be5c7
  * Close the channel and return memory.
1be5c7
  *
1be5c7
  * @p: Params for the channel that we are using
1be5c7
+ * @errp: pointer to an error
1be5c7
  */
1be5c7
 static void zlib_send_cleanup(MultiFDSendParams *p, Error **errp)
1be5c7
 {
1be5c7
@@ -96,6 +97,7 @@ static void zlib_send_cleanup(MultiFDSendParams *p, Error **errp)
1be5c7
  *
1be5c7
  * @p: Params for the channel that we are using
1be5c7
  * @used: number of pages used
1be5c7
+ * @errp: pointer to an error
1be5c7
  */
1be5c7
 static int zlib_send_prepare(MultiFDSendParams *p, uint32_t used, Error **errp)
1be5c7
 {
1be5c7
diff --git a/migration/multifd-zstd.c b/migration/multifd-zstd.c
1be5c7
index 693bddf8c9..8d657f8860 100644
1be5c7
--- a/migration/multifd-zstd.c
1be5c7
+++ b/migration/multifd-zstd.c
1be5c7
@@ -86,6 +86,7 @@ static int zstd_send_setup(MultiFDSendParams *p, Error **errp)
1be5c7
  * Close the channel and return memory.
1be5c7
  *
1be5c7
  * @p: Params for the channel that we are using
1be5c7
+ * @errp: pointer to an error
1be5c7
  */
1be5c7
 static void zstd_send_cleanup(MultiFDSendParams *p, Error **errp)
1be5c7
 {
1be5c7
@@ -109,6 +110,7 @@ static void zstd_send_cleanup(MultiFDSendParams *p, Error **errp)
1be5c7
  *
1be5c7
  * @p: Params for the channel that we are using
1be5c7
  * @used: number of pages used
1be5c7
+ * @errp: pointer to an error
1be5c7
  */
1be5c7
 static int zstd_send_prepare(MultiFDSendParams *p, uint32_t used, Error **errp)
1be5c7
 {
1be5c7
diff --git a/migration/multifd.c b/migration/multifd.c
1be5c7
index 8ea86d81dc..cdeffdc4c5 100644
1be5c7
--- a/migration/multifd.c
1be5c7
+++ b/migration/multifd.c
1be5c7
@@ -66,6 +66,7 @@ static int nocomp_send_setup(MultiFDSendParams *p, Error **errp)
1be5c7
  * For no compression this function does nothing.
1be5c7
  *
1be5c7
  * @p: Params for the channel that we are using
1be5c7
+ * @errp: pointer to an error
1be5c7
  */
1be5c7
 static void nocomp_send_cleanup(MultiFDSendParams *p, Error **errp)
1be5c7
 {
1be5c7
-- 
1be5c7
2.35.3
1be5c7