From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:33262) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaRGn-0006Kp-H2 for qemu-devel@nongnu.org; Mon, 19 Nov 2012 08:20:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TaRGk-0004RR-FV for qemu-devel@nongnu.org; Mon, 19 Nov 2012 08:20:13 -0500 Received: from mail-ia0-f173.google.com ([209.85.210.173]:46100) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaRGk-0004QV-Ad for qemu-devel@nongnu.org; Mon, 19 Nov 2012 08:20:10 -0500 Received: by mail-ia0-f173.google.com with SMTP id w21so2071790iac.4 for ; Mon, 19 Nov 2012 05:20:08 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <3CA9BC2F-0996-46CA-AB82-BFE7D3364272@suse.de> References: <1352808709-11215-1-git-send-email-borntraeger@de.ibm.com> <3CA9BC2F-0996-46CA-AB82-BFE7D3364272@suse.de> Date: Mon, 19 Nov 2012 13:20:07 +0000 Message-ID: From: Peter Maydell Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH 06/24] Remove local ram_size that hides global one List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: Christian Borntraeger , Heinz Graalfs , "qemu-devel@nongnu.org qemu-devel" , Eduardo Habkost On 19 November 2012 13:14, Alexander Graf wrote: > > On 13.11.2012, at 13:11, Christian Borntraeger wrote: > >> From: Heinz Graalfs >> >> The global variable 'ram_size' is hidden by the local variable >> declaration in s390_init() > > That's the point of Eduardo's patch, no? Or do we need access > to the global to change its value afterwards? The function later does: /* lets propagate the changed ram size into the global variable. */ ram_size = my_ram_size; which frankly I think is pretty nasty but then we've never had a very good mechanism for specifying board-specific restrictions around the memory size. -- PMM