]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: remove qemuCaps from qemuBuildObjectSecretCommandLine
authorJán Tomko <jtomko@redhat.com>
Thu, 13 Mar 2025 14:53:17 +0000 (15:53 +0100)
committerJán Tomko <jtomko@redhat.com>
Fri, 14 Mar 2025 15:23:35 +0000 (16:23 +0100)
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_command.c

index ae187dac788283c29ba5fdd63f55461a120364ff..d552784b2049764febfce1618e762960a9bda434 100644 (file)
@@ -1209,7 +1209,6 @@ qemuBuildSecretInfoProps(qemuDomainSecretInfo *secinfo,
  * qemuBuildObjectSecretCommandLine:
  * @cmd: the command to modify
  * @secinfo: pointer to the secret info object
- * @qemuCaps: qemu capabilities
  *
  * If the secinfo is available and associated with an AES secret,
  * then format the command line for the secret object. This object
@@ -1220,8 +1219,7 @@ qemuBuildSecretInfoProps(qemuDomainSecretInfo *secinfo,
  */
 static int
 qemuBuildObjectSecretCommandLine(virCommand *cmd,
-                                 qemuDomainSecretInfo *secinfo,
-                                 virQEMUCaps *qemuCaps G_GNUC_UNUSED)
+                                 qemuDomainSecretInfo *secinfo)
 {
     g_autoptr(virJSONValue) props = NULL;
 
@@ -1323,8 +1321,7 @@ qemuBuildChardevCommand(virCommand *cmd,
              * functions can just check the config fields */
             if (chrSourcePriv->secinfo) {
                 if (qemuBuildObjectSecretCommandLine(cmd,
-                                                     chrSourcePriv->secinfo,
-                                                     qemuCaps) < 0)
+                                                     chrSourcePriv->secinfo) < 0)
                     return -1;
 
                 tlsCertEncSecAlias = chrSourcePriv->secinfo->alias;
@@ -8099,8 +8096,7 @@ qemuBuildGraphicsVNCCommandLine(virQEMUDriverConfig *cfg,
 
         if (gfxPriv->secinfo) {
             if (qemuBuildObjectSecretCommandLine(cmd,
-                                                 gfxPriv->secinfo,
-                                                 qemuCaps) < 0)
+                                                 gfxPriv->secinfo) < 0)
                 return -1;
             secretAlias = gfxPriv->secinfo->alias;
         }