From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 17 Dec 2007 11:40:24 +1100 From: David Gibson To: Scott Wood Subject: Re: [PATCH 1/2] wrapper: rename offset in offset_devp(). Message-ID: <20071217004023.GB2394@localhost.localdomain> References: <20071211212303.GA3661@loki.buserror.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20071211212303.GA3661@loki.buserror.net> Cc: linuxppc-dev@ozlabs.org, paulus@samba.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, Dec 11, 2007 at 03:23:04PM -0600, Scott Wood wrote: > fdt_wrapper_create_node passes a variable called offset to offset_devp(), > which uses said parameter to initialize a local variable called offset. > > Due to one of the odder aspects of the C language, the result is an > undefined variable, with no error or warning. Ouch, nasty! Good catch. > Signed-off-by: Scott Wood Acked-by: David Gibson -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson