[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 09/10] migration: unexport migrate_fd_error()
From: |
Michael Tokarev |
Subject: |
[PULL 09/10] migration: unexport migrate_fd_error() |
Date: |
Sat, 8 Jul 2023 08:12:49 +0300 |
From: Laszlo Ersek <lersek@redhat.com>
The only migrate_fd_error() call sites are in "migration/migration.c",
which is also where we define migrate_fd_error(). Make the function
static, and remove its declaration from "migration/migration.h".
Cc: Juan Quintela <quintela@redhat.com> (maintainer:Migration)
Cc: Leonardo Bras <leobras@redhat.com> (reviewer:Migration)
Cc: Peter Xu <peterx@redhat.com> (reviewer:Migration)
Cc: qemu-trivial@nongnu.org
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2018404
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
migration/migration.c | 2 +-
migration/migration.h | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/migration/migration.c b/migration/migration.c
index a60a5acee5..91bba630a8 100644
--- a/migration/migration.c
+++ b/migration/migration.c
@@ -1220,7 +1220,7 @@ static void migrate_error_free(MigrationState *s)
}
}
-void migrate_fd_error(MigrationState *s, const Error *error)
+static void migrate_fd_error(MigrationState *s, const Error *error)
{
trace_migrate_fd_error(error_get_pretty(error));
assert(s->to_dst_file == NULL);
diff --git a/migration/migration.h b/migration/migration.h
index a80b22b703..b7c8b67542 100644
--- a/migration/migration.h
+++ b/migration/migration.h
@@ -466,7 +466,6 @@ bool migration_has_all_channels(void);
uint64_t migrate_max_downtime(void);
void migrate_set_error(MigrationState *s, const Error *error);
-void migrate_fd_error(MigrationState *s, const Error *error);
void migrate_fd_connect(MigrationState *s, Error *error_in);
--
2.39.2
- [PULL trival-patches 00/10] trivial-patches for 2023-07-08, Michael Tokarev, 2023/07/08
- [PULL 01/10] hw/riscv/virt.c: fix typo in 'aia' description, Michael Tokarev, 2023/07/08
- [PULL 03/10] trivial: man page: document display::gtk::zoom-to-fit, Michael Tokarev, 2023/07/08
- [PULL 02/10] target/avr: Fix handling of interrupts above 33., Michael Tokarev, 2023/07/08
- [PULL 09/10] migration: unexport migrate_fd_error(),
Michael Tokarev <=
- [PULL 05/10] vdpa: Delete duplicated VIRTIO_NET_F_RSS in vdpa_feature_bits, Michael Tokarev, 2023/07/08
- [PULL 06/10] vdpa: Sort vdpa_feature_bits array alphabetically, Michael Tokarev, 2023/07/08
- [PULL 10/10] hw/arm/virt-acpi-build.c: Add missing header, Michael Tokarev, 2023/07/08
- [PULL 04/10] hw: Simplify calls to pci_nic_init_nofail(), Michael Tokarev, 2023/07/08
- [PULL 07/10] qemu-options.hx: Fix indentation of some option descriptions, Michael Tokarev, 2023/07/08
- [PULL 08/10] migration: factor out "resume_requested" in qmp_migrate(), Michael Tokarev, 2023/07/08
- Re: [PULL trival-patches 00/10] trivial-patches for 2023-07-08, Richard Henderson, 2023/07/08