From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 4 Aug 2006 19:01:09 -0700 (PDT) From: Christoph Lameter Subject: Re: Apply type enum zone_type In-Reply-To: <200608050338.47642.ak@suse.de> Message-ID: References: <200608050338.47642.ak@suse.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Andi Kleen Cc: akpm@osdl.org, linux-mm@kvack.org, Lee Schermerhorn List-ID: On Sat, 5 Aug 2006, Andi Kleen wrote: > > We run into some troubles at some points with functions that need a > > zone_type variable to become -1. Fix that up. > > enums are not really type checked, so it seems somewhat pointless > to do this change. It helps to clarify what types of values can be expected from a variable. We have that in various places. > If you really wanted strict type checking you would need typedef struct > and accessors. Right. We definitely do not want that overhead. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org