kern/122098: Kernel can not be built
Thinker K.F. Li
thinker at branda.to
Tue Mar 25 23:50:06 UTC 2008
>Number: 122098
>Category: kern
>Synopsis: Kernel can not be built
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Mar 25 23:50:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Thinker K.F. Li
>Release: FreeBSD 8.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD cowboy.branda.to 8.0-CURRENT FreeBSD 8.0-CURRENT #1: Wed Dec 19 19:53:07 CST 2007 thinker at cowboy.branda.to:/usr/src/sys/i386/compile/cowboy i386
>Description:
compat/linux/linux_misc.c, under root of FreeBSD kernel source,
makes an error when `make buildkernel' in directory /usr/src.
Since a warning would cause an error, the file is with a warning
on type casting. It stops the process of buildkernel.
>How-To-Repeat:
cd /usr/src; make buildkernel
>Fix:
--- patch-compat::linux::linux_misc.c begins here ---
--- compat/linux/linux_misc.c.orig 2008-03-25 23:33:25.000000000 +0800
+++ compat/linux/linux_misc.c 2008-03-26 00:24:16.000000000 +0800
@@ -1750,7 +1750,7 @@
cga.which = CPU_WHICH_PID;
cga.id = args->pid;
cga.cpusetsize = sizeof(cpumask_t);
- cga.mask = (long *) args->user_mask_ptr;
+ cga.mask = (cpuset_t *) args->user_mask_ptr;
if ((error = cpuset_getaffinity(td, &cga)) == 0)
td->td_retval[0] = sizeof(cpumask_t);
@@ -1776,7 +1776,7 @@
csa.which = CPU_WHICH_PID;
csa.id = args->pid;
csa.cpusetsize = args->len;
- csa.mask = (long *) args->user_mask_ptr;
+ csa.mask = (cpuset_t *) args->user_mask_ptr;
return (cpuset_setaffinity(td, &csa));
}
--- patch-compat::linux::linux_misc.c ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list