From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: [PATCH 3/3] x86: OLPC: speed up device tree creation during boot (v2) Date: Sun, 14 Nov 2010 20:21:34 -0800 Message-ID: <4CE0B54E.6000101@zytor.com> References: <20101111214546.4e573cad@queued.net> <20101112002704.50c629e2@queued.net> <20101114095013.GB24206@elte.hu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20101114095013.GB24206-X9Un+BFzKDI@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: Ingo Molnar Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Milton Miller , Ingo Molnar , Andres Salomon , Thomas Gleixner List-Id: devicetree@vger.kernel.org On 11/14/2010 01:50 AM, Ingo Molnar wrote: > > It's being frowned upon btw, because it's easy to overlook (and for other reasons) - > please dont use statics inside functions - please put them in front of the function > or further up into file scope. > What? What is wrong with static variables in functions? It really doesn't seem to be a good idea to make them file-scope if they don't need to be. -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.