Skip to content
Commit 4582c0a4 authored by Jean Delvare's avatar Jean Delvare Committed by Ingo Molnar
Browse files

mutex: Make mutex_destroy() an inline function



The non-debug variant of mutex_destroy is a no-op, currently
implemented as a macro which does nothing. This approach fails
to check the type of the parameter, so an error would only show
when debugging gets enabled. Using an inline function instead,
offers type checking for earlier bug catching.

Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20110716174200.41002352@endymion.delvare
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 732375c6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment