Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Mar 2008 07:43:29 +0800 (CST)
From:      "Thinker K.F. Li" <thinker@branda.to>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/122098: Kernel can not be built
Message-ID:  <200803252343.m2PNhTUb000976@cowboy.branda.to>
Resent-Message-ID: <200803252350.m2PNo1N7006559@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803252343.m2PNhTUb000976>