Fix for kernel 6.13 (bsc#1235146).
This commit is contained in:
parent
c10cfbdb7c
commit
163ca1c484
32
kernel-6-13.patch
Normal file
32
kernel-6-13.patch
Normal file
@ -0,0 +1,32 @@
|
||||
From: Jiri Slaby <jslaby@suse.cz>
|
||||
Subject: fix for kernel 6.13 build
|
||||
References: bsc#1235146
|
||||
|
||||
---
|
||||
src/VBox/Additions/linux/drm/vbox_drv.c | 8 ++++++--
|
||||
1 file changed, 6 insertions(+), 2 deletions(-)
|
||||
|
||||
--- a/src/VBox/Additions/linux/drm/vbox_drv.c
|
||||
+++ b/src/VBox/Additions/linux/drm/vbox_drv.c
|
||||
@@ -43,7 +43,9 @@
|
||||
# include <drm/drm_probe_helper.h>
|
||||
#endif
|
||||
|
||||
-#if RTLNX_VER_MIN(5,14,0) || RTLNX_RHEL_RANGE(8,6, 8,99)
|
||||
+#if RTLNX_VER_MIN(6,13,0)
|
||||
+# include <linux/aperture.h>
|
||||
+#elif RTLNX_VER_MIN(5,14,0) || RTLNX_RHEL_RANGE(8,6, 8,99)
|
||||
# include <drm/drm_aperture.h>
|
||||
#endif
|
||||
|
||||
@@ -85,7 +87,9 @@ static int vbox_pci_probe(struct pci_dev
|
||||
int ret = 0;
|
||||
|
||||
# if RTLNX_VER_MIN(5,14,0) || RTLNX_RHEL_RANGE(8,6, 8,99)
|
||||
-# if RTLNX_VER_MIN(5,15,0) || RTLNX_RHEL_RANGE(8,7, 8,99) || RTLNX_RHEL_MIN(9,1) || RTLNX_SUSE_MAJ_PREREQ(15,4)
|
||||
+# if RTLNX_VER_MIN(6,13,0)
|
||||
+ ret = aperture_remove_conflicting_pci_devices(pdev, driver.name);
|
||||
+# elif RTLNX_VER_MIN(5,15,0) || RTLNX_RHEL_RANGE(8,7, 8,99) || RTLNX_RHEL_MIN(9,1) || RTLNX_SUSE_MAJ_PREREQ(15,4)
|
||||
ret = drm_aperture_remove_conflicting_pci_framebuffers(pdev, &driver);
|
||||
# else
|
||||
ret = drm_aperture_remove_conflicting_pci_framebuffers(pdev, "vboxvideofb");
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 21 11:17:17 UTC 2025 - Jiri Slaby <jslaby@suse.cz>
|
||||
|
||||
- add: kernel-6-13.patch (bsc#1235146)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 4 01:40:37 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package virtualbox
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -117,6 +117,7 @@ Patch9: vbox-usb-warning.diff
|
||||
Patch10: fix_for_leap15.5.patch
|
||||
Patch11: cxx17.patch
|
||||
Patch12: host-source.patch
|
||||
Patch13: kernel-6-13.patch
|
||||
#
|
||||
# Common BuildRequires for both virtualbox and virtualbox-kmp
|
||||
BuildRequires: %{kernel_module_package_buildreqs}
|
||||
|
Loading…
x
Reference in New Issue
Block a user