|
|
fb1517 |
From b40cf0a490c28d5b79e05382d061983b92a7b2b3 Mon Sep 17 00:00:00 2001
|
|
Daniel P. Berrangé |
c59732 |
From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= <berrange@redhat.com>
|
|
Daniel P. Berrangé |
c59732 |
Date: Tue, 10 Jan 2023 12:37:25 -0500
|
|
|
f48e9e |
Subject: [PATCH 4/7] Revert "linux-user: fix compat with glibc >= 2.36
|
|
Daniel P. Berrangé |
c59732 |
sys/mount.h"
|
|
Daniel P. Berrangé |
c59732 |
MIME-Version: 1.0
|
|
Daniel P. Berrangé |
c59732 |
Content-Type: text/plain; charset=UTF-8
|
|
Daniel P. Berrangé |
c59732 |
Content-Transfer-Encoding: 8bit
|
|
Daniel P. Berrangé |
c59732 |
|
|
Daniel P. Berrangé |
c59732 |
This reverts commit 3cd3df2a9584e6f753bb62a0028bd67124ab5532.
|
|
Daniel P. Berrangé |
c59732 |
|
|
Daniel P. Berrangé |
c59732 |
glibc has fixed (in 2.36.9000-40-g774058d729) the problem
|
|
Daniel P. Berrangé |
c59732 |
that caused a clash when both sys/mount.h annd linux/mount.h
|
|
Daniel P. Berrangé |
c59732 |
are included, and backported this to the 2.36 stable release
|
|
Daniel P. Berrangé |
c59732 |
too:
|
|
Daniel P. Berrangé |
c59732 |
|
|
Daniel P. Berrangé |
c59732 |
https://sourceware.org/glibc/wiki/Release/2.36#Usage_of_.3Clinux.2Fmount.h.3E_and_.3Csys.2Fmount.h.3E
|
|
Daniel P. Berrangé |
c59732 |
|
|
Daniel P. Berrangé |
c59732 |
It is saner for QEMU to remove the workaround it applied for
|
|
Daniel P. Berrangé |
c59732 |
glibc 2.36 and expect distros to ship the 2.36 maint release
|
|
Daniel P. Berrangé |
c59732 |
with the fix. This avoids needing to add a further workaround
|
|
Daniel P. Berrangé |
c59732 |
to QEMU to deal with the fact that linux/brtfs.h now also pulls
|
|
Daniel P. Berrangé |
c59732 |
in linux/mount.h via linux/fs.h since Linux 6.1
|
|
Daniel P. Berrangé |
c59732 |
|
|
Daniel P. Berrangé |
c59732 |
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
|
|
Daniel P. Berrangé |
c59732 |
---
|
|
Daniel P. Berrangé |
c59732 |
linux-user/syscall.c | 18 ------------------
|
|
Daniel P. Berrangé |
c59732 |
meson.build | 2 --
|
|
Daniel P. Berrangé |
c59732 |
2 files changed, 20 deletions(-)
|
|
Daniel P. Berrangé |
c59732 |
|
|
Daniel P. Berrangé |
c59732 |
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
|
|
|
fb1517 |
index 10af5e0d8e..d974c76b60 100644
|
|
Daniel P. Berrangé |
c59732 |
--- a/linux-user/syscall.c
|
|
Daniel P. Berrangé |
c59732 |
+++ b/linux-user/syscall.c
|
|
Daniel P. Berrangé |
c59732 |
@@ -95,25 +95,7 @@
|
|
Daniel P. Berrangé |
c59732 |
#include <linux/soundcard.h>
|
|
Daniel P. Berrangé |
c59732 |
#include <linux/kd.h>
|
|
Daniel P. Berrangé |
c59732 |
#include <linux/mtio.h>
|
|
Daniel P. Berrangé |
c59732 |
-
|
|
Daniel P. Berrangé |
c59732 |
-#ifdef HAVE_SYS_MOUNT_FSCONFIG
|
|
Daniel P. Berrangé |
c59732 |
-/*
|
|
Daniel P. Berrangé |
c59732 |
- * glibc >= 2.36 linux/mount.h conflicts with sys/mount.h,
|
|
Daniel P. Berrangé |
c59732 |
- * which in turn prevents use of linux/fs.h. So we have to
|
|
Daniel P. Berrangé |
c59732 |
- * define the constants ourselves for now.
|
|
Daniel P. Berrangé |
c59732 |
- */
|
|
Daniel P. Berrangé |
c59732 |
-#define FS_IOC_GETFLAGS _IOR('f', 1, long)
|
|
Daniel P. Berrangé |
c59732 |
-#define FS_IOC_SETFLAGS _IOW('f', 2, long)
|
|
Daniel P. Berrangé |
c59732 |
-#define FS_IOC_GETVERSION _IOR('v', 1, long)
|
|
Daniel P. Berrangé |
c59732 |
-#define FS_IOC_SETVERSION _IOW('v', 2, long)
|
|
Daniel P. Berrangé |
c59732 |
-#define FS_IOC_FIEMAP _IOWR('f', 11, struct fiemap)
|
|
Daniel P. Berrangé |
c59732 |
-#define FS_IOC32_GETFLAGS _IOR('f', 1, int)
|
|
Daniel P. Berrangé |
c59732 |
-#define FS_IOC32_SETFLAGS _IOW('f', 2, int)
|
|
Daniel P. Berrangé |
c59732 |
-#define FS_IOC32_GETVERSION _IOR('v', 1, int)
|
|
Daniel P. Berrangé |
c59732 |
-#define FS_IOC32_SETVERSION _IOW('v', 2, int)
|
|
Daniel P. Berrangé |
c59732 |
-#else
|
|
Daniel P. Berrangé |
c59732 |
#include <linux/fs.h>
|
|
Daniel P. Berrangé |
c59732 |
-#endif
|
|
Daniel P. Berrangé |
c59732 |
#include <linux/fd.h>
|
|
Daniel P. Berrangé |
c59732 |
#if defined(CONFIG_FIEMAP)
|
|
Daniel P. Berrangé |
c59732 |
#include <linux/fiemap.h>
|
|
Daniel P. Berrangé |
c59732 |
diff --git a/meson.build b/meson.build
|
|
|
fb1517 |
index 5c6b5a1c75..3172b01089 100644
|
|
Daniel P. Berrangé |
c59732 |
--- a/meson.build
|
|
Daniel P. Berrangé |
c59732 |
+++ b/meson.build
|
|
|
fb1517 |
@@ -2032,8 +2032,6 @@ config_host_data.set('HAVE_OPTRESET',
|
|
Daniel P. Berrangé |
c59732 |
cc.has_header_symbol('getopt.h', 'optreset'))
|
|
Daniel P. Berrangé |
c59732 |
config_host_data.set('HAVE_IPPROTO_MPTCP',
|
|
Daniel P. Berrangé |
c59732 |
cc.has_header_symbol('netinet/in.h', 'IPPROTO_MPTCP'))
|
|
Daniel P. Berrangé |
c59732 |
-config_host_data.set('HAVE_SYS_MOUNT_FSCONFIG',
|
|
Daniel P. Berrangé |
c59732 |
- cc.has_header_symbol('sys/mount.h', 'FSCONFIG_SET_FLAG'))
|
|
Daniel P. Berrangé |
c59732 |
|
|
Daniel P. Berrangé |
c59732 |
# has_member
|
|
Daniel P. Berrangé |
c59732 |
config_host_data.set('HAVE_SIGEV_NOTIFY_THREAD_ID',
|
|
Daniel P. Berrangé |
c59732 |
--
|
|
|
fb1517 |
2.37.3
|
|
Daniel P. Berrangé |
c59732 |
|