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
Richard W.M. Jones ed26056d90 block/curl.c: Use explicit long constants in curl_easy_setopt calls
curl_easy_setopt takes a variable argument that depends on what
CURLOPT you are setting.  Some require a long constant.  Passing a
plain int constant is potentially wrong on some platforms.

With warnings enabled, multiple warnings like this were printed:

../block/curl.c: In function ‘curl_init_state’:
../block/curl.c:474:13: warning: call to ‘_curl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument [-Wattribute-warning]
  474 |             curl_easy_setopt(state->curl, CURLOPT_AUTOREFERER, 1) ||
      |             ^

Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
Signed-off-by: Chenxi Mao <maochenxi@bosc.ac.cn>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20251009141026.4042021-2-rjones@redhat.com>
5 days ago
..
export block/export: Add option to allow export of inactive nodes 8 months ago
monitor block: mark blk_remove_bs() as GRAPH_UNLOCKED 3 months ago
accounting.c include: Rename sysemu/ -> system/ 10 months ago
aio_task.c block: Remove unused aio_task_pool_empty 1 year ago
amend.c block: Mark BlockDriver callbacks for amend job GRAPH_RDLOCK 2 years ago
backup.c block: add bdrv_graph_wrlock_drained() convenience wrapper 3 months ago
blkdebug.c block: Expand block status mode from bool to flags 5 months ago
blkio.c include/system: Move exec/memory.h to system/memory.h 6 months ago
blklogwrites.c block: add bdrv_graph_wrlock_drained() convenience wrapper 3 months ago
blkreplay.c include: Rename sysemu/ -> system/ 10 months ago
blkverify.c block: add bdrv_graph_wrlock_drained() convenience wrapper 3 months ago
block-backend.c block: add bdrv_graph_wrlock_drained() convenience wrapper 3 months ago
block-copy.c include: Rename sysemu/ -> system/ 10 months ago
block-gen.h block-coroutine-wrapper.py: support also basic return types 3 years ago
block-ram-registrar.c include: Rename sysemu/ -> system/ 10 months ago
bochs.c block: Take graph lock for most of .bdrv_open 2 years 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 3 months ago
copy-before-write.c block: Expand block status mode from bool to flags 5 months ago
copy-before-write.h blockdev-backup: Add error handling option for copy-before-write jobs 5 months ago
copy-on-read.c qapi: Move include/qapi/qmp/ to include/qobject/ 8 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 5 months ago
create.c qemu/compiler: Absorb 'clang-tsa.h' 7 months ago
crypto.c include: Rename sysemu/ -> system/ 10 months ago
crypto.h block: Support detached LUKS header creation using qemu-img 2 years ago
curl.c block/curl.c: Use explicit long constants in curl_easy_setopt calls 5 days ago
dirty-bitmap.c block: Mark bdrv_*_dirty_bitmap() and callers GRAPH_RDLOCK 3 years ago
dmg-bz2.c Include qemu-common.h exactly where needed 6 years ago
dmg-lzfse.c block/dmg: Ignore C99 prototype declaration mismatch from <lzfse.h> 3 years ago
dmg.c block: Protect bs->file with graph_lock 2 years ago
dmg.h block/dmg: Declare a type definition for DMG uncompress function 3 years ago
file-posix.c file-posix: Fix aio=threads performance regression after enablign FUA 3 months ago
file-win32.c qapi: Move include/qapi/qmp/ to include/qobject/ 8 months ago
filter-compress.c block: Take graph lock for most of .bdrv_open 2 years ago
gluster.c file-posix, gluster: Handle zero block status hint better 5 months ago
graph-lock.c block: add bdrv_graph_wrlock_drained() convenience wrapper 3 months ago
io.c block: never use atomics to access bs->quiesce_counter 3 months ago
io_uring.c file-posix: Support FUA writes 7 months ago
iscsi-opts.c modules: add block module annotations 4 years ago
iscsi.c block: Expand block status mode from bool to flags 5 months ago
linux-aio.c block: skip automatic zero-init of large array in ioq_submit 4 months ago
meson.build include: Rename sysemu/ -> system/ 10 months ago
mirror.c block: drop wrapper for bdrv_set_backing_hd_drained() 3 months ago
nbd.c treewide: handle result of qio_channel_set_blocking() 4 weeks ago
nfs.c qapi: Move include/qapi/qmp/ to include/qobject/ 8 months ago
null.c block: Expand block status mode from bool to flags 5 months ago
nvme.c block/nvme: Use host PCI MMIO API 5 months ago
parallels-ext.c qapi/crypto: Rename QCryptoHashAlgorithm to *Algo, and drop prefix 1 year ago
parallels.c block: Expand block status mode from bool to flags 5 months 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 coroutine: Clean up superfluous inclusion of qemu/lockable.h 3 years ago
qapi-system.c qapi: Move include/qapi/qmp/ to include/qobject/ 8 months ago
qapi.c block/qapi: make @node-name in @BlockDeviceInfo non-optional 3 months ago
qcow.c block: Expand block status mode from bool to flags 5 months ago
qcow2-bitmap.c block/qcow2-bitmap: Replace g_memdup() by g_memdup2() 1 year ago
qcow2-cache.c qcow2: Mark qcow2_signal_corruption() and callers GRAPH_RDLOCK 2 years ago
qcow2-cluster.c qcow2: Take locks for accessing bs->file 2 years ago
qcow2-refcount.c qcow2: Mark qcow2_signal_corruption() and callers GRAPH_RDLOCK 2 years ago
qcow2-snapshot.c include: Rename sysemu/ -> system/ 10 months ago
qcow2-threads.c thread-pool: avoid passing the pool parameter every time 3 years ago
qcow2.c block: add bdrv_graph_wrlock_drained() convenience wrapper 3 months ago
qcow2.h qcow2: Take locks for accessing bs->file 2 years ago
qed-check.c qed: mark more functions as coroutine_fns and GRAPH_RDLOCK 2 years ago
qed-cluster.c qed: protect table cache with CoMutex 8 years ago
qed-l2-cache.c osdep: Move memalign-related functions to their own header 4 years ago
qed-table.c block: use bdrv_co_debug_event in coroutine context 2 years ago
qed.c block: Expand block status mode from bool to flags 5 months ago
qed.h block: Protect bs->file with graph_lock 2 years ago
quorum.c block: add bdrv_graph_wrlock_drained() convenience wrapper 3 months ago
raw-format.c block: Expand block status mode from bool to flags 5 months ago
rbd.c rbd: Fix .bdrv_get_specific_info implementation 2 months ago
replication.c block: mark bdrv_reopen_queue() and bdrv_reopen_multiple() as GRAPH_UNLOCKED 3 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 5 months ago
snapshot.c block: add bdrv_graph_wrlock_drained() convenience wrapper 3 months ago
ssh.c qapi: Move include/qapi/qmp/ to include/qobject/ 8 months ago
stream.c block/stream: mark stream_prepare() as GRAPH_UNLOCKED 3 months ago
throttle-groups.c qom: Make InterfaceInfo[] uses const 6 months ago
throttle.c block: Take graph lock for most of .bdrv_open 2 years ago
trace-events nbd/client: Accept 64-bit block status chunks 2 years ago
trace.h trace: switch position of headers to what Meson requires 5 years ago
vdi.c block: Expand block status mode from bool to flags 5 months ago
vhdx-endian.c Include qemu-common.h exactly where needed 6 years ago
vhdx-log.c vhdx: Take locks for accessing bs->file 2 years ago
vhdx.c qapi: Move include/qapi/qmp/ to include/qobject/ 8 months ago
vhdx.h vhdx: Take locks for accessing bs->file 2 years ago
vmdk.c block: mark bdrv_open_child_common() and its callers GRAPH_UNLOCKED 3 months ago
vpc.c block: Expand block status mode from bool to flags 5 months ago
vvfat.c block: Expand block status mode from bool to flags 5 months ago
win32-aio.c aio: remove aio_disable_external() API 2 years ago
write-threshold.c block: remove AioContext locking 2 years ago