Skip to contentSkip to conversation

mini [PATCH] 2.4.19-pre5-ac1 compile error

PATCH Greg Louis 1 participant 1 message Apr 4, 2002 VFS

lore
Share & tools
lore

Greg Louis

author
#0 lore 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 andle_initrd':
init/do_mounts.c:670: CHED_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

init/do_mounts.c renamed from init/do_mounts.c.orig +1 -2
@@ -667,8 +667,7 @@
 	pid = kernel_thread(do_linuxrc, "/linuxrc", SIGCHLD);
 	if (pid > 0) {
 		while (pid != wait(&i)) {
-			current->policy |= SCHED_YIELD;
-			schedule();
+			yield();
 		}
 	}
 
Signature · 2 lines
| G r e g  L o u i s          | gpg public key:      |
|   http://www.bgl.nu/~glouis |   finger [email protected] |