You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/backends
Cédric Le Goater 326e620fc0 Fix const qualifier build errors with recent glibc
A recent change in glibc 2.42.9000 [1] changes the return type of
strstr() and other string functions to be 'const char *' when the
input is a 'const char *'.

This breaks the build in various files with errors such as :

  error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
    208 |         char *pidstr = strstr(filename, "%");
        |                        ^~~~~~

Fix this by changing the type of the variables that store the result
of these functions to 'const char *'.

[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=cd748a63ab1a7ae846175c532a3daab341c62690

Signed-off-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20251209174328.698774-1-clg@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
2 weeks ago
..
tpm Fix const qualifier build errors with recent glibc 2 weeks ago
Kconfig backends: Initial support for SPDM socket support 1 year ago
confidential-guest-support.c backends/confidential-guest-support: Add set_guest_policy() function 6 months ago
cryptodev-builtin.c qom: Have class_init() take a const data argument 8 months ago
cryptodev-hmp-cmds.c qapi: Move include/qapi/qmp/ to include/qobject/ 11 months ago
cryptodev-lkcf.c qom: remove redundant typedef when use OBJECT_DECLARE_SIMPLE_TYPE 2 months ago
cryptodev-vhost-user.c char: rename CharBackend->CharFrontend 2 months ago
cryptodev-vhost.c cryptodev/vhost: allocate CryptoDevBackendVhost using g_mem0() 10 months ago
cryptodev.c qom: Make InterfaceInfo[] uses const 8 months ago
dbus-vmstate.c qom: Make InterfaceInfo[] uses const 8 months ago
dbus-vmstate1.xml docs: move D-Bus VMState documentation to source XML 4 years ago
host_iommu_device.c qom: Have class_init() take a const data argument 8 months ago
hostmem-epc.c qom: Have class_init() take a const data argument 8 months ago
hostmem-file.c qom: Have class_init() take a const data argument 8 months ago
hostmem-memfd.c qom: Have class_init() take a const data argument 8 months ago
hostmem-ram.c qom: Have class_init() take a const data argument 8 months ago
hostmem-shm.c hostmem/shm: Allow shm memory backend serve as shared memory for coco-VMs 2 months ago
hostmem.c qom: Make InterfaceInfo[] uses const 8 months ago
igvm-cfg.c igvm: move igvm.h file to include/system 2 months ago
igvm.c igvm: add support for initial register state load in native mode 2 months ago
iommufd.c system/iommufd: Use uint64_t type for IOVA mapping size 3 months ago
meson.build backends/igvm: Add IGVM loader and configuration 6 months ago
rng-builtin.c qom: Have class_init() take a const data argument 8 months ago
rng-egd.c char: rename CharBackend->CharFrontend 2 months ago
rng-random.c qom: Have class_init() take a const data argument 8 months ago
rng.c qom: Make InterfaceInfo[] uses const 8 months ago
spdm-socket.c spdm: define SPDM transport enum types 2 months ago
trace-events backends/iommufd: change process ioctl 6 months ago
trace.h trace: switch position of headers to what Meson requires 5 years ago
vhost-user.c vhost-user: return failure if backend crash when live migration 8 months ago