From: Jean Delvare Date: Sat, 16 Jul 2011 15:42:00 +0000 (+0200) Subject: mutex: Make mutex_destroy() an inline function X-Git-Tag: v3.1-rc1~302^2~1 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4582c0a4866ea70c35aa9279e1f91834d3348a93;p=pandora-kernel.git 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: Jean Delvare Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20110716174200.41002352@endymion.delvare Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed