From nobody Sat May 18 10:29:57 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=quarantine dis=none) header.from=crudebyte.com ARC-Seal: i=1; a=rsa-sha256; t=1666956621; cv=none; d=zohomail.com; s=zohoarc; b=QoWGmbGECe8FKD5r6KhiIeBiPlbjouywXbUflRh5lXKrHqsUXgK/hEODHR0blYODlNB8aH3ggwEs41zT2H6nHhni3SX6z+n1LGKP7kUHSs/s5hUx6gUcn5KobrA0ahEHz8tRQRencICARQFuBIJrNjoKq6nX2Oi6DWjvCny/Q+c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1666956621; h=Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:Sender:Subject:To; bh=L4OSP1zwqK6EzMnuOSfhOc51Sh/aJtE5mnLGbaPEW3I=; b=lACAzs1McjiM1ytul1SQZ0FNatW7WpgMEWdRp8ZTjbzOZUBXwlLuKrBKDfgGv1aFd04ZntwWnSRJ8vsQoH2Es1PgdtDcj8C+cZvUiTPwn30T0nl6iAjEAmk5znd2lwzFmfskpmx4Q7RvLBhzRlnjWUceLVeE+R6zde7MT6jcBVA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1666956621132503.59247746458846; Fri, 28 Oct 2022 04:30:21 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooNY2-0005Fj-OJ; Fri, 28 Oct 2022 07:29:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <8c75b8bbb7db0b22bac56a27d6618506be26905e@lizzy.crudebyte.com>) id 1ooNY1-0005FT-EZ for qemu-devel@nongnu.org; Fri, 28 Oct 2022 07:29:13 -0400 Received: from lizzy.crudebyte.com ([91.194.90.13]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <8c75b8bbb7db0b22bac56a27d6618506be26905e@lizzy.crudebyte.com>) id 1ooNXw-00027n-Gv for qemu-devel@nongnu.org; Fri, 28 Oct 2022 07:29:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=crudebyte.com; s=lizzy; h=Message-Id:Cc:To:Subject:Date:From:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Content-ID: Content-Description; bh=L4OSP1zwqK6EzMnuOSfhOc51Sh/aJtE5mnLGbaPEW3I=; b=kqlnH y/m7DdVR8BfSbnW7xH8CpSule31kfkOu9/iuzqyQg597VDLO0/7eSfZzSzSCDRDIJhi4f4uT4otS6 36LZwikeBox5CR5/ommvjMszCYeAp5q+/6Pxx4K06IpyUC+xGFosDQmdq/sKDb1y/07+1cjPOxVSI dA9UvnpXm5nMs5G3HCZudjEFzVfdXou/EqS4vq6GgeX44PjPEwJhkMnCZ045yYW5Wot3oY4qeiGKG eZZgrf33QGGmKTBvsFb2nASlYPpxF7NpQ10KhV05sFF7ySKVvbRcxoPeQTiwmUpxJiuwp2U+HYyzO zfksUQLx8Foja9KBx6HNOBfZ5wmVA==; From: Christian Schoenebeck Date: Fri, 28 Oct 2022 13:21:51 +0200 Subject: [PATCH] 9pfs: fix missing sys/mount.h include To: qemu-devel@nongnu.org Cc: Greg Kurz , Thomas Huth , Stefan Hajnoczi , Warner Losh , Bin Meng Message-Id: 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: none client-ip=91.194.90.13; envelope-from=8c75b8bbb7db0b22bac56a27d6618506be26905e@lizzy.crudebyte.com; helo=lizzy.crudebyte.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, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Qemu-devel" Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @crudebyte.com) X-ZM-MESSAGEID: 1666956622449100001 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Fixes the following build error: fsdev/file-op-9p.h:156:56: error: declaration of 'struct statfs' will not be visible outside of this function [-Werror,-Wvisibility] int (*statfs)(FsContext *s, V9fsPath *path, struct statfs *stbuf); ^ As Windows neither has statfs, nor sys/mount.h, don't include it there. Fixes: 684f91203439 ("tests/9p: split virtio-9p-test.c ...") Link: https://lore.kernel.org/all/2690108.PsDodiG1Zx@silver/ Signed-off-by: Christian Schoenebeck Reviewed-by: Bin Meng --- fsdev/file-op-9p.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fsdev/file-op-9p.h b/fsdev/file-op-9p.h index 4997677460..700f1857b4 100644 --- a/fsdev/file-op-9p.h +++ b/fsdev/file-op-9p.h @@ -24,6 +24,8 @@ #endif #ifdef CONFIG_DARWIN # include +#endif +#ifndef CONFIG_WIN32 # include #endif =20 --=20 2.30.2