Skip to contentSkip to conversation

meson: fix condition for io_uring stubs

PATCH Superseded Paolo Bonzini 3 participants 3 messages Jul 12, 2021 Arm/Amlogic Meson SoC support

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meson: fix condition for io_uring stubs

CONFIG_LINUX_IO_URING is not included in config-host.mak and therefore is not usable in "when" clauses. Just include it unconditionally, it will be quietly elided by the linker if liburing is not available (including on non-Linux).

At this point, the difference between libraries that have config-host.mak entries and those that do not is quite confusing. The remaining ~dozen should be converted in 6.2.

---
 stubs/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
stubs/meson.build +1 -1
index 2e79ff9f4d..42e81ab5c3 100644
@@ -15,7 +15,7 @@ stub_ss.add(files('fdset.c'))
 stub_ss.add(files('fw_cfg.c'))
 stub_ss.add(files('gdbstub.c'))
 stub_ss.add(files('get-vm-name.c'))
-stub_ss.add(when: 'CONFIG_LINUX_IO_URING', if_true: files('io_uring.c'))
+stub_ss.add(files('io_uring.c'))
 stub_ss.add(files('iothread-lock.c'))
 stub_ss.add(files('isa-bus.c'))
 stub_ss.add(files('is-daemonized.c'))
Signature · 1 line
2.31.1
#1 lore raw
Quoted 10 lines · Paolo Bonzini

CONFIG_LINUX_IO_URING is not included in config-host.mak and therefore is not usable in "when" clauses. Just include it unconditionally, it will be quietly elided by the linker if liburing is not available (including on non-Linux).

At this point, the difference between libraries that have config-host.mak entries and those that do not is quite confusing. The remaining ~dozen should be converted in 6.2.

Queued to pr/120721-testing-and-plugins-1, thanks.

Signature · 1 line
Alex Bennée
Tested-by Reviewed-by on v1 1/1
#2 lore raw
In reply to Paolo Bonzini
Quoted 5 lines · Paolo Bonzini

CONFIG_LINUX_IO_URING is not included in config-host.mak and therefore is not usable in "when" clauses. Just include it unconditionally, it will be quietly elided by the linker if liburing is not available (including on non-Linux).

Quoted 8 lines

At this point, the difference between libraries that have config-host.mak entries and those that do not is quite confusing. The remaining ~dozen should be converted in 6.2.

---
 stubs/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|