Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame^] | 1 | From afa96c55f2c270405de8984e2466067bbb44c0e4 Mon Sep 17 00:00:00 2001 |
| 2 | From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= <berrange@redhat.com> |
| 3 | Date: Tue, 10 Jan 2023 12:49:00 -0500 |
| 4 | Subject: [PATCH] Revert "linux-user: add more compat ioctl definitions" |
| 5 | MIME-Version: 1.0 |
| 6 | Content-Type: text/plain; charset=UTF-8 |
| 7 | Content-Transfer-Encoding: 8bit |
| 8 | |
| 9 | This reverts commit c5495f4ecb0cdaaf2e9dddeb48f1689cdb520ca0. |
| 10 | |
| 11 | glibc has fixed (in 2.36.9000-40-g774058d729) the problem |
| 12 | that caused a clash when both sys/mount.h annd linux/mount.h |
| 13 | are included, and backported this to the 2.36 stable release |
| 14 | too: |
| 15 | |
| 16 | https://sourceware.org/glibc/wiki/Release/2.36#Usage_of_.3Clinux.2Fmount.h.3E_and_.3Csys.2Fmount.h.3E |
| 17 | |
| 18 | It is saner for QEMU to remove the workaround it applied for |
| 19 | glibc 2.36 and expect distros to ship the 2.36 maint release |
| 20 | with the fix. This avoids needing to add a further workaround |
| 21 | to QEMU to deal with the fact that linux/brtfs.h now also pulls |
| 22 | in linux/mount.h via linux/fs.h since Linux 6.1 |
| 23 | |
| 24 | Upstream-Status: Backport from v8.0 (master) |
| 25 | |
| 26 | Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> |
| 27 | Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> |
| 28 | Link: https://lore.kernel.org/r/20230110174901.2580297-2-berrange@redhat.com |
| 29 | Signed-off-by: Joel Stanley <joel@jms.id.au> |
| 30 | --- |
| 31 | linux-user/syscall.c | 25 ------------------------- |
| 32 | 1 file changed, 25 deletions(-) |
| 33 | |
| 34 | diff --git a/linux-user/syscall.c b/linux-user/syscall.c |
| 35 | index f95a6161e..510de8edc 100644 |
| 36 | --- a/linux-user/syscall.c |
| 37 | +++ b/linux-user/syscall.c |
| 38 | @@ -111,31 +111,6 @@ |
| 39 | #define FS_IOC32_SETFLAGS _IOW('f', 2, int) |
| 40 | #define FS_IOC32_GETVERSION _IOR('v', 1, int) |
| 41 | #define FS_IOC32_SETVERSION _IOW('v', 2, int) |
| 42 | - |
| 43 | -#define BLKGETSIZE64 _IOR(0x12,114,size_t) |
| 44 | -#define BLKDISCARD _IO(0x12,119) |
| 45 | -#define BLKIOMIN _IO(0x12,120) |
| 46 | -#define BLKIOOPT _IO(0x12,121) |
| 47 | -#define BLKALIGNOFF _IO(0x12,122) |
| 48 | -#define BLKPBSZGET _IO(0x12,123) |
| 49 | -#define BLKDISCARDZEROES _IO(0x12,124) |
| 50 | -#define BLKSECDISCARD _IO(0x12,125) |
| 51 | -#define BLKROTATIONAL _IO(0x12,126) |
| 52 | -#define BLKZEROOUT _IO(0x12,127) |
| 53 | - |
| 54 | -#define FIBMAP _IO(0x00,1) |
| 55 | -#define FIGETBSZ _IO(0x00,2) |
| 56 | - |
| 57 | -struct file_clone_range { |
| 58 | - __s64 src_fd; |
| 59 | - __u64 src_offset; |
| 60 | - __u64 src_length; |
| 61 | - __u64 dest_offset; |
| 62 | -}; |
| 63 | - |
| 64 | -#define FICLONE _IOW(0x94, 9, int) |
| 65 | -#define FICLONERANGE _IOW(0x94, 13, struct file_clone_range) |
| 66 | - |
| 67 | #else |
| 68 | #include <linux/fs.h> |
| 69 | #endif |