Peter Xu <[email protected]> wrote:
> @@ -448,8 +449,15 @@ static void *postcopy_ram_fault_thread(void *opaque)
> }
>
> if (pfd[1].revents) {
> - trace_postcopy_ram_fault_thread_quit();
> - break;
> + uint64_t tmp64 = 0;
> +
> + /* Consume the signal */
> + read(mis->userfault_event_fd, &tmp64, 8);
make: Entering directory '/scratch/qemu/next/all'
CC migration/postcopy-ram.o
/mnt/kvm/qemu/next/migration/postcopy-ram.c: In function
‘postcopy_ram_fault_thread’:
/mnt/kvm/qemu/next/migration/postcopy-ram.c:460:13: error: ignoring return
value of ‘read’, declared with attribute warn_unused_result
[-Werror=unused-result]
read(mis->userfault_event_fd, &tmp64, 8);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors