From: Mark Fasheh Date: Thu, 10 Apr 2008 20:55:21 +0000 (-0700) Subject: Add additional examples in Documentation/spinlocks.txt X-Git-Tag: v2.6.25-rc9~1^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14dadf1d5eb5bea2dd115852cfee880505c1c169;p=pandora-kernel.git Add additional examples in Documentation/spinlocks.txt Checkpatch will throw an error if code doesn't use the correct initializers for static spinlocks: ERROR: Use of SPIN_LOCK_UNLOCKED is deprecated: see Documentation/spinlocks.txt This is fine, but Documentation/spinlocks.txt isn't very clear on how to _use_ the new initializers for static variables. To save people time in the future, I added two small examples of how to fix old-style static initializers to be more lockdep friendly. Signed-off-by: Mark Fasheh Signed-off-by: Jonathan Corbet --- Reading git-diff-tree failed