[libvirt] [PATCH 06/10] qemuDomain{Attach, Detach}Device NS helpers: Don't relabel devices

Martin Kletzander mkletzan at redhat.com
Tue Feb 7 09:59:55 UTC 2017


On Fri, Jan 20, 2017 at 10:42:46AM +0100, Michal Privoznik wrote:
>After previous commit this has become redundant step.
>Also setting up devices in namespace and setting their label
>later on are two different steps and should be not done at once.
>
>Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
>---
> src/qemu/qemu_domain.c | 112 +------------------------------------------------
> 1 file changed, 2 insertions(+), 110 deletions(-)
>
>diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
>index c67604222..0f45f753e 100644
>--- a/src/qemu/qemu_domain.c
>+++ b/src/qemu/qemu_domain.c
>@@ -7707,67 +7655,11 @@ qemuDomainDetachDeviceUnlinkHelper(pid_t pid ATTRIBUTE_UNUSED,
>
>
> static int
>-qemuDomainDetachDeviceUnlink(virQEMUDriverPtr driver,
>+qemuDomainDetachDeviceUnlink(virQEMUDriverPtr driver ATTRIBUTE_UNUSED,
>                              virDomainObjPtr vm,
>-                             virDomainDeviceDefPtr dev,
>+                             virDomainDeviceDefPtr dev ATTRIBUTE_UNUSED,

Any reason for keeping these unused attributes here?  Your call on
removing them (from caller as well, of course).  ACK either way.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170207/3f212327/attachment-0001.sig>


More information about the libvir-list mailing list