public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH} Add missing __initdata
@ 2004-04-21 14:07 Ulrich Drepper
  0 siblings, 0 replies; only message in thread
From: Ulrich Drepper @ 2004-04-21 14:07 UTC (permalink / raw)
  To: Andrew Morton, Linus Torvalds, Linux Kernel; +Cc: Arjan van de Ven

[-- Attachment #1: Type: text/plain, Size: 317 bytes --]

One of the stack size optimizations introduced a new static variable in
a function marked with __init.  The problem is the variable is not
marked appropriately and so 1k of data is not freed.  The attached patch
fixes the problem.

-- 
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖

[-- Attachment #2: d-nfsroot --]
[-- Type: text/plain, Size: 359 bytes --]

--- fs/nfs/nfsroot.c-old	2004-04-19 14:11:17.000000000 -0700
+++ fs/nfs/nfsroot.c	2004-04-21 06:48:23.000000000 -0700
@@ -273,7 +273,7 @@ static int __init root_nfs_parse(char *n
  */
 static int __init root_nfs_name(char *name)
 {
-	static char buf[NFS_MAXPATHLEN];
+	static char buf[NFS_MAXPATHLEN] __initdata;
 	char *cp;
 
 	/* Set some default values */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-04-21 14:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-21 14:07 [PATCH} Add missing __initdata Ulrich Drepper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox