lkml.org 
[lkml]   [2010]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Stupid lockdep question...
Date
On Wednesday 13 October 2010, Valdis.Kletnieks@vt.edu wrote:
> I have a 3rd-party module, that throws this whinge:
>
> [ 65.831296] INFO: trying to register non-static key.
> [ 65.831301] the code is fine but needs lockdep annotation.
> [ 65.831303] turning off the locking correctness validator.
>
> I've identified that it's a call to down(*foo) where foo points to a kmalloc'ed
> block of memory that's memset() to all-zeros. What's the initializer/annotation
> I need to add to my code?
>

It would be easier if you posted a link to the source, but the best
answer is problably:

- replace the semaphore with a regular mutex,
- use mutex_init to initialize it after the allocation.

Arnd


\
 
 \ /
  Last update: 2010-10-13 17:45    [W:0.017 / U:1.428 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site