[PATCH v2] linux-user/syscall.c: fix build without RLIMIT_RTTIME

2022-05-23 Thread Fabrice Fontaine
|RLIMIT_NOFILE Fixes: - http://autobuild.buildroot.org/results/22d3b584b704613d030e1ea9e6b709b713e4cc26 Signed-off-by: Fabrice Fontaine --- Changes v1 -> v2 (after review of Laurent Vivier): - Use an ifdef block instead of defining RLIMIT_RTTIME linux-user/syscall.c | 2

[PATCH] linux-user/syscall.c: fix build without RLIMIT_RTTIME

2022-05-14 Thread Fabrice Fontaine
|RLIMIT_NOFILE Fixes: - http://autobuild.buildroot.org/results/22d3b584b704613d030e1ea9e6b709b713e4cc26 Signed-off-by: Fabrice Fontaine --- linux-user/syscall.c | 4 1 file changed, 4 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index dd0d92ba4e.

Re: [PATCH] block/export/fuse.c: fix musl build

2021-10-25 Thread Fabrice Fontaine
Le lun. 25 oct. 2021 à 11:33, Kevin Wolf a écrit : > > Am 22.10.2021 um 11:52 hat Fabrice Fontaine geschrieben: > > Include linux/falloc.h if CONFIG_FALLOCATE_ZERO_RANGE is defined to fix > > https://gitlab.com/qemu-project/qemu/-/commit/50482fda98bd62e072c30b7ea73c985c4e9d9bbb

Re: [PATCH] block/export/fuse.c: fix musl build

2021-10-25 Thread Fabrice Fontaine
Le lun. 25 oct. 2021 à 08:31, Michael Tokarev a écrit : > > 22.10.2021 12:52, Fabrice Fontaine пишет: > > Include linux/falloc.h if CONFIG_FALLOCATE_ZERO_RANGE is defined to fix > > https://gitlab.com/qemu-project/qemu/-/commit/50482fda98bd62e072c30b7ea73c985c4e9d9bbb > >

[PATCH] block/export/fuse.c: fix musl build

2021-10-22 Thread Fabrice Fontaine
:21: error: 'FALLOC_FL_ZERO_RANGE' undeclared (first use in this function) 643 | else if (mode & FALLOC_FL_ZERO_RANGE) { | ^~~~ Fixes: - http://autobuild.buildroot.org/results/be24433a429fda681fb66698160132c1c99bc53b Signed-

[PATCH] block/export/fuse.c: fix fuse-lseek on uclibc or musl

2021-08-27 Thread Fabrice Fontaine
id you mean 'SEEK_SET'? 641 | if (whence != SEEK_HOLE && whence != SEEK_DATA) { | ^ | SEEK_SET Fixes: - http://autobuild.buildroot.org/results/33c90ebf04997f4d3557cfa66abc9

[PATCH v2] block/export/fuse.c: fix musl build

2021-08-09 Thread Fabrice Fontaine
e.c:563:23: error: 'FALLOC_FL_ZERO_RANGE' undeclared (first use in this function) 563 | } else if (mode & FALLOC_FL_ZERO_RANGE) { | ^~~~ Fixes: - http://autobuild.buildroot.org/results/b96e3d364fd1f8bbfb18904a742e73327d308f64 Signed-

[PATCH] block/export/fuse.c: fix musl build

2021-08-09 Thread Fabrice Fontaine
e.c:563:23: error: 'FALLOC_FL_ZERO_RANGE' undeclared (first use in this function) 563 | } else if (mode & FALLOC_FL_ZERO_RANGE) { | ^~~~ Fixes: - http://autobuild.buildroot.org/results/b96e3d364fd1f8bbfb18904a742e73327d308f64 Signed-

[PATCH v2] hw/usb/host-libusb.c: fix build with kernel < 5.0

2020-12-13 Thread Fabrice Fontaine
as made to fix this build failure with https://gitlab.com/qemu-project/qemu/-/commit/4969e697c15ac536d5c0700381d5d026ef7f0588 However, the assumption that distros with old kernels also have old libusb is just wrong so also add a check for defined(USBDEVFS_GET_SPEED) Signed-off-by: Fabrice Fonta

[PATCH] hw/usb/host-libusb.c: fix build with kernel < 5.0

2020-12-13 Thread Fabrice Fontaine
as made to fix this build failure with https://gitlab.com/qemu-project/qemu/-/commit/4969e697c15ac536d5c0700381d5d026ef7f0588 However, the assumtion that distros with old kernels also have old libusb is just wrong so also add a check for defined(USBDEVFS_GET_SPEED) Signed-off-by: Fabrice Fontai

[PATCH v4] Fix build with 64 bits time_t

2020-12-03 Thread Fabrice Fontaine
bb [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=152194fe9c3f Signed-off-by: Fabrice Fontaine --- Changes v3 -> v4 (after review of Gerd Hoffmann): - Include Changes v2 -> v3 (after review of Gerd Hoffmann): - Replace include on by "standard-

Re: [PATCH v3] Fix build with 64 bits time_t

2020-11-27 Thread Fabrice Fontaine
Hi, Le ven. 27 nov. 2020 à 08:18, Gerd Hoffmann a écrit : > > Hi, > > > Changes v2 -> v3 (after review of Gerd Hoffmann): > > - Replace include on by > >"standard-headers/linux/input.h" to try to fix build on rhel-7 > > Now it complains about ioctl() not being declared. > > /me suggests t

[PATCH v3] Fix build with 64 bits time_t

2020-11-25 Thread Fabrice Fontaine
bb [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=152194fe9c3f Signed-off-by: Fabrice Fontaine --- Changes v2 -> v3 (after review of Gerd Hoffmann): - Replace include on by "standard-headers/linux/input.h" to try to fix build on rhel-7

Re: [PATCH v2] Fix build with 64 bits time_t

2020-11-25 Thread Fabrice Fontaine
Le mer. 25 nov. 2020 à 13:06, Gerd Hoffmann a écrit : > > On Wed, Nov 18, 2020 at 09:38:24PM +0100, Fabrice Fontaine wrote: > > time element is deprecated on new input_event structure in kernel's > > input.h [1] > > > > This will avoid the following build fai

[PATCH v2] Fix build with 64 bits time_t

2020-11-18 Thread Fabrice Fontaine
bb [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=152194fe9c3f Signed-off-by: Fabrice Fontaine --- Changes v1 -> v2 (after review of Michael S. Tsirkin): - Drop define of input_event_{sec,usec} as it is already done in include/standard-headers/linux/inp

[PATCH] Fix build with 64 bits time_t

2020-11-17 Thread Fabrice Fontaine
bb [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=152194fe9c3f Signed-off-by: Fabrice Fontaine --- contrib/vhost-user-input/main.c | 10 +- hw/input/virtio-input-host.c| 10 +- 2 files changed, 18 insertions(+), 2 deletions(-) diff --

[Bug 1904464] [NEW] Build fails with 64 bits time_t

2020-11-16 Thread Fabrice Fontaine
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 m