The patch titled mutex: make mutex_destroy() an inline function has been added to the -mm tree. Its filename is mutex-make-mutex_destroy-an-inline-function.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: mutex: make mutex_destroy() an inline function From: Jean Delvare <khali@xxxxxxxxxxxx> 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 <khali@xxxxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/mutex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN include/linux/mutex.h~mutex-make-mutex_destroy-an-inline-function include/linux/mutex.h --- a/include/linux/mutex.h~mutex-make-mutex_destroy-an-inline-function +++ a/include/linux/mutex.h @@ -92,7 +92,7 @@ do { \ \ __mutex_init((mutex), #mutex, &__key); \ } while (0) -# define mutex_destroy(mutex) do { } while (0) +static inline void mutex_destroy(struct mutex *lock) {} #endif #ifdef CONFIG_DEBUG_LOCK_ALLOC _ Patches currently in -mm which might be from khali@xxxxxxxxxxxx are origin.patch linux-next.patch thermal-hide-config_thermal_hwmon.patch thermal-split-hwmon-lookup-to-a-separate-function.patch thermal-make-thermal_hwmon-implementation-fully-internal.patch drivers-firmware-dmi_scanc-make-dmi_name_in_vendors-more-focused.patch mutex-make-mutex_destroy-an-inline-function.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html