]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: use correct backendType when checking memfd capability
authorJán Tomko <jtomko@redhat.com>
Mon, 24 Feb 2020 12:32:30 +0000 (13:32 +0100)
committerJán Tomko <jtomko@redhat.com>
Mon, 24 Feb 2020 12:46:51 +0000 (13:46 +0100)
commit8400b6c1983dd1e4504fe19d3421fff0e5866091
tree666a99c2543b69db054d1894221917b9b60f1a63
parent4ba063afb85ae22a8eea1ee83d919d392bb6544b
qemu: use correct backendType when checking memfd capability

The backend name is memory-backend-memfd but we've been checking
for memory-backend-memory.

Reported by GCC on rawhide:
../../../src/internal.h:75:22: error: 'strcmp' of a string of length 21 and
an array of size 21 evaluates to nonzero [-Werror=string-compare]
../../../src/qemu/qemu_command.c:3525:20: note: in expansion of macro 'STREQ'
 3525 |         } else if (STREQ(backendType, "memory-backend-memory") &&
      |                    ^~~~~

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Fixes: 24b74d187cab48a9dc9f409ea78900154c709579
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu_command.c