render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
2cf05b
From 3c65b917f70d556fa1059b0400771c8159b8ca3b Mon Sep 17 00:00:00 2001
2cf05b
Message-Id: <3c65b917f70d556fa1059b0400771c8159b8ca3b@dist-git>
2cf05b
From: Boris Fiuczynski <fiuczy@linux.ibm.com>
2cf05b
Date: Fri, 13 May 2022 12:31:08 +0200
2cf05b
Subject: [PATCH] conf: adjust method name virDomainDeviceCCWAddressParseXML
2cf05b
2cf05b
Adjust method name virDomainDeviceCCWAddressParseXML to
2cf05b
virCCWDeviceAddressParseXML.
2cf05b
2cf05b
Signed-off-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
2cf05b
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2cf05b
(cherry picked from commit 2d9fd19bf5d7a3d33b94e464c335252682edd623)
2cf05b
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2165011
2cf05b
Signed-off-by: Thomas Huth <thuth@redhat.com>
2cf05b
---
2cf05b
 src/conf/device_conf.c   | 4 ++--
2cf05b
 src/conf/device_conf.h   | 4 ++--
2cf05b
 src/conf/domain_conf.c   | 3 +--
2cf05b
 src/libvirt_private.syms | 2 +-
2cf05b
 4 files changed, 6 insertions(+), 7 deletions(-)
2cf05b
2cf05b
diff --git a/src/conf/device_conf.c b/src/conf/device_conf.c
2cf05b
index 958e2f43cc..e93fd57341 100644
2cf05b
--- a/src/conf/device_conf.c
2cf05b
+++ b/src/conf/device_conf.c
2cf05b
@@ -259,8 +259,8 @@ virPCIDeviceAddressFormat(virBuffer *buf,
2cf05b
 }
2cf05b
 
2cf05b
 int
2cf05b
-virDomainDeviceCCWAddressParseXML(xmlNodePtr node,
2cf05b
-                                  virCCWDeviceAddress *addr)
2cf05b
+virCCWDeviceAddressParseXML(xmlNodePtr node,
2cf05b
+                            virCCWDeviceAddress *addr)
2cf05b
 {
2cf05b
     int cssid;
2cf05b
     int ssid;
2cf05b
diff --git a/src/conf/device_conf.h b/src/conf/device_conf.h
2cf05b
index 01e2edccc9..910e6b7792 100644
2cf05b
--- a/src/conf/device_conf.h
2cf05b
+++ b/src/conf/device_conf.h
2cf05b
@@ -193,8 +193,8 @@ void virPCIDeviceAddressFormat(virBuffer *buf,
2cf05b
                                virPCIDeviceAddress addr,
2cf05b
                                bool includeTypeInAddr);
2cf05b
 
2cf05b
-int virDomainDeviceCCWAddressParseXML(xmlNodePtr node,
2cf05b
-                                      virCCWDeviceAddress *addr);
2cf05b
+int virCCWDeviceAddressParseXML(xmlNodePtr node,
2cf05b
+                                virCCWDeviceAddress *addr);
2cf05b
 
2cf05b
 int virDomainDeviceDriveAddressParseXML(xmlNodePtr node,
2cf05b
                                         virDomainDeviceDriveAddress *addr);
2cf05b
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
2cf05b
index 1e1c7f01b1..401ddaa1a0 100644
2cf05b
--- a/src/conf/domain_conf.c
2cf05b
+++ b/src/conf/domain_conf.c
2cf05b
@@ -6630,8 +6630,7 @@ virDomainDeviceAddressParseXML(xmlNodePtr address,
2cf05b
         break;
2cf05b
 
2cf05b
     case VIR_DOMAIN_DEVICE_ADDRESS_TYPE_CCW:
2cf05b
-        if (virDomainDeviceCCWAddressParseXML
2cf05b
-                (address, &info->addr.ccw) < 0)
2cf05b
+        if (virCCWDeviceAddressParseXML(address, &info->addr.ccw) < 0)
2cf05b
             return -1;
2cf05b
         break;
2cf05b
 
2cf05b
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
2cf05b
index 0d3ee4c20a..44b551fb60 100644
2cf05b
--- a/src/libvirt_private.syms
2cf05b
+++ b/src/libvirt_private.syms
2cf05b
@@ -124,6 +124,7 @@ virCPUModeTypeToString;
2cf05b
 
2cf05b
 
2cf05b
 # conf/device_conf.h
2cf05b
+virCCWDeviceAddressParseXML;
2cf05b
 virDeviceInfoPCIAddressExtensionIsPresent;
2cf05b
 virDeviceInfoPCIAddressExtensionIsWanted;
2cf05b
 virDeviceInfoPCIAddressIsPresent;
2cf05b
@@ -131,7 +132,6 @@ virDeviceInfoPCIAddressIsWanted;
2cf05b
 virDomainDeviceAddressIsValid;
2cf05b
 virDomainDeviceAddressTypeToString;
2cf05b
 virDomainDeviceCcidAddressParseXML;
2cf05b
-virDomainDeviceCCWAddressParseXML;
2cf05b
 virDomainDeviceDriveAddressParseXML;
2cf05b
 virDomainDeviceInfoAddressIsEqual;
2cf05b
 virDomainDeviceSpaprVioAddressParseXML;
2cf05b
-- 
2cf05b
2.39.1
2cf05b