Skip to contentSkip to conversation

[PATCH} Add missing __initdata

PATCH Ulrich Drepper 1 participant 1 message Apr 21, 2004

lore
Share & tools
lore
#0 lore raw

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.

Signature · 1 line
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
nfs/nfsroot.c renamed from nfs/nfsroot.c-old +1 -1
@@ -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 */