NetBSD Problem Report #9787

Received: (qmail 7140 invoked from network); 5 Apr 2000 08:12:21 -0000
Message-Id: <200004050731.CAA16965@gedd.metonymy.com>
Date: Wed, 5 Apr 2000 02:31:20 -0500 (CDT)
From: Dave Huang <khym@bga.com>
Reply-To: khym@bga.com
To: gnats-bugs@gnats.netbsd.org
Subject: iwm LKM won't compile (partially timeout/callout related)
X-Send-Pr-Version: 3.95

>Number:         9787
>Category:       port-mac68k
>Synopsis:       iwm LKM won't compile (partially timeout/callout related)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-mac68k-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 05 08:13:00 +0000 2000
>Closed-Date:    Wed Apr 05 11:37:41 +0000 2000
>Last-Modified:  Wed Apr 05 11:37:41 +0000 2000
>Originator:     Dave Huang
>Release:        NetBSD-current as of April 4, 2000
>Organization:
Name: Dave Huang     |   Mammal, mammal / their names are called /
INet: khym@bga.com   |   they raise a paw / the bat, the cat /
FurryMUCK: Dahan     |   dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 24 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++
>Environment:

System: NetBSD gedd.metonymy.com 1.4W NetBSD 1.4W (GEDD) #599: Sat Mar 25 18:21:55 CST 2000 khym@dahan.metonymy.com:/usr/src.local/sys/arch/mac68k/compile/GEDD mac68k


>Description:
	The mac68k iwm lkm fails to compile:
cc -g -O -m68020-40 -pipe -D_KERNEL -D_LKM -I. -I/usr/src/sys/lkm/arch/mac68k/iwm -I/usr/src/sys -I/usr/src/sys/arch -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Werror  -DDIAGNOSTIC -DDDB -nostdinc -Dmc68020 -Dmac68k -c /usr/src/sys/arch/mac68k/obio/iwm_fd.c
cc1: warnings being treated as errors
/usr/src/sys/arch/mac68k/obio/iwm_fd.c:539: warning: no previous prototype for `fd_mod_init'
/usr/src/sys/arch/mac68k/obio/iwm_fd.c:561: warning: no previous prototype for `fd_mod_free'
/usr/src/sys/arch/mac68k/obio/iwm_fd.c: In function `fd_mod_free':
/usr/src/sys/arch/mac68k/obio/iwm_fd.c:582: request for member `motor_ch' in something not a structure or union
*** Error code 1

>How-To-Repeat:
>Fix:
--- /usr/src/sys/arch/mac68k/obio/iwm_fd.c	Thu Mar 23 06:27:11 2000
+++ iwm_fd.c	Wed Apr  5 03:05:17 2000
@@ -59,6 +59,9 @@
 #include <mac68k/obio/iwmreg.h>
 #include <mac68k/obio/iwm_fdvar.h>

+#ifdef _LKM
+#include "iwm_mod.h"
+#endif

 /**
  **	Private functions
@@ -569,7 +572,7 @@
 			 * Let's hope there is only one task per drive,
 			 * see timeout(9). 
 			 */
-			callout_stop(&iwm->fd[unit].motor_ch);
+			callout_stop(&iwm->fd[unit]->motor_ch);
 			disk_detach(&iwm->fd[unit]->diskInfo);
 			free(iwm->fd[unit], M_DEVBUF);
 			iwm->fd[unit] = NULL;
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jdolecek 
State-Changed-When: Wed Apr 5 04:37:29 PDT 2000 
State-Changed-Why:  
Fixed, thanks. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.