From: Namhyung Kim Date: Wed, 20 Oct 2010 22:57:34 +0000 (-0700) Subject: posix-timers: Annotate lock_timer() X-Git-Tag: v2.6.38-rc1~416^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20f33a03f0cf87e51165f7084f697acfb68e865b;p=pandora-kernel.git posix-timers: Annotate lock_timer() lock_timer() conditionally grabs it_lock in case of returning non-NULL but unlock_timer() releases it unconditionally. This leads sparse to complain about the lock context imbalance. Rename and wrap lock_timer using __cond_lock() macro to make sparse happy. Signed-off-by: Namhyung Kim Signed-off-by: Andrew Morton Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed