Skip to content

Build fails with 64 bits time_t

Recreating a ticket here from: https://bugs.launchpad.net/qemu/+bug/1904464

time element is deprecated on new input_event structure in kernel's input.h [1]

A patch is available and has been reviewed (but not applied) here: https://patchwork.kernel.org/project/qemu-devel/patch/20201203195819.583626-1-fontaine.fabrice@gmail.com/

This patch will avoid the following build failure:

hw/input/virtio-input-host.c: In function 'virtio_input_host_handle_status':
hw/input/virtio-input-host.c:198:28: error: 'struct input_event' has no member named 'time'
  198 | if (gettimeofday(&evdev.time, NULL)) {
      | ^

Fixes:

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=152194fe9c3f

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information