public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ulrich Drepper <drepper@redhat.com>
To: Andrew Morton <akpm@osdl.org>, Linus Torvalds <torvalds@osdl.org>,
	Linux Kernel <linux-kernel@vger.kernel.org>
Cc: Arjan van de Ven <arjanv@redhat.com>
Subject: [PATCH} Add missing __initdata
Date: Wed, 21 Apr 2004 07:07:54 -0700	[thread overview]
Message-ID: <4086803A.5000308@redhat.com> (raw)

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

                 reply	other threads:[~2004-04-21 14:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4086803A.5000308@redhat.com \
    --to=drepper@redhat.com \
    --cc=akpm@osdl.org \
    --cc=arjanv@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox