Thread (11 messages) 11 messages, 4 authors, 2006-07-10

Re: [PATCH 6/6] Account for memmap and optionally the kernel image as holes

From: Mel Gorman <hidden>
Date: 2006-07-10 15:31:33
Also in: linux-mm, lkml

On (10/07/06 12:30), David Howells didst pronounce:
Mel Gorman [off-list ref] wrote:
quoted
+unsigned long __initdata dma_reserve;
Should this be static?  Or should it be predeclared in a header file
somewhere?
It should be static as it's set by set_dma_reserve(). Thanks.

diff -rup -X /usr/src/patchset-0.6/bin//dontdiff linux-2.6.17-mm6-106-account_kernel_mmap/mm/page_alloc.c linux-2.6.17-mm6-107-fixstatic/mm/page_alloc.c
--- linux-2.6.17-mm6-106-account_kernel_mmap/mm/page_alloc.c	2006-07-10 15:55:09.000000000 +0100
+++ linux-2.6.17-mm6-107-fixstatic/mm/page_alloc.c	2006-07-10 16:03:26.000000000 +0100
@@ -87,7 +87,7 @@ int min_free_kbytes = 1024;
 
 unsigned long __meminitdata nr_kernel_pages;
 unsigned long __meminitdata nr_all_pages;
-unsigned long __initdata dma_reserve;
+static unsigned long __initdata dma_reserve;
 
 #ifdef CONFIG_ARCH_POPULATES_NODE_MAP
   /*
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help