From nobody Thu Mar 28 13:13:53 2024 Delivered-To: importer2@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1675526960022976.4375688264519; Sat, 4 Feb 2023 08:09:20 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pOL5w-0005L6-PG; Sat, 04 Feb 2023 11:08:52 -0500 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 ) id 1pOL5p-0005CZ-Jz for qemu-devel@nongnu.org; Sat, 04 Feb 2023 11:08:48 -0500 Received: from mout.kundenserver.de ([217.72.192.74]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pOL5n-0006wg-OJ for qemu-devel@nongnu.org; Sat, 04 Feb 2023 11:08:45 -0500 Received: from quad ([82.142.8.70]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MiIlc-1oiySv3Z0Y-00fV8N; Sat, 04 Feb 2023 17:08:40 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Laurent Vivier Subject: [PULL 11/22] Revert "linux-user: fix compat with glibc >= 2.36 sys/mount.h" Date: Sat, 4 Feb 2023 17:08:19 +0100 Message-Id: <20230204160830.193093-12-laurent@vivier.eu> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230204160830.193093-1-laurent@vivier.eu> References: <20230204160830.193093-1-laurent@vivier.eu> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:jLDCtuDVWRqeSCeV8SbZ7vV4N7WbyyQL5KhzkTrO80M+yTxEe0Z 5VMfH4BcP0r4f+jNN8N7/AAqnv1frvDO7n0Ulsf8ijQsRdGigEtA1aWEyYhlju+Au144ip+ 1FzeFSRkSZw7j2vatpURWbMkcXpD8jVLZ5cIPPpoT7r/4Desrkv7LsrXf99tzsFpHilmPuk 4gA5/NGxKyQSRFtg8wUxg== UI-OutboundReport: notjunk:1;M01:P0:oMB9u0CgNqs=;EnNLq5PfsrVH2dItMqTh1ytfGf8 y7BEN6Il2IVGAihtFGn/c7Dga/Y3CWSKWs7KsHcaYn3zPAaRa28uYhFOssw8MY1xpEldzEdpK 9mCEc8zfL6nyzguv+gAgoXnzi5IsG2Wd0s2cFJDLIruc1ebs26WoHdncpdmsOrNSVTL4O6xQA ruBtzapg5SEZeg3lbuzUbOC81mXdnv4TiY2VwyNuHV9yGWhBwMhInGdaqP5xS0+RADOpp50/J XDZOOOjKArL/DjDzbqFalwhIhdY/WStJLEJJK0yocfv1SFBZB45Nk8cBNWrlTJTMDkp11uhNn eV3OM9TXCuP2/xvr+HgscWR6d4muAPDNMhbsDxj8gH8appybcInGZxcSGTtXS/5NeDcGitSyE aX2u58hhPI5Hz2MistphlPSgtqQxfDyEuRGrHQAuBi8DxVkmkQ/1WSzsjU6O+OwqWRpWZcOH9 7EvUL8qYQvQxXngGHkkCsreg9RGKVmHvcJBRbOaur7Ev+eF9klTlg+BTya+mepiXaq+XrF+HW XqdrXbBzsn7ZrUfH7YCRjFL+RsKepHR0lPJAL+4Y1ENvQ9xAPMOKWjoWz4Wn3Zqs6RuyyesgL dVhB2TdcW99B0uJ0uZ6/bUn5HGTYd/b5QF5FPXiCqB8c4BGsOyzl2GthqfMXGRLdpmfk3dsqm hoDcGg5IcCmDMOcYKSTe85TQcL2qtPtX7/XGDUqN5w== 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+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=217.72.192.74; envelope-from=laurent@vivier.eu; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 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: , Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer2=patchew.org@nongnu.org X-ZM-MESSAGEID: 1675526960353100001 From: Daniel P. Berrang=C3=A9 This reverts commit 3cd3df2a9584e6f753bb62a0028bd67124ab5532. glibc has fixed (in 2.36.9000-40-g774058d729) the problem that caused a clash when both sys/mount.h annd linux/mount.h are included, and backported this to the 2.36 stable release too: https://sourceware.org/glibc/wiki/Release/2.36#Usage_of_.3Clinux.2Fmount.= h.3E_and_.3Csys.2Fmount.h.3E It is saner for QEMU to remove the workaround it applied for glibc 2.36 and expect distros to ship the 2.36 maint release with the fix. This avoids needing to add a further workaround to QEMU to deal with the fact that linux/brtfs.h now also pulls in linux/mount.h via linux/fs.h since Linux 6.1 Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Marc-Andr=C3=A9 Lureau Message-Id: <20230110174901.2580297-3-berrange@redhat.com> Signed-off-by: Laurent Vivier --- linux-user/syscall.c | 18 ------------------ meson.build | 2 -- 2 files changed, 20 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index b88f8ee96f0f..210db5f0be94 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -95,25 +95,7 @@ #include #include #include - -#ifdef HAVE_SYS_MOUNT_FSCONFIG -/* - * glibc >=3D 2.36 linux/mount.h conflicts with sys/mount.h, - * which in turn prevents use of linux/fs.h. So we have to - * define the constants ourselves for now. - */ -#define FS_IOC_GETFLAGS _IOR('f', 1, long) -#define FS_IOC_SETFLAGS _IOW('f', 2, long) -#define FS_IOC_GETVERSION _IOR('v', 1, long) -#define FS_IOC_SETVERSION _IOW('v', 2, long) -#define FS_IOC_FIEMAP _IOWR('f', 11, struct fiemap) -#define FS_IOC32_GETFLAGS _IOR('f', 1, int) -#define FS_IOC32_SETFLAGS _IOW('f', 2, int) -#define FS_IOC32_GETVERSION _IOR('v', 1, int) -#define FS_IOC32_SETVERSION _IOW('v', 2, int) -#else #include -#endif #include #if defined(CONFIG_FIEMAP) #include diff --git a/meson.build b/meson.build index 6d3b66562975..cccd19f864e3 100644 --- a/meson.build +++ b/meson.build @@ -2046,8 +2046,6 @@ config_host_data.set('HAVE_OPTRESET', cc.has_header_symbol('getopt.h', 'optreset')) config_host_data.set('HAVE_IPPROTO_MPTCP', cc.has_header_symbol('netinet/in.h', 'IPPROTO_MPTCP')) -config_host_data.set('HAVE_SYS_MOUNT_FSCONFIG', - cc.has_header_symbol('sys/mount.h', 'FSCONFIG_SET_FLA= G')) =20 # has_member config_host_data.set('HAVE_SIGEV_NOTIFY_THREAD_ID', --=20 2.39.1