Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 17 Aug 2002 13:27:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 17 Aug 2002 13:27:21 -0400 Received: from ebiederm.dsl.xmission.com ([166.70.28.69]:3957 "EHLO frodo.biederman.org") by vger.kernel.org with ESMTP id ; Sat, 17 Aug 2002 13:27:20 -0400 To: Benjamin LaHaise Cc: Linus Torvalds , Linux Kernel Subject: Re: [patch] reduce stack usage of sanitize_e820_map References: <20020815174825.F29874@redhat.com> From: ebiederm@xmission.com (Eric W. Biederman) Date: 17 Aug 2002 11:18:11 -0600 In-Reply-To: <20020815174825.F29874@redhat.com> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 653 Lines: 12 Benjamin LaHaise writes: > Hello, > > Currently, sanitize_e820_map uses 0x738 bytes of stack. The patch below > moves the arrays into __initdata, reducing stack usage to 0x34 bytes. Can we keep the arrays in sanitize_e820_map and just mark then static and __initdata? That would appear to be a cleaner solution. Polluting the global kernel name space with these is not nice. Eric - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/