Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 295019 Details for
Bug 384739
app-emulation/vmware-modules-238.4-r1 and above fails to build against hardened-sources-3.0.4-r1
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
make vmmon-only/linux/driver.c compatible with kernel 3.0.4
vmmon-driver.patch (text/plain), 1.66 KB, created by
Alex Efros
on 2011-12-06 20:26:38 UTC
(
hide
)
Description:
make vmmon-only/linux/driver.c compatible with kernel 3.0.4
Filename:
MIME Type:
Creator:
Alex Efros
Created:
2011-12-06 20:26:38 UTC
Size:
1.66 KB
patch
obsolete
>diff -uNr vmmon-only.orig/linux/driver.c vmmon-only/linux/driver.c >--- vmmon-only.orig/linux/driver.c 2011-12-06 21:44:22.000000000 +0200 >+++ vmmon-only/linux/driver.c 2011-12-06 21:47:44.000000000 +0200 >@@ -179,7 +179,25 @@ > #endif > }; > >-static struct file_operations vmuser_fops; >+/* >+ * Moved file operations initialize here because of incompatibilites >+ * with Gentoo hardened profile/hardend Linux 3. >+ */ >+static struct file_operations vmuser_fops = { >+ .owner = THIS_MODULE, >+ .poll = LinuxDriverPoll, >+#ifdef HAVE_UNLOCKED_IOCTL >+ .unlocked_ioctl = LinuxDriver_UnlockedIoctl, >+#else >+ .ioctl = LinuxDriver_Ioctl, >+#endif >+#ifdef HAVE_COMPAT_IOCTL >+ .compat_ioctl = LinuxDriver_UnlockedIoctl, >+#endif >+ .open = LinuxDriver_Open, >+ .release = LinuxDriver_Close, >+ .mmap = LinuxDriverMmap >+}; > static struct timer_list tscTimer; > > /* >@@ -358,27 +376,6 @@ > spin_lock_init(&linuxState.pollListLock); > #endif > >- /* >- * Initialize the file_operations structure. Because this code is always >- * compiled as a module, this is fine to do it here and not in a static >- * initializer. >- */ >- >- memset(&vmuser_fops, 0, sizeof vmuser_fops); >- vmuser_fops.owner = THIS_MODULE; >- vmuser_fops.poll = LinuxDriverPoll; >-#ifdef HAVE_UNLOCKED_IOCTL >- vmuser_fops.unlocked_ioctl = LinuxDriver_UnlockedIoctl; >-#else >- vmuser_fops.ioctl = LinuxDriver_Ioctl; >-#endif >-#ifdef HAVE_COMPAT_IOCTL >- vmuser_fops.compat_ioctl = LinuxDriver_UnlockedIoctl; >-#endif >- vmuser_fops.open = LinuxDriver_Open; >- vmuser_fops.release = LinuxDriver_Close; >- vmuser_fops.mmap = LinuxDriverMmap; >- > #ifdef VMX86_DEVEL > devel_init_module(); > linuxState.minor = 0;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 384739
:
288029
|
288173
|
290023
|
295017
| 295019 |
295021
|
301473