Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757493AbYJPVYk (ORCPT ); Thu, 16 Oct 2008 17:24:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755372AbYJPVYb (ORCPT ); Thu, 16 Oct 2008 17:24:31 -0400 Received: from xenotime.net ([66.160.160.81]:53876 "HELO xenotime.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1755345AbYJPVYb (ORCPT ); Thu, 16 Oct 2008 17:24:31 -0400 Date: Thu, 16 Oct 2008 14:24:27 -0700 (PDT) From: "Randy.Dunlap" X-X-Sender: rddunlap@shark.he.net To: Alex Chiang cc: Adrian Bunk , Tejun Heo , jeff@redhat.com, linux-ide@vger.kernel.org, linux-kernel Subject: Re: [PATCH] stop gcc warning about uninitialized 'dev' in ata_scsi_scan_host In-Reply-To: <20081016212244.GB18274@ldl.fc.hp.com> Message-ID: References: <20081015232505.GB9272@ldl.fc.hp.com> <48F6A2E7.5090005@kernel.org> <20081016034042.GA27621@ldl.fc.hp.com> <20081016061638.GA23630@cs181140183.pp.htv.fi> <20081016212244.GB18274@ldl.fc.hp.com> 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: 674 Lines: 21 > > > I guess we don't want to sprinkle these around all over the place > > > just to solve cosmetic issues, which makes sense, but is there > > > some other approach we could take instead? Any suggestions? Or > > > just live with it? > > > > We have an annotation for these kinds of warnings in the kernel. > > Oh, is it this? > > from linux/compiler-gcc3.h > #define uninitialized_var(x) x = x Yes, you got it. -- ~Randy -- 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/