qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Bug 1904464] [NEW] Build fails with 64 bits time_t
@ 2020-11-16 20:46 Fabrice Fontaine
  2020-11-17 10:51 ` [Bug 1904464] " Thomas Huth
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Fabrice Fontaine @ 2020-11-16 20:46 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

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

This 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:
 - http://autobuild.buildroot.org/results/a538167e288c14208d557cd45446df86d3d599d5
 - http://autobuild.buildroot.org/results/efd4474fb4b6c0ce0ab3838ce130429c51e43bbb

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

** Affects: qemu
     Importance: Undecided
         Status: New

** Patch added: "0002-Fix-build-with-64-bits-time_t.patch"
   https://bugs.launchpad.net/bugs/1904464/+attachment/5434882/+files/0002-Fix-build-with-64-bits-time_t.patch

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1904464

Title:
  Build fails with 64 bits time_t

Status in QEMU:
  New

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

  This 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:
   - http://autobuild.buildroot.org/results/a538167e288c14208d557cd45446df86d3d599d5
   - http://autobuild.buildroot.org/results/efd4474fb4b6c0ce0ab3838ce130429c51e43bbb

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1904464/+subscriptions


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-05-10  6:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-16 20:46 [Bug 1904464] [NEW] Build fails with 64 bits time_t Fabrice Fontaine
2020-11-17 10:51 ` [Bug 1904464] " Thomas Huth
2021-05-10  4:28 ` Thomas Huth
2021-05-10  6:07 ` Thomas Huth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).