|
|
d76c62 |
From 6ece5388a7fb7fc3c703cd1bc9e214ad411451d8 Mon Sep 17 00:00:00 2001
|
|
|
d76c62 |
Message-Id: <6ece5388a7fb7fc3c703cd1bc9e214ad411451d8@dist-git>
|
|
|
d76c62 |
From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= <berrange@redhat.com>
|
|
|
d76c62 |
Date: Mon, 3 Feb 2020 18:07:23 +0000
|
|
|
d76c62 |
Subject: [PATCH] conf: remove unused virCapabilitiesSetHostCPU method
|
|
|
d76c62 |
MIME-Version: 1.0
|
|
|
d76c62 |
Content-Type: text/plain; charset=UTF-8
|
|
|
d76c62 |
Content-Transfer-Encoding: 8bit
|
|
|
d76c62 |
|
|
|
d76c62 |
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
|
|
|
d76c62 |
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
d76c62 |
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
|
|
|
d76c62 |
(cherry picked from commit 2ce9474c2a6ba3df4977068dcee35d3fa5468749)
|
|
|
d76c62 |
|
|
|
d76c62 |
BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1785207
|
|
|
d76c62 |
BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1785211
|
|
|
d76c62 |
Message-Id: <20200203180726.2203691-3-berrange@redhat.com>
|
|
|
d76c62 |
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
d76c62 |
---
|
|
|
d76c62 |
src/conf/capabilities.c | 21 ---------------------
|
|
|
d76c62 |
src/conf/capabilities.h | 6 ------
|
|
|
d76c62 |
src/libvirt_private.syms | 1 -
|
|
|
d76c62 |
3 files changed, 28 deletions(-)
|
|
|
d76c62 |
|
|
|
d76c62 |
diff --git a/src/conf/capabilities.c b/src/conf/capabilities.c
|
|
|
d76c62 |
index 9a39858280..bf1d9936ed 100644
|
|
|
d76c62 |
--- a/src/conf/capabilities.c
|
|
|
d76c62 |
+++ b/src/conf/capabilities.c
|
|
|
d76c62 |
@@ -368,27 +368,6 @@ virCapabilitiesHostNUMAAddCell(virCapsHostNUMAPtr caps,
|
|
|
d76c62 |
g_ptr_array_add(caps->cells, cell);
|
|
|
d76c62 |
}
|
|
|
d76c62 |
|
|
|
d76c62 |
-
|
|
|
d76c62 |
-/**
|
|
|
d76c62 |
- * virCapabilitiesSetHostCPU:
|
|
|
d76c62 |
- * @caps: capabilities to extend
|
|
|
d76c62 |
- * @cpu: CPU definition
|
|
|
d76c62 |
- *
|
|
|
d76c62 |
- * Sets host CPU specification
|
|
|
d76c62 |
- */
|
|
|
d76c62 |
-int
|
|
|
d76c62 |
-virCapabilitiesSetHostCPU(virCapsPtr caps,
|
|
|
d76c62 |
- virCPUDefPtr cpu)
|
|
|
d76c62 |
-{
|
|
|
d76c62 |
- if (cpu == NULL)
|
|
|
d76c62 |
- return -1;
|
|
|
d76c62 |
-
|
|
|
d76c62 |
- caps->host.cpu = cpu;
|
|
|
d76c62 |
-
|
|
|
d76c62 |
- return 0;
|
|
|
d76c62 |
-}
|
|
|
d76c62 |
-
|
|
|
d76c62 |
-
|
|
|
d76c62 |
/**
|
|
|
d76c62 |
* virCapabilitiesAllocMachines:
|
|
|
d76c62 |
* @machines: machine variants for emulator ('pc', or 'isapc', etc)
|
|
|
d76c62 |
diff --git a/src/conf/capabilities.h b/src/conf/capabilities.h
|
|
|
d76c62 |
index f604e7b95e..4a49e94aa5 100644
|
|
|
d76c62 |
--- a/src/conf/capabilities.h
|
|
|
d76c62 |
+++ b/src/conf/capabilities.h
|
|
|
d76c62 |
@@ -258,12 +258,6 @@ virCapabilitiesHostNUMAAddCell(virCapsHostNUMAPtr caps,
|
|
|
d76c62 |
int npageinfo,
|
|
|
d76c62 |
virCapsHostNUMACellPageInfoPtr pageinfo);
|
|
|
d76c62 |
|
|
|
d76c62 |
-
|
|
|
d76c62 |
-int
|
|
|
d76c62 |
-virCapabilitiesSetHostCPU(virCapsPtr caps,
|
|
|
d76c62 |
- virCPUDefPtr cpu);
|
|
|
d76c62 |
-
|
|
|
d76c62 |
-
|
|
|
d76c62 |
virCapsGuestMachinePtr *
|
|
|
d76c62 |
virCapabilitiesAllocMachines(const char *const *names,
|
|
|
d76c62 |
int nnames);
|
|
|
d76c62 |
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
|
|
|
d76c62 |
index b97906b852..afa7d4fcae 100644
|
|
|
d76c62 |
--- a/src/libvirt_private.syms
|
|
|
d76c62 |
+++ b/src/libvirt_private.syms
|
|
|
d76c62 |
@@ -77,7 +77,6 @@ virCapabilitiesHostSecModelAddBaseLabel;
|
|
|
d76c62 |
virCapabilitiesInitCaches;
|
|
|
d76c62 |
virCapabilitiesInitPages;
|
|
|
d76c62 |
virCapabilitiesNew;
|
|
|
d76c62 |
-virCapabilitiesSetHostCPU;
|
|
|
d76c62 |
virCapabilitiesSetNetPrefix;
|
|
|
d76c62 |
|
|
|
d76c62 |
|
|
|
d76c62 |
--
|
|
|
d76c62 |
2.25.0
|
|
|
d76c62 |
|