Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 259581 Details for
Bug 349649
app-emulation/vmware-modules-1.0.0.25-r2 doesn't compile with kernel >=2.6.37
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for 2.6.37
vmware-modules-1.0.0.25-r2-defineSemaphore.patch (text/plain), 3.67 KB, created by
Mateusz Dziadko
on 2011-01-11 22:06:00 UTC
(
hide
)
Description:
patch for 2.6.37
Filename:
MIME Type:
Creator:
Mateusz Dziadko
Created:
2011-01-11 22:06:00 UTC
Size:
3.67 KB
patch
obsolete
>diff -ru vmware-modules-1.0.0.25-r2.orig/work/vmci-only/include/compat_semaphore.h vmware-modules-1.0.0.25-r2/work/vmci-only/include/compat_semaphore.h >--- vmware-modules-1.0.0.25-r2.orig/work/vmci-only/include/compat_semaphore.h 2011-01-11 21:55:57.016999997 +0100 >+++ vmware-modules-1.0.0.25-r2/work/vmci-only/include/compat_semaphore.h 2011-01-11 21:57:39.719999997 +0100 >@@ -45,5 +45,13 @@ > #endif > #endif > >+#if (defined CONFIG_PREEMPT_RT && LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 31)) || LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37) >+ #ifndef DECLARE_MUTEX >+ #define DECLARE_MUTEX(_m) DEFINE_SEMAPHORE(_m) >+ #endif >+ #ifndef init_MUTEX >+ #define init_MUTEX(_m) sema_init(_m,1) >+ #endif >+#endif > > #endif /* __COMPAT_SEMAPHORE_H__ */ >diff -ru vmware-modules-1.0.0.25-r2.orig/work/vmmon-only/include/compat_semaphore.h vmware-modules-1.0.0.25-r2/work/vmmon-only/include/compat_semaphore.h >--- vmware-modules-1.0.0.25-r2.orig/work/vmmon-only/include/compat_semaphore.h 2011-01-11 21:55:57.028999997 +0100 >+++ vmware-modules-1.0.0.25-r2/work/vmmon-only/include/compat_semaphore.h 2011-01-11 21:58:57.529999998 +0100 >@@ -45,5 +45,13 @@ > #endif > #endif > >+#if (defined CONFIG_PREEMPT_RT && LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 31)) || LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37) >+ #ifndef DECLARE_MUTEX >+ #define DECLARE_MUTEX(_m) DEFINE_SEMAPHORE(_m) >+ #endif >+ #ifndef init_MUTEX >+ #define init_MUTEX(_m) sema_init(_m,1) >+ #endif >+#endif > > #endif /* __COMPAT_SEMAPHORE_H__ */ >diff -ru vmware-modules-1.0.0.25-r2.orig/work/vmnet-only/compat_semaphore.h vmware-modules-1.0.0.25-r2/work/vmnet-only/compat_semaphore.h >--- vmware-modules-1.0.0.25-r2.orig/work/vmnet-only/compat_semaphore.h 2011-01-11 21:55:57.022999997 +0100 >+++ vmware-modules-1.0.0.25-r2/work/vmnet-only/compat_semaphore.h 2011-01-11 21:58:23.678999996 +0100 >@@ -45,5 +45,14 @@ > #endif > #endif > >+#if (defined CONFIG_PREEMPT_RT && LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 31)) || LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37) >+ #ifndef DECLARE_MUTEX >+ #define DECLARE_MUTEX(_m) DEFINE_SEMAPHORE(_m) >+ #endif >+ #ifndef init_MUTEX >+ #define init_MUTEX(_m) sema_init(_m,1) >+ #endif >+#endif >+ > > #endif /* __COMPAT_SEMAPHORE_H__ */ >diff -ru vmware-modules-1.0.0.25-r2.orig/work/vmnet-only/vnetFilter.h vmware-modules-1.0.0.25-r2/work/vmnet-only/vnetFilter.h >--- vmware-modules-1.0.0.25-r2.orig/work/vmnet-only/vnetFilter.h 2011-01-11 21:55:57.020999997 +0100 >+++ vmware-modules-1.0.0.25-r2/work/vmnet-only/vnetFilter.h 2011-01-11 22:02:29.522999997 +0100 >@@ -203,5 +203,13 @@ > } > #include "vmware_pack_end.h" > VNet_SetLogLevel; >+#if (defined CONFIG_PREEMPT_RT && LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 31)) || LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37) >+ #ifndef DECLARE_MUTEX >+ #define DECLARE_MUTEX(_m) DEFINE_SEMAPHORE(_m) >+ #endif >+ #ifndef init_MUTEX >+ #define init_MUTEX(_m) sema_init(_m,1) >+ #endif >+#endif > > #endif // ifndef _VNETFILTER_H_ >diff -ru vmware-modules-1.0.0.25-r2.orig/work/vsock-only/linux/af_vsock.h vmware-modules-1.0.0.25-r2/work/vsock-only/linux/af_vsock.h >--- vmware-modules-1.0.0.25-r2.orig/work/vsock-only/linux/af_vsock.h 2011-01-11 21:55:57.040999997 +0100 >+++ vmware-modules-1.0.0.25-r2/work/vsock-only/linux/af_vsock.h 2011-01-11 22:03:59.066999997 +0100 >@@ -88,4 +88,14 @@ > #endif > } VSockVmciSock; > >+#if (defined CONFIG_PREEMPT_RT && LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 31)) || LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37) >+ #ifndef DECLARE_MUTEX >+ #define DECLARE_MUTEX(_m) DEFINE_SEMAPHORE(_m) >+ #endif >+ #ifndef init_MUTEX >+ #define init_MUTEX(_m) sema_init(_m,1) >+ #endif >+#endif >+ >+ > #endif /* __AF_VSOCK_H__ */
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 349649
: 259581