From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Lamanna Subject: Re: I request inclusion of reiser4 in the mainline kernel Date: Tue, 20 Sep 2005 16:51:00 -0700 Message-ID: References: Reply-To: James Lamanna Mime-Version: 1.0 Content-Transfer-Encoding: 7BIT Return-path: In-Reply-To: Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii" To: Vadim Lobanov Cc: stephen.pollei@gmail.com, vonbrand@inf.utfsm.cl, nikita@clusterfs.com, vda@ilport.com.ua, linux-kernel@vger.kernel.org, reiserfs-list@namesys.com On 9/20/05, Vadim Lobanov wrote: > On Tue, 20 Sep 2005, James Lamanna wrote: > > > On 9/20/05, Stephen Pollei wrote: > > >On 9/20/05, Hans Reiser wrote: > > > > Horst von Brand wrote: > > > > >Nikita Danilov wrote: > > What about #warning / #error in this case? > > > > #if defined(DEBUG_THIS) || defined(DEBUG_THAT) > > int znode_is_loaded(const struct znode *z); > > #else > > #error znode_is_loaded is unavailable when not debugging > > #endif > > > > That would certainly break the compile. > > Except that breaks the compile unconditionally, not just when someone > tries to use the function when they shouldn't. I don't think a flat > error will work here, but instead something along the lines of a > __attribute__((error)) on the function is needed. Oh duh. It would wouldn't it :) Too much on my mind today. > > > -- James Lamanna > > - > > -VadimL > -- James Lamanna