aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/vboxguestdrivers/vboxguestdrivers/kernel-5.8-4.patch
blob: cb4148fc793a63c4038b7da0d291b4da1d516a3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Fix kernel 5.8 forbidding use of vermagic.h header file
Author: Gianfranco Costamagna <locutusofborg@debian.org>
Origin: https://www.virtualbox.org/ticket/19644
Bug-Ubuntu: https://launchpad.net/bugs/1884652
Last-Update: 2020-08-10

--- virtualbox-6.1.12-dfsg.orig/src/VBox/Additions/linux/sharedfolders/vfsmod.c
+++ virtualbox-6.1.12-dfsg/src/VBox/Additions/linux/sharedfolders/vfsmod.c
@@ -53,7 +53,9 @@
 #include <linux/seq_file.h>
 #include <linux/vfs.h>
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 62)
-# include <linux/vermagic.h>
+# if LINUX_VERSION_CODE < KERNEL_VERSION(5, 8, 0)
+#  include <linux/vermagic.h>
+# endif
 #endif
 #include <VBox/err.h>
 #include <iprt/path.h>