qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Hanna Reitz
Subject: Re: [PATCH v2] block/export/fuse.c: fix musl build
Date: Mon, 9 Aug 2021 17:29:53 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

On 09.08.21 11:51, Fabrice Fontaine wrote:
Fix the following build failure on musl raised since version 6.0.0 and
https://gitlab.com/qemu-project/qemu/-/commit/4ca37a96a75aafe7a37ba51ab1912b09b7190a6b
because musl does not define FALLOC_FL_ZERO_RANGE:

../block/export/fuse.c: In function 'fuse_fallocate':
../block/export/fuse.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-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
Changes v1 -> v2 (after review of Philippe Mathieu-Daudé):
  - Use CONFIG_FALLOCATE_ZERO_RANGE and make safer #ifdef'ry

  block/export/fuse.c | 8 ++++++--
  1 file changed, 6 insertions(+), 2 deletions(-)

Thanks, applied to my block branch:

https://github.com/XanClic/qemu/commits/block

(Of note: I’ve had an email address change today, so sending the pull request may become a bit hairy.  If it doesn’t work out, I’ll have to ask Kevin (or Peter directly, given this is a build fix) tomorrow.)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]