Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Aug 2008 21:48:07 +0200
From:      Rink Springer <rink@FreeBSD.org>
To:        Alfred Perlstein <alfred@freebsd.org>
Cc:        usb@freebsd.org
Subject:   Re: HEADSUP new usb code coming in.
Message-ID:  <20080820194807.GE33396@rink.nu>
In-Reply-To: <20080819194413.GB16977@elvis.mu.org>
References:  <20080819194413.GB16977@elvis.mu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Alfred,

On Tue, Aug 19, 2008 at 12:44:13PM -0700, Alfred Perlstein wrote:
> http://mu.org/~bright/usb2/usb4bsd.diff.gz

Whenever I try this patch, my build dies with:

cc -c -O2 -pipe -fno-strict-aliasing  -std=c99  -Wall -Wredundant-decls
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes
-Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign
-fformat-extensions -nostdinc  -I. -I../../.. -I../../../contrib/altq
-D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common
-finline-limit=8000 --param inline-unit-growth=100 --param
large-function-growth=1000  -mno-align-long-strings
-mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2
-mno-sse3 -ffreestanding -fstack-protector -Werror
../../../dev/usb2/core/usb2_generic.c
cc1: warnings being treated as errors
../../../dev/usb2/core/usb2_generic.c: In function 'ugen_ioctl':
../../../dev/usb2/core/usb2_generic.c:1409: warning: 'ep_index' may be
used uninitialized in this function
../../../dev/usb2/core/usb2_generic.c:1409: note: 'ep_index' was
declared here
*** Error code 1

I'm using a small patch to get it to compile:

-	uint8_t ep_index;
+	uint8_t ep_index = 0;

However, I am unsure if this is correct.

Futhermore, 'device usb2_bluetooth' gives a lot of compile errors. Am I
using the right patch here?

Regards,

-- 
Rink P.W. Springer                                - http://rink.nu
"Anyway boys, this is America. Just because you get more votes doesn't
 mean you win." - Fox Mulder



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