mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Greg Louis <glouis@dynamicro.on.ca>
To: LKML <linux-kernel@vger.kernel.org>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Subject: mini [PATCH] 2.4.19-pre5-ac1 compile error
Date: Thu, 4 Apr 2002 13:19:26 -0500	[thread overview]
Message-ID: <20020404181925.GA25301@athame.dynamicro.on.ca> (raw)

I needed this patch to prevent this:

gcc -D__KERNEL__ -I/usr/src/expt/linux-2.4.19p5a1/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
-march=i686   -DKBUILD_BASENAME=do_mounts -c -o init/do_mounts.o
init/do_mounts.c
init/do_mounts.c: In function \bandle_initrd':
init/do_mounts.c:670: \x13CHED_YIELD' undeclared (first use in this
function)
init/do_mounts.c:670: (Each undeclared identifier is reported only once
init/do_mounts.c:670: for each function it appears in.)
init/do_mounts.c: At top level:
init/do_mounts.c:324: warning: ount_nfs_root' defined but not used
make: *** [init/do_mounts.o] Error 1

--- linux-2.4.19pre5/init/do_mounts.c.orig	2002-04-04 13:05:05.000000000 -0500
+++ linux-2.4.19pre5/init/do_mounts.c	2002-04-04 13:05:05.000000000 -0500
@@ -667,8 +667,7 @@
 	pid = kernel_thread(do_linuxrc, "/linuxrc", SIGCHLD);
 	if (pid > 0) {
 		while (pid != wait(&i)) {
-			current->policy |= SCHED_YIELD;
-			schedule();
+			yield();
 		}
 	}
 


-- 
| G r e g  L o u i s          | gpg public key:      |
|   http://www.bgl.nu/~glouis |   finger greg@bgl.nu |

                 reply	other threads:[~2002-04-04 18:19 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=20020404181925.GA25301@athame.dynamicro.on.ca \
    --to=glouis@dynamicro.on.ca \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®