From nobody@FreeBSD.org  Thu Dec  2 20:44:53 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 9FA5E16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  2 Dec 2004 20:44:53 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8C06243D5A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  2 Dec 2004 20:44:53 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id iB2Kirc3064893
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 2 Dec 2004 20:44:53 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id iB2Kirhs064890;
	Thu, 2 Dec 2004 20:44:53 GMT
	(envelope-from nobody)
Message-Id: <200412022044.iB2Kirhs064890@www.freebsd.org>
Date: Thu, 2 Dec 2004 20:44:53 GMT
From: Brenden Grace <brenden.grace@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: NDIS kernel translation layer breaks ICC kernel building
X-Send-Pr-Version: www-2.3

>Number:         74626
>Category:       kern
>Synopsis:       [patch] NDIS kernel translation layer breaks ICC kernel building
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 02 20:50:27 GMT 2004
>Closed-Date:    Tue May 10 13:43:29 GMT 2005
>Last-Modified:  Tue May 10 13:43:29 GMT 2005
>Originator:     Brenden Grace
>Release:        RELENG_5_3_0_RELEASE
>Organization:
Intelli7
>Environment:
FreeBSD  5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov  5 04:19:18 UTC 2004     root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
Building a GENERIC kernel on FreeBSD 5.3 with Intel Compiler (v  8.1.024) fails when it reaches ndis (/usr/src/sys/compat/ndis). I was able to get around this issue and successfully building the GENERIC kernel by backing out the changes made in Rev 1.68 of subr_ndis.c and Rev 1.44 of subr_ntoskrnl.c (relative to HEAD not RELENG_5_3_0_RELEASE)
>How-To-Repeat:
Build a GENERIC kernel for RELENG_5_3_0_RELEASE with the Intel Compiler
>Fix:
I was able to get around this issue and successfully building the GENERIC kernel by backing out the changes made in Rev 1.68 of subr_ndis.c and Rev 1.44 of subr_ntoskrnl.c (relative to HEAD not RELENG_5_3_0_RELEASE)

Patch provided only for demonstration 

--- subr_ndis.c.orig    Thu Dec  2 15:23:25 2004
+++ subr_ndis.c Thu Dec  2 15:23:13 2004
@@ -2875,7 +2875,7 @@
        __stdcall ndis_proc     workfunc;
 
        work = ctx;
-       workfunc = (__stdcall ndis_proc) work->nwi_func;
+       workfunc = work->nwi_func;
        workfunc(work, work->nwi_ctx);
        return;
 }
--- subr_ntoskrnl.c.orig        Thu Dec  2 15:22:31 2004
+++ subr_ntoskrnl.c     Thu Dec  2 15:22:13 2004
@@ -1694,7 +1694,7 @@
        uint8_t                 irql;
 
        dpc = arg;
-       dpcfunc = (__stdcall kdpc_func) dpc->k_deferedfunc;
+       dpcfunc = (kdpc_func) dpc->k_deferedfunc;
        irql = ntoskrnl_raise_irql(DISPATCH_LEVEL);
        dpcfunc(dpc, dpc->k_deferredctx, dpc->k_sysarg1, dpc->k_sysarg2);
        ntoskrnl_lower_irql(irql);

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: arved 
State-Changed-When: Tue May 10 13:43:08 GMT 2005 
State-Changed-Why:  
This was fixed by wpaul on January 25 

http://www.freebsd.org/cgi/query-pr.cgi?pr=74626 
>Unformatted:
