mini [PATCH] 2.4.19-pre5-ac1 compile error

Greg Louis (glouis@dynamicro.on.ca)
Thu, 4 Apr 2002 13:19:26 -0500


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

--- 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 |
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/