Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/virtualbox-modules/files/
Date: Wed, 06 Feb 2019 09:32:22
Message-Id: 1549445530.b16c2460c7efcd2e54ea2efeb400970b3dd99891.polynomial-c@gentoo
1 commit: b16c2460c7efcd2e54ea2efeb400970b3dd99891
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Tue Jan 29 10:01:38 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 6 09:32:10 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b16c2460
7
8 app-emulation/virtualbox-modules: remove unused patches
9
10 Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
11 Closes: https://github.com/gentoo/gentoo/pull/10928
12 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
13
14 .../files/virtualbox-modules-4.1.4-pax-const.patch | 44 ----------------------
15 .../files/virtualbox-modules-5.1.30-udp.patch | 35 -----------------
16 2 files changed, 79 deletions(-)
17
18 diff --git a/app-emulation/virtualbox-modules/files/virtualbox-modules-4.1.4-pax-const.patch b/app-emulation/virtualbox-modules/files/virtualbox-modules-4.1.4-pax-const.patch
19 deleted file mode 100644
20 index f9878848ae1..00000000000
21 --- a/app-emulation/virtualbox-modules/files/virtualbox-modules-4.1.4-pax-const.patch
22 +++ /dev/null
23 @@ -1,44 +0,0 @@
24 ---- vboxdrv/SUPDrvIDC.h
25 -+++ vboxdrv/SUPDrvIDC.h
26 -@@ -160,7 +160,7 @@ typedef struct SUPDRVIDCREQGETSYM
27 - {
28 - /** The symbol address. */
29 - PFNRT pfnSymbol;
30 -- } Out;
31 -+ } __no_const Out;
32 - } u;
33 - } SUPDRVIDCREQGETSYM;
34 - /** Pointer to a SUPDRV IDC get symbol request. */
35 ---- vboxnetflt/include/VBox/intnet.h
36 -+++ vboxnetflt/include/VBox/intnet.h
37 -@@ -783,7 +783,7 @@ typedef struct INTNETTRUNKFACTORY
38 - DECLR0CALLBACKMEMBER(int, pfnCreateAndConnect,(struct INTNETTRUNKFACTORY *pIfFactory, const char *pszName,
39 - PINTNETTRUNKSWPORT pSwitchPort, uint32_t fFlags,
40 - PINTNETTRUNKIFPORT *ppIfPort));
41 --} INTNETTRUNKFACTORY;
42 -+} __no_const INTNETTRUNKFACTORY;
43 - /** Pointer to the trunk factory. */
44 - typedef INTNETTRUNKFACTORY *PINTNETTRUNKFACTORY;
45 -
46 ---- vboxnetflt/linux/VBoxNetFlt-linux.c
47 -+++ vboxnetflt/linux/VBoxNetFlt-linux.c
48 -@@ -840,7 +840,7 @@ typedef struct ethtool_ops OVR_OPSTYPE;
49 -
50 - # else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29) */
51 -
52 --typedef struct net_device_ops OVR_OPSTYPE;
53 -+typedef net_device_ops_no_const OVR_OPSTYPE;
54 - # define OVR_OPS netdev_ops
55 - # define OVR_XMIT pOrgOps->ndo_start_xmit
56 -
57 ---- vboxpci/include/VBox/rawpci.h
58 -+++ vboxpci/include/VBox/rawpci.h
59 -@@ -545,7 +545,7 @@ typedef struct RAWPCIFACTORY
60 - DECLR0CALLBACKMEMBER(void, pfnDeinitVm,(PRAWPCIFACTORY pFactory,
61 - PVM pVM,
62 - PRAWPCIPERVM pPciData));
63 --} RAWPCIFACTORY;
64 -+} __no_const RAWPCIFACTORY;
65 -
66 - #define RAWPCIFACTORY_UUID_STR "ea089839-4171-476f-adfb-9e7ab1cbd0fb"
67 -
68
69 diff --git a/app-emulation/virtualbox-modules/files/virtualbox-modules-5.1.30-udp.patch b/app-emulation/virtualbox-modules/files/virtualbox-modules-5.1.30-udp.patch
70 deleted file mode 100644
71 index b9f695e49a1..00000000000
72 --- a/app-emulation/virtualbox-modules/files/virtualbox-modules-5.1.30-udp.patch
73 +++ /dev/null
74 @@ -1,35 +0,0 @@
75 -diff --git a/work/vboxnetflt/linux/VBoxNetFlt-linux.c b/work/vboxnetflt/linux/VBoxNetFlt-linux.c
76 -index f824654..b61d82c 100644
77 ---- work/vboxnetflt/linux/VBoxNetFlt-linux.c
78 -+++ work/vboxnetflt/linux/VBoxNetFlt-linux.c
79 -@@ -126,6 +126,10 @@ typedef struct VBOXNETFLTNOTIFIER *PVBOXNETFLTNOTIFIER;
80 - # endif
81 - #endif
82 -
83 -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0)
84 -+#define SKB_GSO_UDP 0
85 -+#endif
86 -+
87 - #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 20, 0)
88 - # define VBOX_HAVE_SKB_VLAN
89 - #else
90 -diff --git a/work/vboxpci/linux/VBoxPci-linux.c b/work/vboxpci/linux/VBoxPci-linux.c
91 -index 2dbf47f..e361ef3 100644
92 ---- work/vboxpci/linux/VBoxPci-linux.c
93 -+++ work/vboxpci/linux/VBoxPci-linux.c
94 -@@ -353,12 +353,16 @@ static void vboxPciFileClose(struct file* file)
95 - static int vboxPciFileWrite(struct file* file, unsigned long long offset, unsigned char* data, unsigned int size)
96 - {
97 - int ret;
98 -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0)
99 -+ ret = kernel_write(file, data, size, &offset);
100 -+#else
101 - mm_segment_t fs_save;
102 -
103 - fs_save = get_fs();
104 - set_fs(get_ds());
105 - ret = vfs_write(file, data, size, &offset);
106 - set_fs(fs_save);
107 -+#endif
108 - if (ret < 0)
109 - printk(KERN_DEBUG "vboxPciFileWrite: error %d\n", ret);