mirror of https://gitlab.com/qemu-project/qemu
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.
This fixes a compiler error when higher warning levels are enabled:
../migration/postcopy-ram.c: In function ‘postcopy_temp_pages_setup’:
../migration/postcopy-ram.c:1483:50: error: ‘g_malloc0_n’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
1483 | mis->postcopy_tmp_pages = g_malloc0_n(sizeof(PostcopyTmpPage), channels);
| ^~~~~~~~~~~~~~~
../migration/postcopy-ram.c:1483:50: note: earlier argument should specify number of elements, later size of each element
Avoid also a related int/unsigned mismatch by fixing the type of
two local variables.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20251209125049.764095-1-sw@weilnetz.de>
[PMD: Replace g_malloc0_n() by g_new0()]
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Acked-by: Peter Xu <peterx@redhat.com>
Message-Id: <20251209195010.83219-1-philmd@linaro.org>
|
2 weeks ago | |
|---|---|---|
| .. | ||
| block-active.c | 11 months ago | |
| block-dirty-bitmap.c | 5 months ago | |
| channel-block.c | 2 months ago | |
| channel-block.h | 4 years ago | |
| channel.c | 2 months ago | |
| channel.h | 3 years ago | |
| colo-failover.c | 3 years ago | |
| colo-stubs.c | 2 years ago | |
| colo.c | 3 months ago | |
| cpr-exec.c | 1 month ago | |
| cpr-transfer.c | 6 months ago | |
| cpr.c | 2 months ago | |
| cpu-throttle.c | 1 year ago | |
| dirtyrate.c | 8 months ago | |
| dirtyrate.h | 1 year ago | |
| exec.c | 2 years ago | |
| exec.h | 2 years ago | |
| fd.c | 1 year ago | |
| fd.h | 2 years ago | |
| file.c | 8 months ago | |
| file.h | 1 year ago | |
| global_state.c | 1 year ago | |
| meson.build | 3 months ago | |
| migration-hmp-cmds.c | 2 months ago | |
| migration-stats.c | 2 years ago | |
| migration-stats.h | 2 years ago | |
| migration.c | 1 month ago | |
| migration.h | 2 months ago | |
| multifd-device-state.c | 5 months ago | |
| multifd-nocomp.c | 7 months ago | |
| multifd-qatzip.c | 8 months ago | |
| multifd-qpl.c | 8 months ago | |
| multifd-uadk.c | 8 months ago | |
| multifd-zero-page.c | 7 months ago | |
| multifd-zlib.c | 8 months ago | |
| multifd-zstd.c | 8 months ago | |
| multifd.c | 3 weeks ago | |
| multifd.h | 8 months ago | |
| options.c | 2 months ago | |
| options.h | 2 months ago | |
| page_cache.c | 5 years ago | |
| page_cache.h | 5 years ago | |
| postcopy-ram.c | 2 weeks ago | |
| postcopy-ram.h | 2 months ago | |
| qemu-file.c | 2 months ago | |
| qemu-file.h | 3 months ago | |
| ram.c | 2 months ago | |
| ram.h | 3 months ago | |
| rdma.c | 1 month ago | |
| rdma.h | 8 months ago | |
| savevm.c | 2 months ago | |
| savevm.h | 2 months ago | |
| socket.c | 1 month ago | |
| socket.h | 1 year ago | |
| threadinfo.c | 2 years ago | |
| threadinfo.h | 2 years ago | |
| tls.c | 5 months ago | |
| tls.h | 10 months ago | |
| trace-events | 2 months ago | |
| trace.h | 5 years ago | |
| vfio-stub.c | 4 months ago | |
| vfio.c | 4 months ago | |
| vmstate-types.c | 3 months ago | |
| vmstate.c | 2 months ago | |
| xbzrle.c | 3 years ago | |
| xbzrle.h | 3 years ago | |
| yank_functions.c | 2 years ago | |
| yank_functions.h | 4 years ago | |