From owner-freebsd-current@FreeBSD.ORG Sat Jun 11 02:45:33 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C9F116A41F for ; Sat, 11 Jun 2005 02:45:33 +0000 (GMT) (envelope-from joseph.koshy@gmail.com) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id A01CD43D49 for ; Sat, 11 Jun 2005 02:45:32 +0000 (GMT) (envelope-from joseph.koshy@gmail.com) Received: by rproxy.gmail.com with SMTP id j1so439382rnf for ; Fri, 10 Jun 2005 19:45:32 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=OWHjBSRGcMO47Us9bTXgGQA8lS2p1uj3XD9xKcOq2BwQEaK2lBPPqIR40qtvAIAkIB/8p/8FvnHg+veReR9PJEMYvPnOFIbBqI8zPg9U0F7z4Rv2zgvdqjL24Nq62bRLOpATxY7d/xsF7xw8ZXgsaOXdOADDw9+QZiWLQ2ljmqI= Received: by 10.38.66.52 with SMTP id o52mr668998rna; Fri, 10 Jun 2005 19:45:32 -0700 (PDT) Received: by 10.38.209.73 with HTTP; Fri, 10 Jun 2005 19:45:32 -0700 (PDT) Message-ID: <84dead72050610194577ec99ad@mail.gmail.com> Date: Sat, 11 Jun 2005 08:15:32 +0530 From: Joseph Koshy To: FreeBSD Tinderbox In-Reply-To: <20050610211947.335657306E@freebsd-current.sentex.ca> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1552_30161612.1118457932110" References: <20050610211947.335657306E@freebsd-current.sentex.ca> Cc: powerpc@freebsd.org, current@freebsd.org Subject: Re: [current tinderbox] failure on powerpc/powerpc X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Joseph Koshy List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Jun 2005 02:45:33 -0000 ------=_Part_1552_30161612.1118457932110 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline >>>> "tb" =3D=3D "FreeBSD Tinderbox" wrote: tb> =3D=3D=3D> hwpmc (all) tb> cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I- -include /tinderbox/CURRENT/powerpc/powerpc/obj/powerpc/tinderbox/CURRENT/powerpc/po= werpc/src/sys/GENERIC/opt_global.h -I. -I@ -I@/contrib/altq -I@/../include -finline-limit=3D15000 -fno-common -g -mlongcall -fno-omit-frame-pointer -I/tinderbox/CURRENT/powerpc/powerpc/obj/powerpc/tinderbox/CURRENT/powerpc/= powerpc/src/sys/GENERIC -msoft-float -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=3Dc99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c /tinderbox/CURRENT/powerpc/powerpc/src/sys/modules/hwpmc/../../dev/hwpmc/hw= pmc_mod.c tb> In file included from @/sys/pmc.h:35, tb> from /tinderbox/CURRENT/powerpc/powerpc/src/sys/modules/hwpmc/../../dev/hwpmc/hw= pmc_mod.c:41: tb> ./machine/profile.h:40: error: redefinition of typedef 'uintfptr_t' tb> @/sys/types.h:285: error: previous declaration of 'uintfptr_t' was here tb> *** Error code 1 The attached patch brings PPC in line with the other architectures. Could someone please review? --=20 FreeBSD Volunteer, http://people.freebsd.org/~jkoshy ------=_Part_1552_30161612.1118457932110 Content-Type: text/plain; name=ppc.txt; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="ppc.txt" Index: sys/powerpc/include/profile.h =================================================================== RCS file: /cvs/FreeBSD/src/sys/powerpc/include/profile.h,v retrieving revision 1.4 diff -u -r1.4 profile.h --- sys/powerpc/include/profile.h 7 Jan 2005 02:29:19 -0000 1.4 +++ sys/powerpc/include/profile.h 11 Jun 2005 01:43:04 -0000 @@ -37,7 +37,6 @@ #define FUNCTION_ALIGNMENT 16 typedef u_int fptrdiff_t; -typedef u_int uintfptr_t; #define MCOUNT \ void \ @@ -63,6 +62,11 @@ ((pc >= (uintfptr_t)bintr) ? (uintfptr_t)bintr : \ (uintfptr_t)btrap) : ~0U) -#endif + +#else /* !_KERNEL */ + +typedef u_int uintfptr_t; + +#endif /* _KERNEL */ #endif /* !_MACHINE_PROFILE_H_ */ ------=_Part_1552_30161612.1118457932110--