Skip to content

Commit 0e241ff

Browse files
rddunlapIngo Molnar
authored andcommitted
locking: fix mutex @key parameter kernel-doc notation
Fix @key parameter to mutex_init() and one of its callers. Warning(linux-2.6.26-git11//drivers/base/class.c:210): No description found for parameter 'key' Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Acked-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent c9272c4 commit 0e241ff

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/base/class.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ static void class_create_release(struct class *cls)
198198
* class_create - create a struct class structure
199199
* @owner: pointer to the module that is to "own" this struct class
200200
* @name: pointer to a string for the name of this class.
201+
* @key: the lock_class_key for this class; used by mutex lock debugging
201202
*
202203
* This is used to create a struct class pointer that can then be used
203204
* in calls to device_create().

‎kernel/mutex.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
/***
3535
* mutex_init - initialize the mutex
3636
* @lock: the mutex to be initialized
37+
* @key: the lock_class_key for the class; used by mutex lock debugging
3738
*
3839
* Initialize the mutex to unlocked state.
3940
*

0 commit comments

Comments
 (0)