[PATCH} Add missing __initdata

From: Ulrich Drepper
Date: Wed Apr 21 2004 - 09:10:08 EST


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 â
--- 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 */