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/block
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>
4 days ago
..
export block/export: Add option to allow export of inactive nodes 10 months ago
monitor block/monitor: Use hmp_handle_error to report error 2 months ago
accounting.c block: enable stats-intervals for storage devices 2 months ago
aio_task.c block: Remove unused aio_task_pool_empty 1 year ago
amend.c
backup.c block: add bdrv_graph_wrlock_drained() convenience wrapper 5 months ago
blkdebug.c block: Expand block status mode from bool to flags 7 months ago
blkio.c include/system: Move exec/memory.h to system/memory.h 8 months ago
blklogwrites.c block: add bdrv_graph_wrlock_drained() convenience wrapper 5 months ago
blkreplay.c blkreplay: Run BH in coroutine’s AioContext 4 weeks ago
blkverify.c block: add bdrv_graph_wrlock_drained() convenience wrapper 5 months ago
block-backend.c block: use pwrite_zeroes_alignment when writing first sector 3 weeks ago
block-copy.c include: Rename sysemu/ -> system/ 12 months ago
block-gen.h
block-ram-registrar.c include: Rename sysemu/ -> system/ 12 months ago
bochs.c block: replace TABs with space 1 month ago
cloop.c block: Take graph lock for most of .bdrv_open 2 years ago
commit.c block/commit: mark commit_abort() as GRAPH_UNLOCKED 5 months ago
copy-before-write.c block: Expand block status mode from bool to flags 7 months ago
copy-before-write.h blockdev-backup: Add error handling option for copy-before-write jobs 7 months ago
copy-on-read.c qapi: Move include/qapi/qmp/ to include/qobject/ 10 months ago
copy-on-read.h block: Mark bdrv_(un)freeze_backing_chain() and callers GRAPH_RDLOCK 2 years ago
coroutines.h block: Expand block status mode from bool to flags 7 months ago
create.c qemu/compiler: Absorb 'clang-tsa.h' 9 months ago
crypto.c block: Allow drivers to control protocol prefix at creation 1 month ago
crypto.h block: Support detached LUKS header creation using qemu-img 2 years ago
curl.c curl: Fix coroutine waking 4 weeks ago
dirty-bitmap.c
dmg-bz2.c
dmg-lzfse.c
dmg.c block: Protect bs->file with graph_lock 2 years ago
dmg.h
file-posix.c file-posix: Handle suspended dm-multipath better for SG_IO 1 week ago
file-win32.c block: replace TABs with space 1 month ago
filter-compress.c block: Take graph lock for most of .bdrv_open 2 years ago
gluster.c gluster: Do not move coroutine into BDS context 4 weeks ago
graph-lock.c block: add bdrv_graph_wrlock_drained() convenience wrapper 5 months ago
io.c block/io: Take reqs_lock for tracked_requests 4 weeks ago
io_uring.c block/io_uring: use non-vectored read/write when possible 1 month ago
iscsi-opts.c
iscsi.c iscsi: Create AIO BH in original AioContext 4 weeks ago
linux-aio.c block: skip automatic zero-init of large array in ioq_submit 6 months ago
meson.build include: Rename sysemu/ -> system/ 12 months ago
mirror.c block: drop wrapper for bdrv_set_backing_hd_drained() 5 months ago
nbd.c treewide: handle result of qio_channel_set_blocking() 3 months ago
nfs.c nfs: Run co BH CB in the coroutine’s AioContext 4 weeks ago
null.c null-aio: Run CB in original AioContext 4 weeks ago
nvme.c nvme: Note in which AioContext some functions run 4 weeks ago
parallels-ext.c qapi/crypto: Rename QCryptoHashAlgorithm to *Algo, and drop prefix 1 year ago
parallels.c block: Allow drivers to control protocol prefix at creation 1 month ago
parallels.h block: Protect bs->file with graph_lock 2 years ago
preallocate.c block: Protect bs->file with graph_lock 2 years ago
progress_meter.c
qapi-system.c qapi: Move include/qapi/qmp/ to include/qobject/ 10 months ago
qapi.c qemu-img info: Optionally show block limits 2 months ago
qcow.c block: Allow drivers to control protocol prefix at creation 1 month ago
qcow2-bitmap.c block/qcow2-bitmap: Replace g_memdup() by g_memdup2() 2 years ago
qcow2-cache.c qcow2: Mark qcow2_signal_corruption() and callers GRAPH_RDLOCK 2 years ago
qcow2-cluster.c qcow2: put discards in discard queue when discard-no-unref is enabled 1 month ago
qcow2-refcount.c qcow2: put discards in discard queue when discard-no-unref is enabled 1 month ago
qcow2-snapshot.c include: Rename sysemu/ -> system/ 12 months ago
qcow2-threads.c
qcow2.c qcow2: Schedule cache-clean-timer in realtime 4 weeks ago
qcow2.h qcow2: Fix cache_clean_timer 4 weeks ago
qed-check.c
qed-cluster.c
qed-l2-cache.c
qed-table.c
qed.c block: Allow drivers to control protocol prefix at creation 1 month ago
qed.h block: Protect bs->file with graph_lock 2 years ago
quorum.c block: add bdrv_graph_wrlock_drained() convenience wrapper 5 months ago
raw-format.c block: Allow drivers to control protocol prefix at creation 1 month ago
rbd.c rbd: Run co BH CB in the coroutine’s AioContext 4 weeks ago
replication.c block: mark bdrv_reopen_queue() and bdrv_reopen_multiple() as GRAPH_UNLOCKED 5 months ago
reqlist.c block/reqlist: allow adding overlapping requests 1 year ago
snapshot-access.c block: Expand block status mode from bool to flags 7 months ago
snapshot.c block: add bdrv_graph_wrlock_drained() convenience wrapper 5 months ago
ssh.c ssh: Run restart_coroutine in current AioContext 4 weeks ago
stream.c block/stream: mark stream_prepare() as GRAPH_UNLOCKED 5 months ago
throttle-groups.c qom: Make InterfaceInfo[] uses const 8 months ago
throttle.c block: Take graph lock for most of .bdrv_open 2 years ago
trace-events block/io_uring: use aio_add_sqe() 1 month ago
trace.h
vdi.c block: Allow drivers to control protocol prefix at creation 1 month ago
vhdx-endian.c
vhdx-log.c vhdx: Take locks for accessing bs->file 2 years ago
vhdx.c block: Allow drivers to control protocol prefix at creation 1 month ago
vhdx.h vhdx: Take locks for accessing bs->file 2 years ago
vmdk.c Fix const qualifier build errors with recent glibc 4 days ago
vpc.c block: Allow drivers to control protocol prefix at creation 1 month ago
vvfat.c Fix const qualifier build errors with recent glibc 4 days ago
win32-aio.c win32-aio: Run CB in original context 4 weeks ago
write-threshold.c block: remove AioContext locking 2 years ago