From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753524Ab1K2LZ3 (ORCPT ); Tue, 29 Nov 2011 06:25:29 -0500 Received: from mailrelay002.isp.belgacom.be ([195.238.6.175]:46385 "EHLO mailrelay002.isp.belgacom.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751473Ab1K2LZ0 (ORCPT ); Tue, 29 Nov 2011 06:25:26 -0500 X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAPu/1E5R8sT5/2dsb2JhbABDqnSBBoFyAQEEATocIwULCANGFA0YAyETiAUCtyASiwwElFOJDYFQhzY Date: Tue, 29 Nov 2011 12:21:57 +0100 From: Wim Van Sebroeck To: Axel Lin Cc: linux-kernel@vger.kernel.org, Nicolas Thill , Heiko Ronsdorf , Rodolfo Giometti , Andrey Panin , Guido Guenther , Curt E Bruns , Deepak Saxena , Andrew Victor , "George G. Davis" , Sylver Bruneau , linux-watchdog@vger.kernel.org Subject: Re: [PATCH 1/2 (resend)] watchdog: Use DEFINE_SPINLOCK() for static spinlocks Message-ID: <20111129112157.GJ23376@infomag.iguana.be> References: <1322546041.9040.1.camel@phoenix> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1322546041.9040.1.camel@phoenix> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alex, > Rather than just defining static spinlock_t variables and then > initializing them later in init functions, simply define them with > DEFINE_SPINLOCK() and remove the calls to spin_lock_init(). > > Cc: Wim Van Sebroeck > Cc: Nicolas Thill > Cc: Heiko Ronsdorf > Cc: Rodolfo Giometti > Cc: Andrey Panin > Cc: Guido Guenther > Cc: Curt E Bruns > Cc: Deepak Saxena > Cc: Andrew Victor > Cc: George G. Davis > Cc: Sylver Bruneau > Signed-off-by: Axel Lin Added to the linux-next branch of the watchdog tree. Kind regards, Wim.