From owner-freebsd-current Mon Apr 1 19:32: 7 2002 Delivered-To: freebsd-current@freebsd.org Received: from nnd.itfs.nsk.su (nnd.itfs.nsk.su [212.20.32.42]) by hub.freebsd.org (Postfix) with ESMTP id 3828037B419 for ; Mon, 1 Apr 2002 19:32:02 -0800 (PST) Received: from nnd.itfs.nsk.su (localhost [127.0.0.1]) by nnd.itfs.nsk.su (8.12.2/8.12.2) with ESMTP id g323W6gE025053 for ; Tue, 2 Apr 2002 10:32:06 +0700 (NOVST) (envelope-from nnd@nnd.itfs.nsk.su) Received: (from nnd@localhost) by nnd.itfs.nsk.su (8.12.2/8.12.2/Submit) id g323W6w5025052; Tue, 2 Apr 2002 10:32:06 +0700 (NOVST) Date: Tue, 2 Apr 2002 10:32:06 +0700 (NOVST) Message-Id: <200204020332.g323W6w5025052@nnd.itfs.nsk.su> From: nnd@mail.nsk.ru (Nickolay Dudorov) To: current@freebsd.org Subject: Re: latest kernel busted In-Reply-To: <20020401.202016.34812439.imp@village.org> User-Agent: tin/1.5.11-20020130 ("Toxicity") (UNIX) (FreeBSD/5.0-CURRENT (i386)) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In article <20020401.202016.34812439.imp@village.org> "M. Warner Losh" wrote: > ===> umodem > cc -O -pipe -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -DKLD_MODULE -nostdinc -I- -I. -I@ -I@/dev -I@/../include -fno-common -g -mpreferred-stack-boundary=2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -c /dell/imp/FreeBSD/src/sys/modules/umodem/../../dev/usb/umodem.c > /dell/imp/FreeBSD/src/sys/modules/umodem/../../dev/usb/umodem.c:840: syntax error before `uio' > /dell/imp/FreeBSD/src/sys/modules/umodem/../../dev/usb/umodem.c: In function `umodemread': > /dell/imp/FreeBSD/src/sys/modules/umodem/../../dev/usb/umodem.c:841: number of arguments doesn't match prototype > /dell/imp/FreeBSD/src/sys/modules/umodem/../../dev/usb/umodem.c:156: prototype declaration > /dell/imp/FreeBSD/src/sys/modules/umodem/../../dev/usb/umodem.c:845: `dev' undeclared (first use in this function) > /dell/imp/FreeBSD/src/sys/modules/umodem/../../dev/usb/umodem.c:845: (Each undeclared identifier is reported only once > /dell/imp/FreeBSD/src/sys/modules/umodem/../../dev/usb/umodem.c:845: for each function it appears in.) > /dell/imp/FreeBSD/src/sys/modules/umodem/../../dev/usb/umodem.c:852: `uio' undeclared (first use in this function) > /dell/imp/FreeBSD/src/sys/modules/umodem/../../dev/usb/umodem.c:852: `flag' undeclared (first use in this function) > /dell/imp/FreeBSD/src/sys/modules/umodem/../../dev/usb/umodem.c: At top level: > /dell/imp/FreeBSD/src/sys/modules/umodem/../../dev/usb/umodem.c:1089: conflicting types for `umodem_set_line_coding' > /dell/imp/FreeBSD/src/sys/modules/umodem/../../dev/usb/umodem.c:188: previous declaration of `umodem_set_line_coding' > /dell/imp/FreeBSD/src/sys/modules/umodem/../../dev/usb/umodem.c: In function `umodem_set_line_coding': > /dell/imp/FreeBSD/src/sys/modules/umodem/../../dev/usb/umodem.c:1097: incompatible type for argument 1 of `bcmp' > /dell/imp/FreeBSD/src/sys/modules/umodem/../../dev/usb/umodem.c:1109: incompatible type for argument 3 of `usbd_do_request' > /dell/imp/FreeBSD/src/sys/modules/umodem/../../dev/usb/umodem.c:1116: invalid type argument of `unary *' > *** Error code 1 > > Ideas? > > Warner Next patch at least unbreaks the kernel building for me. N.Dudorov ========================================================================= Index: sys/dev/usb/umodem.c =================================================================== RCS file: /home/CVS/src/sys/dev/usb/umodem.c,v retrieving revision 1.38 diff -b -u -r1.38 umodem.c --- sys/dev/usb/umodem.c 1 Apr 2002 21:30:36 -0000 1.38 +++ sys/dev/usb/umodem.c 2 Apr 2002 02:06:53 -0000 @@ -837,7 +837,7 @@ } int -umodemread(dev_t dev, uio *uio, int flag) +umodemread(dev_t dev, struct uio *uio, int flag) { struct umodem_softc *sc; struct tty *tp; @@ -1085,7 +1085,7 @@ } usbd_status -umodem_set_line_coding(struct umodem_softc *sc, usb_cdc_line_state_t state) +umodem_set_line_coding(struct umodem_softc *sc, usb_cdc_line_state_t *state) { usb_device_request_t req; usbd_status err; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message