Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934265AbZLPAJ0 (ORCPT ); Tue, 15 Dec 2009 19:09:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S934233AbZLPAJX (ORCPT ); Tue, 15 Dec 2009 19:09:23 -0500 Received: from www.tglx.de ([62.245.132.106]:50260 "EHLO www.tglx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934136AbZLPAJV (ORCPT ); Tue, 15 Dec 2009 19:09:21 -0500 Date: Wed, 16 Dec 2009 01:09:03 +0100 (CET) From: Thomas Gleixner To: Jonathan Corbet cc: Keith Mannthey , lkml , John Stultz Subject: Re: [RFC][Patch] IBM Real-Time "SMI Free" mode drive -v2 In-Reply-To: <20091215164950.1fd41caf@bike.lwn.net> Message-ID: References: <1260907788.6521.10.camel@keith-laptop> <20091215164950.1fd41caf@bike.lwn.net> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 720 Lines: 27 On Tue, 15 Dec 2009, Jonathan Corbet wrote: > On Tue, 15 Dec 2009 12:09:48 -0800 > Keith Mannthey wrote: > > > +#include > > +#include > > +#include "rtl.h" > > + > > +static spinlock_t rtl_lock; > > You should probably include for this. And use: DEFINE_SPINLOCK(rtl_lock); because the lock is uninitialized otherwise. Running that code with lockdep would have warned about that. Thanks, tglx -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/