Sayeth Linus:

commit 736706bee3298208343a76096370e4f6a5c55915
Author: Linus Torvalds <[email protected]>
Date:   Mon Mar 4 10:39:05 2019 -0800

    get rid of legacy 'get_ds()' function
    
    Every in-kernel use of this function defined it to KERNEL_DS (either as
    an actual define, or as an inline function).  It's an entirely
    historical artifact, and long long long ago used to actually read the
    segment selector valueof '%ds' on x86.
    
    Which in the kernel is always KERNEL_DS.

No kernel release versioning on the patch, as the define was in the tree
when Linus did the initial import into git for v2.6.12-rc2 back in April 2005.
If you're trying to build this on a kernel older than that, this is the least of
your problems. :)

--- vboxhost/vboxpci/linux/VBoxPci-linux.c.dist 2019-03-14 16:37:18.758730554 
-0400
+++vboxhost/vboxpci/linux/VBoxPci-linux.c       2019-03-14 16:37:46.354160251 
-0400
@@ -372,7 +372,7 @@ static int vboxPciFileWrite(struct file*
     mm_segment_t fs_save;
 
     fs_save = get_fs();
-    set_fs(get_ds());
+    set_fs(KERNEL_DS);
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0)
     ret = kernel_write(file, data, size, &offset);
 #else

_______________________________________________
vbox-dev mailing list
[email protected]
https://www.virtualbox.org/mailman/listinfo/vbox-dev

Reply via email to