From owner-freebsd-tinderbox@FreeBSD.ORG Thu Mar 11 06:48:30 2010 Return-Path: Delivered-To: tinderbox@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 040EB106566C; Thu, 11 Mar 2010 06:48:30 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id C67CA8FC12; Thu, 11 Mar 2010 06:48:29 +0000 (UTC) Received: by pwj4 with SMTP id 4so44550pwj.13 for ; Wed, 10 Mar 2010 22:48:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=biP5dTeoz/js2ygNO1pkeMOOtqjBRjDeG9iNR91PxDE=; b=ssvgDzMopl7ByBdXPsD0gfOWjd4aH+H4CXI/n1GShn4tQoLzzB/rfeCrlUI404l0qG kaJvtsoYyBDCoa1W+xMNuEwhtPEtoL+82Ix/ueBFM4VkcpwOK3LcORp4vTCsdrRzDjSb is4X2MesfaCjsRB6EUMTku44jW+SZl6a2deOU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=XLZjY9aUbMu4t6m3zdbnDI+fDkxiAy1M7E5epGOZW+c40pJdrOTwBGeMTEA+LNhLsY JvFL3VFUnOVB6OmiX9+LWnJnTWYe58uaFSDfcikEb2qR+WpGoNroADIT0T7kmlHyVTa1 TuHqnbMr5dVrS0Pc8RfIJDe4ZKAQHAJ3xhJAs= MIME-Version: 1.0 Received: by 10.142.55.11 with SMTP id d11mr1215151wfa.1.1268290107983; Wed, 10 Mar 2010 22:48:27 -0800 (PST) In-Reply-To: <201003110629.o2B6TVta094218@freebsd-current.sentex.ca> References: <201003110629.o2B6TVta094218@freebsd-current.sentex.ca> Date: Wed, 10 Mar 2010 22:48:27 -0800 Message-ID: <7d6fde3d1003102248g31b179f7u3bfe848408f91f2e@mail.gmail.com> From: Garrett Cooper To: FreeBSD Tinderbox Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: powerpc@freebsd.org, current@freebsd.org Subject: Re: [head tinderbox] failure on powerpc/powerpc X-BeenThere: freebsd-tinderbox@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Tinderbox reports, responses, and meta-comments" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Mar 2010 06:48:30 -0000 Weongyo, et all, On Wed, Mar 10, 2010 at 10:29 PM, FreeBSD Tinderbox wrote: > TB --- 2010-03-11 05:11:25 - tinderbox 2.6 running on freebsd-current.sen= tex.ca > TB --- 2010-03-11 05:11:25 - starting HEAD tinderbox run for powerpc/powe= rpc > TB --- 2010-03-11 05:11:25 - cleaning the object tree > TB --- 2010-03-11 05:11:41 - cvsupping the source tree > TB --- 2010-03-11 05:11:41 - /usr/bin/csup -z -r 3 -g -L 1 -h cvsup.sente= x.ca /tinderbox/HEAD/powerpc/powerpc/supfile > TB --- 2010-03-11 05:12:22 - building world > TB --- 2010-03-11 05:12:22 - MAKEOBJDIRPREFIX=3D/obj > TB --- 2010-03-11 05:12:22 - PATH=3D/usr/bin:/usr/sbin:/bin:/sbin > TB --- 2010-03-11 05:12:22 - TARGET=3Dpowerpc > TB --- 2010-03-11 05:12:22 - TARGET_ARCH=3Dpowerpc > TB --- 2010-03-11 05:12:22 - TZ=3DUTC > TB --- 2010-03-11 05:12:22 - __MAKE_CONF=3D/dev/null > TB --- 2010-03-11 05:12:22 - cd /src > TB --- 2010-03-11 05:12:22 - /usr/bin/make -B buildworld >>>> World build started on Thu Mar 11 05:12:23 UTC 2010 >>>> Rebuilding the temporary build tree >>>> stage 1.1: legacy release compatibility shims >>>> stage 1.2: bootstrap tools >>>> stage 2.1: cleaning up the object tree >>>> stage 2.2: rebuilding the object tree >>>> stage 2.3: build tools >>>> stage 3: cross tools >>>> stage 4.1: building includes >>>> stage 4.2: building libraries >>>> stage 4.3: make dependencies >>>> stage 4.4: building everything >>>> World build completed on Thu Mar 11 06:12:41 UTC 2010 > TB --- 2010-03-11 06:12:41 - generating LINT kernel config > TB --- 2010-03-11 06:12:41 - cd /src/sys/powerpc/conf > TB --- 2010-03-11 06:12:41 - /usr/bin/make -B LINT > TB --- 2010-03-11 06:12:41 - building LINT kernel > TB --- 2010-03-11 06:12:41 - MAKEOBJDIRPREFIX=3D/obj > TB --- 2010-03-11 06:12:41 - PATH=3D/usr/bin:/usr/sbin:/bin:/sbin > TB --- 2010-03-11 06:12:41 - TARGET=3Dpowerpc > TB --- 2010-03-11 06:12:41 - TARGET_ARCH=3Dpowerpc > TB --- 2010-03-11 06:12:41 - TZ=3DUTC > TB --- 2010-03-11 06:12:41 - __MAKE_CONF=3D/dev/null > TB --- 2010-03-11 06:12:41 - cd /src > TB --- 2010-03-11 06:12:41 - /usr/bin/make -B buildkernel KERNCONF=3DLINT >>>> Kernel build for LINT started on Thu Mar 11 06:12:41 UTC 2010 >>>> stage 1: configuring the kernel >>>> stage 2.1: cleaning up the object tree >>>> stage 2.2: rebuilding the object tree >>>> stage 2.3: build tools >>>> stage 3.1: making dependencies >>>> stage 3.2: building everything > [...] > =3D=3D=3D> siba_bwn (all) > cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdin= c =A0 -DHAVE_KERNEL_OPTION_HEADERS -include /obj/powerpc/src/sys/LINT/opt_g= lobal.h -I. -I@ -I@/contrib/altq -finline-limit=3D15000 --param inline-unit= -growth=3D100 --param large-function-growth=3D1000 -fno-common =A0-mlongcal= l -fno-omit-frame-pointer -I/obj/powerpc/src/sys/LINT -msoft-float -mno-alt= ivec -ffreestanding -fstack-protector -std=3Diso9899:1999 -fstack-protector= -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes =A0-Wmissing-= prototypes -Wpointer-arith -Winline -Wcast-qual =A0-Wundef -Wno-pointer-sig= n -fformat-extensions -c /src/sys/modules/siba_bwn/../../dev/siba/siba_core= .c > cc1: warnings being treated as errors > /src/sys/modules/siba_bwn/../../dev/siba/siba_core.c: In function 'siba_d= ma_translation': > /src/sys/modules/siba_bwn/../../dev/siba/siba_core.c:2035: warning: deref= erencing 'void *' pointer > /src/sys/modules/siba_bwn/../../dev/siba/siba_core.c:2035: error: request= for member 'sd_bus' in something not a structure or union > /src/sys/modules/siba_bwn/../../dev/siba/siba_core.c:2035: warning: deref= erencing 'void *' pointer > /src/sys/modules/siba_bwn/../../dev/siba/siba_core.c:2035: error: request= for member 'sd_bus' in something not a structure or union > *** Error code 1 > > Stop in /src/sys/modules/siba_bwn. > *** Error code 1 > > Stop in /src/sys/modules. > *** Error code 1 > > Stop in /obj/powerpc/src/sys/LINT. > *** Error code 1 > > Stop in /src. > *** Error code 1 > > Stop in /src. > TB --- 2010-03-11 06:29:31 - WARNING: /usr/bin/make returned exit code = =A01 > TB --- 2010-03-11 06:29:31 - ERROR: failed to build lint kernel > TB --- 2010-03-11 06:29:31 - 3629.47 user 614.12 system 4685.83 real Could someone please try this patch to see whether or not it fixes the void* deref issue? I don't think it's style(9) correct, but it might resolve the issue. Thanks, -Garrett Index: siba_core.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- siba_core.c (revision 204996) +++ siba_core.c (working copy) @@ -2032,9 +2032,9 @@ siba_dma_translation(device_t dev) { - KASSERT(device_get_ivars(dev)->sd_bus->siba_type =3D=3D SIBA_TYPE_PCI, - ("unsupported bustype %d\n", - device_get_ivars(dev)->sd_bus->siba_type)); + KASSERT(((struct siba_softc *) device_get_ivars(dev))->sd_bus->siba_type = =3D=3D + SIBA_TYPE_PCI, ("unsupported bustype %d\n", + ((struct siba_softc*) device_get_ivars(dev))->sd_bus->siba_type)); return (SIBA_PCI_DMA); }