Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jul 1998 07:57:50 -0600 (MDT)
From:      "Kenneth D. Merry" <ken@plutotech.com>
To:        Jos.Backus@nl.origin-it.com (Jos Backus)
Cc:        freebsd-scsi@FreeBSD.ORG
Subject:   Re: CAM build trouble on -stable
Message-ID:  <199807211357.HAA19519@panzer.plutotech.com>
In-Reply-To: <19980721091915.B1891@mpn.cp.philips.com> from Jos Backus at "Jul 21, 98 09:19:15 am"

next in thread | previous in thread | raw e-mail | index | archive | help
Jos Backus wrote...
> However, when trying to build a kernel, I am seeing the following:
> 
> cc -c -O -pipe -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit
> -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith
> -nostdinc -I- -I. -I../.. -I../../../include -DAHC_TAGENABLE -DCOMPAT_43
> -DMSDOSFS -DNFS -DFFS -DINET -DKERNEL  ../../cam/scsi/scsi_target.c
> In file included from ../../cam/scsi/scsi_target.c:45:
> ../../cam/cam_periph.h:108: warning: `struct devstat' declared inside
> parameter list
> ../../cam/cam_periph.h:108: warning: its scope is only this definition or
> declaration,
> ../../cam/cam_periph.h:108: warning: which is probably not what you want.
> ../../cam/scsi/scsi_target.c: In function `ptasync':
> ../../cam/scsi/scsi_target.c:175: warning: passing arg 1 of `cam_alloc_periph'
> from incompatible pointer type
> ../../cam/scsi/scsi_target.c:175: warning: passing arg 2 of `cam_alloc_periph'
> makes pointer from integer without a cast
> ../../cam/scsi/scsi_target.c:175: warning: passing arg 3 of `cam_alloc_periph'
> makes pointer from integer without a cast
> ../../cam/scsi/scsi_target.c:175: incompatible type for argument 5 of
> `cam_alloc_periph'
> ../../cam/scsi/scsi_target.c:175: warning: passing arg 6 of `cam_alloc_periph'
> from incompatible pointer type
> ../../cam/scsi/scsi_target.c:175: too many arguments to function
> `cam_alloc_periph'
> *** Error code 1
> 
> Stop.
> 
> The first warning I fixed by adding sys/devicestat.h to scsi_target.c, but I'm
> not sure about the other one.

	Don't try to build that peripheral driver, it doesn't work.  Take
'device pt0' out of your config file, and you should be okay.

Ken
-- 
Kenneth Merry
ken@plutotech.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-scsi" in the body of the message



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