From nobody Tue Apr 30 11:01:42 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1630101857219299.80367288369973; Fri, 27 Aug 2021 15:04:17 -0700 (PDT) Received: from localhost ([::1]:56134 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJjxP-0004Px-PI for importer@patchew.org; Fri, 27 Aug 2021 18:04:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38766) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJjwL-0003Ah-Q8; Fri, 27 Aug 2021 18:03:09 -0400 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:44621) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mJjwK-0006tP-3R; Fri, 27 Aug 2021 18:03:09 -0400 Received: by mail-wr1-x433.google.com with SMTP id g18so4959265wrc.11; Fri, 27 Aug 2021 15:03:06 -0700 (PDT) Received: from kali.home (lfbn-ren-1-417-221.w2-10.abo.wanadoo.fr. [2.10.242.221]) by smtp.gmail.com with ESMTPSA id u16sm7414779wmc.41.2021.08.27.15.03.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Aug 2021 15:03:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XhXzCGSOTrH6hrDItj3BNllzLNP6W7JJPv+xWmyaTBs=; b=fkdOZAEaK5slPNq0bOp9BBDYJlDhxrGuMN3lKALKpY1dykmlvYaIjQg3wEBfSIqNax 4dOP7/CBwIxthFQoEyye04Br4jHxS+wfF5O0SYB2k4W6aRlR5LzGinnkbL4lCUWh+LgF 6erm0A+chWDnDLCy1cZdg59tAEMlUMFcpJ8aYeC1Cb8xeI1F4iur2qMxUxnJCoKqDBzB TN2IAC45djtLALLb8AmQZN6Mz765e4+OazPTLXapBkbfrhJaOsDkZAdyqiaz2Atxzfs0 uceGldXYif9lJh8UiYcyH34dTLM2K1IUNfYKrji3+jPH7PLbDvrYNfH2H9pRNC4vxVl4 ymiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XhXzCGSOTrH6hrDItj3BNllzLNP6W7JJPv+xWmyaTBs=; b=C12THGNCrTtBm4uon1YMMayKt5L2dXwKIlIJZZwV4P/IKkr7ZAyRiGKp1yekb+dzGW O6jvNXJPSnbIWvGxq9wxMHc0MdNogFZru/pCFgPPNmy9/aZW1TjfFF3da/Fh12L3paB3 MN799VJh5V6XXI+MgrvHcEcmdHeCszOsF1qR8LvpuiGCKq1hoLygNSkIkVq1iuLM8Srt GZuJdyKWQWKkyaTAAyR9Q+eP8NqcJqhtkLQPx3frFYx2rvCZFmxPAcyfflBPlT6W60Jp jhsaFgAVUD403h8uOu7JM5bk6ZgbAjS14yN4ONQ++F8PNCzzvCEANaLPLBnMinWj4/23 UJ9A== X-Gm-Message-State: AOAM532PC/9iVdLfRikJuboyQjUhM/Pg3HMAlZ/m7JubGmsUpTZv2p9Y KPX42o40H2TZ5qmFtWlR0tKePZMMNop0Bg== X-Google-Smtp-Source: ABdhPJxgREljNzYvwnl1ClhhXqYJEhacuSuTsVWUY/NQAgO+iwp+mZTW9DeW4u6IxR6VF4aLSA89VQ== X-Received: by 2002:a5d:6cd4:: with SMTP id c20mr694056wrc.341.1630101784936; Fri, 27 Aug 2021 15:03:04 -0700 (PDT) From: Fabrice Fontaine To: qemu-devel@nongnu.org Subject: [PATCH] block/export/fuse.c: fix fuse-lseek on uclibc or musl Date: Sat, 28 Aug 2021 00:03:01 +0200 Message-Id: <20210827220301.272887-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=fontaine.fabrice@gmail.com; helo=mail-wr1-x433.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , Fabrice Fontaine , qemu-block@nongnu.org, Max Reitz Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1630101859456100001 Content-Type: text/plain; charset="utf-8" Include linux/fs.h to avoid the following build failure on uclibc or musl raised since version 6.0.0: ../block/export/fuse.c: In function 'fuse_lseek': ../block/export/fuse.c:641:19: error: 'SEEK_HOLE' undeclared (first use in = this function) 641 | if (whence !=3D SEEK_HOLE && whence !=3D SEEK_DATA) { | ^~~~~~~~~ ../block/export/fuse.c:641:19: note: each undeclared identifier is reported= only once for each function it appears in ../block/export/fuse.c:641:42: error: 'SEEK_DATA' undeclared (first use in = this function); did you mean 'SEEK_SET'? 641 | if (whence !=3D SEEK_HOLE && whence !=3D SEEK_DATA) { | ^~~~~~~~~ | SEEK_SET Fixes: - http://autobuild.buildroot.org/results/33c90ebf04997f4d3557cfa66abc9cf9a= 3076137 Signed-off-by: Fabrice Fontaine --- block/export/fuse.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/block/export/fuse.c b/block/export/fuse.c index fc7b07d2b5..2e3bf8270b 100644 --- a/block/export/fuse.c +++ b/block/export/fuse.c @@ -31,6 +31,9 @@ #include #include =20 +#ifdef __linux__ +#include +#endif =20 /* Prevent overly long bounce buffer allocations */ #define FUSE_MAX_BOUNCE_BYTES (MIN(BDRV_REQUEST_MAX_BYTES, 64 * 1024 * 102= 4)) --=20 2.32.0