From: Johannes Berg Date: Fri, 12 Aug 2011 18:23:08 +0000 (+0200) Subject: The led_lock is never initialised, so there X-Git-Tag: compat-2011-09-28~12 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=55a12f9e3f95e8555e84d413b18c16ab54a257e6;p=~emulex%2Ftmp%2Fcompat%2F.git The led_lock is never initialised, so there are warnings/errors. It can also be made static. Signed-off-by: Johannes Berg --- diff --git a/compat/compat-2.6.37.c b/compat/compat-2.6.37.c index a62b13f..257880e 100644 --- a/compat/compat-2.6.37.c +++ b/compat/compat-2.6.37.c @@ -158,7 +158,7 @@ EXPORT_SYMBOL(compat_genl_unregister_family); #undef led_brightness_set #undef led_classdev_unregister -spinlock_t led_lock; +static DEFINE_SPINLOCK(led_lock); static LIST_HEAD(led_timers); struct led_timer {