Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Mar 2010 22:48:27 -0800
From:      Garrett Cooper <yanefbsd@gmail.com>
To:        FreeBSD Tinderbox <tinderbox@freebsd.org>
Cc:        powerpc@freebsd.org, current@freebsd.org
Subject:   Re: [head tinderbox] failure on powerpc/powerpc
Message-ID:  <7d6fde3d1003102248g31b179f7u3bfe848408f91f2e@mail.gmail.com>
In-Reply-To: <201003110629.o2B6TVta094218@freebsd-current.sentex.ca>
References:  <201003110629.o2B6TVta094218@freebsd-current.sentex.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
Weongyo, et all,

On Wed, Mar 10, 2010 at 10:29 PM, FreeBSD Tinderbox
<tinderbox@freebsd.org> 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);
 }



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