From owner-freebsd-bugs@FreeBSD.ORG Tue Mar 25 23:50:06 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D08761065675 for ; Tue, 25 Mar 2008 23:50:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 89E0D8FC25 for ; Tue, 25 Mar 2008 23:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m2PNo10M006560 for ; Tue, 25 Mar 2008 23:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m2PNo1N7006559; Tue, 25 Mar 2008 23:50:01 GMT (envelope-from gnats) Resent-Date: Tue, 25 Mar 2008 23:50:01 GMT Resent-Message-Id: <200803252350.m2PNo1N7006559@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Thinker K.F. Li" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F29631065671 for ; Tue, 25 Mar 2008 23:43:38 +0000 (UTC) (envelope-from thinker@branda.to) Received: from msr37.hinet.net (msr37.hinet.net [168.95.4.137]) by mx1.freebsd.org (Postfix) with ESMTP id 5625E8FC17 for ; Tue, 25 Mar 2008 23:43:38 +0000 (UTC) (envelope-from thinker@branda.to) Received: from cowboy.branda.to (122-120-97-219.dynamic.hinet.net [122.120.97.219]) by msr37.hinet.net (8.9.3/8.9.3) with ESMTP id HAA29567 for ; Wed, 26 Mar 2008 07:43:30 +0800 (CST) Received: from cowboy.branda.to (localhost [127.0.0.1]) by cowboy.branda.to (8.14.2/8.14.2) with ESMTP id m2PNhTpq000977 for ; Wed, 26 Mar 2008 07:43:29 +0800 (CST) (envelope-from thinker@cowboy.branda.to) Received: (from thinker@localhost) by cowboy.branda.to (8.14.2/8.14.2/Submit) id m2PNhTUb000976; Wed, 26 Mar 2008 07:43:29 +0800 (CST) (envelope-from thinker) Message-Id: <200803252343.m2PNhTUb000976@cowboy.branda.to> Date: Wed, 26 Mar 2008 07:43:29 +0800 (CST) From: "Thinker K.F. Li" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: kern/122098: Kernel can not be built X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Thinker K.F. Li" List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Mar 2008 23:50:06 -0000 >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@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: