From arnej@math.ntnu.no  Thu May 28 05:06:57 1998
Received: from romberg.math.ntnu.no (153@romberg.math.ntnu.no [129.241.15.150])
          by hub.freebsd.org (8.8.8/8.8.8) with SMTP id FAA29731
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 28 May 1998 05:06:56 -0700 (PDT)
          (envelope-from arnej@math.ntnu.no)
Received: (qmail 17350 invoked from network); 28 May 1998 12:06:51 -0000
Received: from cauchy.math.ntnu.no (129.241.15.128)
  by romberg.math.ntnu.no with SMTP; 28 May 1998 12:06:51 -0000
Received: (from root@localhost)
          by cauchy.math.ntnu.no (8.8.8/8.8.4)
	  id OAA21319; Thu, 28 May 1998 14:06:49 +0200 (CEST)
Message-Id: <199805281206.OAA21319@cauchy.math.ntnu.no>
Date: Thu, 28 May 1998 14:06:49 +0200 (CEST)
From: arnej@math.ntnu.no
Reply-To: arnej@math.ntnu.no
To: FreeBSD-gnats-submit@freebsd.org
Subject: sctarg device doesn't work in -stable
X-Send-Pr-Version: 3.2

>Number:         6778
>Category:       kern
>Synopsis:       sctarg device doesn't work in -stable
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gibbs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 28 05:10:01 PDT 1998
>Closed-Date:    Sun May 31 21:46:46 PDT 1998
>Last-Modified:  Sun May 31 21:48:53 PDT 1998
>Originator:     Arne Henrik Juul
>Release:        FreeBSD 2.2.6-STABLE i386
>Organization:
Norwegian University of Technology and Science
>Environment:

	This is on the RELENG_2_2 branch as of yesterday or so.

>Description:

	I just added a scsi card on a machine where I'll be plugging
in various SCSI devices, so I wanted to compile a kernel for it with
all possible SCSI devices.  So I got the lines from LINT and plugged
them into my kernel config file, including "sctarg" (since I don't
really know what this device is supposed to do, that was a bit
pointless I suppose...)  Anyway, I got these errors:

../../scsi/sctarg.c: In function `sctargstart':
../../scsi/sctarg.c:191: structure has no member named `tqh_first'
../../scsi/sctarg.c:194: structure has no member named `tqh_last'
../../scsi/sctarg.c: In function `sctarg_strategy':
../../scsi/sctarg.c:254: structure has no member named `tqh_last'
../../scsi/sctarg.c:254: structure has no member named `tqh_last'
../../scsi/sctarg.c:254: structure has no member named `tqh_last'

>How-To-Repeat:

config your kernel with sctarg device as from LINT:
	device sctarg0 at scbus? # SCSI target
and try to make this kernel.

>Fix:
	
	From a look at "cvs log sctarg.c" it looks like this one
	is missing a "merge from current" regarding the queues:
revision 1.22
date: 1997/09/21 22:03:11;  author: gibbs;  state: Exp;  lines: +4 -4
Convert to use the new bufq* functions for dealing with buffer
queues.
	Or at least it should be commented out from LINT with a remark
	that it doesn't work.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: phk 
State-Changed-When: Thu May 28 23:04:59 PDT 1998 
State-Changed-Why:  
does that mean that the LINT kernel doesn't compile on RELENG_2_2 ?? 
State-Changed-From-To: feedback->closed 
State-Changed-By: gibbs 
State-Changed-When: Sun May 31 21:46:46 PDT 1998 
State-Changed-Why:  
1.17.2.1 of sctarg.c 


Responsible-Changed-From-To: freebsd-bugs->gibbs 
Responsible-Changed-By: gibbs 
Responsible-Changed-When: Sun May 31 21:46:46 PDT 1998 
Responsible-Changed-Why:  
I did the bufq changes that broke this file. 
>Unformatted:
