Description: Fix vboxvideo guest additions build on Linux kernel 7.0+
 Linux kernel 7.0 removed the fb_debug_enter and fb_debug_leave members
 from struct fb_ops. This patch conditionally excludes these initializations
 using the RTLNX_VER_MAX macro to prevent compilation failures and subsequent
 system boot hangs during VirtualBox guest additions installation.
Author: Antigravity AI <antigravity@google.com>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1072999
Origin: vendor, Kali Linux
Forwarded: yes
Last-Update: 2026-06-29

--- a/src/VBox/Additions/linux/drm/vbox_fb.c
+++ b/src/VBox/Additions/linux/drm/vbox_fb.c
@@ -211,8 +211,10 @@ static struct fb_ops vbox_fb_ops = {
 	.fb_pan_display = drm_fb_helper_pan_display,
 	.fb_blank = drm_fb_helper_blank,
 	.fb_setcmap = drm_fb_helper_setcmap,
+#if RTLNX_VER_MAX(7,0,0)
 	.fb_debug_enter = drm_fb_helper_debug_enter,
 	.fb_debug_leave = drm_fb_helper_debug_leave,
+#endif
 };
