Re: [ANNOUNCE] 2.6.31-rc4-rt1

Tim Blechmann
2009-07-30T09:56:36Z

[-- Attachment #1.1: Type: text/plain, Size: 533 bytes --]

On 07/30/2009 02:48 AM, Thomas Gleixner wrote:
> Part of that semaphore rework is the RFC patch series I posted
> recently to get rid of the init_MUTEX[_LOCKED] irritation (minus
> the ones which turned out to be wrong)

this change breaks the compilation of the binary nvidia kernel module.
in order to build the module, i need to apply the attached patch.

best, tim

--
tim@klingt.org
http://tim.klingt.org

Silence is only frightening to people who are compulsively
verbalizing.
William S. Burroughs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: rt_preempt_31.patch --]
[-- Type: text/x-diff; name="rt_preempt_31.patch", Size: 565 bytes --]

--- /home/tim/.emacs.d/backups/!var!lib!dkms!nvidia!185.18.29!build!nv-linux.h.~1~ 2009-07-30 11:21:49.069661782 +0200
+++ /usr/src/nvidia-185.18.29/nv-linux.h 2009-07-30 11:38:44.857538204 +0200
@@ -721,7 +721,7 @@
#define nv_up(lock) up(&lock)

#if defined(CONFIG_PREEMPT_RT)
-#define NV_INIT_MUTEX(mutex) init_MUTEX(mutex)
+#define NV_INIT_MUTEX(mutex) semaphore_init(mutex)
#else
#if !defined(__SEMAPHORE_INITIALIZER) && defined(__COMPAT_SEMAPHORE_INITIALIZER)
#define __SEMAPHORE_INITIALIZER __COMPAT_SEMAPHORE_INITIALIZER

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]