From: "Nicholas A. Bellinger" Subject: Re: [PATCH 018/103] target: Remove struct se_global Date: Sat, 23 Jul 2011 14:26:06 -0700 Message-ID: <1311456366.31450.294.camel@haakon2.linux-iscsi.org> References: <1311231979-6631-1-git-send-email-nab@linux-iscsi.org> <1311231979-6631-19-git-send-email-nab@linux-iscsi.org> <1311412637.31450.242.camel@haakon2.linux-iscsi.org> <20110723133639.GA32255@infradead.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from mail.linux-iscsi.org ([67.23.28.174]:58791 "EHLO linux-iscsi.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751374Ab1GWVfX (ORCPT ); Sat, 23 Jul 2011 17:35:23 -0400 In-Reply-To: <20110723133639.GA32255@infradead.org> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Christoph Hellwig Cc: Fubo Chen , linux-iscsi-target-dev@googlegroups.com, target-devel , linux-scsi , Andy Grover On Sat, 2011-07-23 at 09:36 -0400, Christoph Hellwig wrote: > On Sat, Jul 23, 2011 at 02:17:17AM -0700, Nicholas A. Bellinger wrote: > > > > #include "target_core_rd.h" > > > > #include "target_core_stat.h" > > > > > > > > +extern struct t10_alua_lu_gp *default_lu_gp; > > > > > > I see here an extern declaration in a .c file. Shouldn't instead that > > > be moved to a header file ? > > > > > > > I don't really have a strong preference here either way, and will defer > > to Andy and Christoph for mainline style consideration on these two > > particular bits.. > > externs should always be in headers. In fact sparse will complain about > having it in the .c file. > Ok, fixing this up now in lio-core-2.6.git and will get this included into the initial merge.