]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] stack reductions: nfs root
authorAndrew Morton <akpm@osdl.org>
Tue, 13 Apr 2004 02:25:41 +0000 (19:25 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 13 Apr 2004 02:25:41 +0000 (19:25 -0700)
From: Arjan van de Ven <arjanv@redhat.com>

root_nfs_name is called one in single threaded environment; can use static.

fs/nfs/nfsroot.c

index 305ef463bf82845534e44842072c36727171dfa1..2e43a7b76cd72e0ea67a63eb475858fa60dcefc6 100644 (file)
@@ -273,7 +273,7 @@ static int __init root_nfs_parse(char *name, char *buf)
  */
 static int __init root_nfs_name(char *name)
 {
-       char buf[NFS_MAXPATHLEN];
+       static char buf[NFS_MAXPATHLEN];
        char *cp;
 
        /* Set some default values */