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/migration
Philippe Mathieu-Daudé 0456a977af migration/rdma: Check ntohll() availability with meson
Commit 44ce1b5d2f ("migration/rdma: define htonll/ntohll
only if not predefined") tried to only include htonll/ntohll
replacements when their symbol is *defined*, but this doesn't
work, as they aren't:

  ../migration/rdma.c:242:17: error: static declaration of 'htonll' follows non-static declaration
    242 | static uint64_t htonll(uint64_t v)
        |                 ^~~~~~
  In file included from /usr/include/netinet/in.h:73,
                   from /usr/include/sys/socket.h:32,
                   from /home/f4bug/qemu/include/system/os-posix.h:30,
                   from /home/f4bug/qemu/include/qemu/osdep.h:176,
                   from ../migration/rdma.c:17:
  /usr/include/sys/byteorder.h:75:18: note: previous declaration of 'htonll' with type 'uint64_t(uint64_t)' {aka 'long unsigned int(long unsigned int)'}
     75 | extern  uint64_t htonll(uint64_t);
        |                  ^~~~~~
  ../migration/rdma.c:252:17: error: static declaration of 'ntohll' follows non-static declaration
    252 | static uint64_t ntohll(uint64_t v)
        |                 ^~~~~~
  /usr/include/sys/byteorder.h:76:18: note: previous declaration of 'ntohll' with type 'uint64_t(uint64_t)' {aka 'long unsigned int(long unsigned int)'}
     76 | extern  uint64_t ntohll(uint64_t);
        |                  ^~~~~~

Better to check the symbol availability with meson.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Acked-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20251117203834.83713-3-philmd@linaro.org>
1 day ago
..
block-active.c migration/block-active: Remove global active flag 10 months ago
block-dirty-bitmap.c migration: Rename save_live_complete_precopy to save_complete 4 months ago
channel-block.c migration: add FEATURE_SEEKABLE to QIOChannelBlock 2 weeks ago
channel-block.h migration: introduce a QIOChannel impl for BlockDriverState VMState 3 years ago
channel.c migration: Properly wait on G_IO_IN when peeking messages 2 weeks ago
channel.h migration: check magic value for deciding the mapping of channels 3 years ago
colo-failover.c migration/colo: Improve an x-colo-lost-heartbeat error message 3 years ago
colo-stubs.c migration/colo: make colo_incoming_co() return void 2 years ago
colo.c migration: Update qemu_file_get_return_path() docs and remove dead checks 2 months ago
cpr-exec.c migration/cpr: Fix UAF in cpr_exec_cb() when execvp() fails 2 weeks ago
cpr-transfer.c migration: Support fd-based socket address in cpr_transfer_input 5 months ago
cpr.c migration/cpr: Fix coverity report in cpr_exec_persist_state() 2 weeks ago
cpu-throttle.c include: Rename sysemu/ -> system/ 11 months ago
dirtyrate.c include/system: Move exec/ramblock.h to system/ramblock.h 7 months ago
dirtyrate.h include: Rename sysemu/ -> system/ 11 months ago
exec.c migration: simplify exec migration functions 2 years ago
exec.h migration: convert exec backend to accept MigrateAddress. 2 years ago
fd.c migration: Allow pipes to keep working for fd migrations 12 months ago
fd.h migration: Revert mapped-ram multifd support to fd: URI 2 years ago
file.c include/system: Move exec/ramblock.h to system/ramblock.h 7 months ago
file.h migration/multifd: Pass in MultiFDPages_t to file_write_ramblock_iov 1 year ago
global_state.c include: Rename sysemu/ -> system/ 11 months ago
meson.build migration: cpr-exec save and load 2 months ago
migration-hmp-cmds.c migration/cpr: Document obscure usage of g_autofree when parse str 2 weeks ago
migration-stats.c migration: migration_rate_limit_reset() don't need the QEMUFile 2 years ago
migration-stats.h migration: Remove transferred atomic counter 2 years ago
migration.c migration: Introduce POSTCOPY_DEVICE state 2 weeks ago
migration.h migration: Introduce POSTCOPY_DEVICE state 2 weeks ago
multifd-device-state.c migration: Rename save_live_complete_precopy_thread to save_complete_precopy_thread 4 months ago
multifd-nocomp.c migration: enable multifd and postcopy together 6 months ago
multifd-qatzip.c include/system: Move exec/ramblock.h to system/ramblock.h 7 months ago
multifd-qpl.c include/system: Move exec/ramblock.h to system/ramblock.h 7 months ago
multifd-uadk.c include/system: Move exec/ramblock.h to system/ramblock.h 7 months ago
multifd-zero-page.c migration: write zero pages when postcopy enabled 6 months ago
multifd-zlib.c include/system: Move exec/ramblock.h to system/ramblock.h 7 months ago
multifd-zstd.c include/system: Move exec/ramblock.h to system/ramblock.h 7 months ago
multifd.c migration/multifd/tls: Cleanup BYE message processing on sender side 2 months ago
multifd.h migration/multifd: move macros to multifd header 7 months ago
options.c migration: mapped-ram: handle zero pages 2 weeks ago
options.h migration/savevm: Add a compatibility check for capabilities 2 weeks ago
page_cache.c migration: Fix cache_init()'s "Failed to allocate" error messages 5 years ago
page_cache.h migration: Clean up signed vs. unsigned XBZRLE cache-size 5 years ago
postcopy-ram.c migration: Introduce POSTCOPY_DEVICE state 2 weeks ago
postcopy-ram.h migration: Introduce postcopy incoming setup and cleanup functions 2 weeks ago
qemu-file.c io: Add qio_channel_wait_cond() helper 2 weeks ago
qemu-file.h migration: qemu_file_set_blocking(): add errp parameter 2 months ago
ram.c migration: mapped-ram: handle zero pages 2 weeks ago
ram.h migration: push Error **errp into loadvm_process_enable_colo() 2 months ago
rdma.c migration/rdma: Check ntohll() availability with meson 1 day ago
rdma.h migration: Unfold control_save_page() 7 months ago
savevm.c migration: Introduce POSTCOPY_DEVICE state 2 weeks ago
savevm.h migration: Introduce POSTCOPY_DEVICE state 2 weeks ago
socket.c qio: Provide accessor around QIONetListener->sioc 7 days ago
socket.h migration: Remove unused socket_send_channel_create_sync 1 year ago
threadinfo.c migration/multifd: Protect accesses to migration_threads 2 years ago
threadinfo.h migration/multifd: Protect accesses to migration_threads 2 years ago
tls.c migration: activate TLS thread safety workaround 4 months ago
tls.h migration/multifd: Terminate the TLS connection 9 months ago
trace-events migration: Introduce POSTCOPY_DEVICE state 2 weeks ago
trace.h trace: switch position of headers to what Meson requires 5 years ago
vfio-stub.c migration/vfio: compile only once 3 months ago
vfio.c migration/vfio: compile only once 3 months ago
vmstate-types.c migration: cpr-exec mode 2 months ago
vmstate.c migration: vmsd errp handlers: return bool 2 weeks ago
xbzrle.c migration/xbzrle: Use i386 host/cpuinfo.h 3 years ago
xbzrle.h migration/xbzrle: Use i386 host/cpuinfo.h 3 years ago
yank_functions.c migration/yank: Use channel features 2 years ago
yank_functions.h migration: Move the yank unregister of channel_close out 4 years ago