* mini [PATCH] 2.4.19-pre5-ac1 compile error
@ 2002-04-04 18:19 Greg Louis
0 siblings, 0 replies; only message in thread
From: Greg Louis @ 2002-04-04 18:19 UTC (permalink / raw)
To: LKML; +Cc: Alan Cox
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 |
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-04-04 18:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-04 18:19 mini [PATCH] 2.4.19-pre5-ac1 compile error Greg Louis
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®