From owner-freebsd-current Thu Sep 26 17:12:53 2002 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 5847037B401 for ; Thu, 26 Sep 2002 17:12:50 -0700 (PDT) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id F17D243E42 for ; Thu, 26 Sep 2002 17:12:49 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by canning.wemm.org (Postfix) with ESMTP id D054B2A894; Thu, 26 Sep 2002 17:12:49 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Nate Lawson Cc: current@freebsd.org Subject: Re: alpha tinderbox failure In-Reply-To: Date: Thu, 26 Sep 2002 17:12:49 -0700 From: Peter Wemm Message-Id: <20020927001249.D054B2A894@canning.wemm.org> 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 Nate Lawson wrote: > On Thu, 26 Sep 2002, Dag-Erling Smorgrav wrote: > > -------------------------------------------------------------- > > >>> Rebuilding the temporary build tree > > -------------------------------------------------------------- > > >>> stage 1: bootstrap tools > > -------------------------------------------------------------- > > >>> stage 2: cleaning up the object tree > > -------------------------------------------------------------- > > >>> stage 2: rebuilding the object tree > > -------------------------------------------------------------- > > >>> stage 2: build tools > > -------------------------------------------------------------- > > >>> stage 3: cross tools > > -------------------------------------------------------------- > > >>> stage 4: populating /home/des/tinderbox/alpha/obj/h/des/src/alpha/usr/i nclude > > -------------------------------------------------------------- > > >>> stage 4: building libraries > > -------------------------------------------------------------- > > >>> stage 4: make dependencies > > -------------------------------------------------------------- > > >>> stage 4: building everything.. > > -------------------------------------------------------------- > > >>> Kernel build for GENERIC started on Thu Sep 26 15:20:27 PDT 2002 > > -------------------------------------------------------------- > > >>> Kernel build for GENERIC completed on Thu Sep 26 15:50:41 PDT 2002 > > -------------------------------------------------------------- > > >>> Kernel build for LINT started on Thu Sep 26 15:50:41 PDT 2002 > > -------------------------------------------------------------- > > ===> vinum > > cc1: warnings being treated as errors > > /h/des/src/sys/dev/advansys/adv_pci.c: In function `adv_pci_attach': > > /h/des/src/sys/dev/advansys/adv_pci.c:197: warning: overflow in implicit co nstant conversion > > *** Error code 1 > > > > Stop in /h/des/obj/h/des/src/sys/LINT. > > *** Error code 1 > > > > Stop in /h/des/src. > > *** Error code 1 > > > > Stop in /h/des/src. > > I don't understand why this error occurs since the types all seem to > match. > > Relevant lines from src/sys/dev/advansys/adv_pci.c: > > /* Allocate a dmatag for our transfer DMA maps */ > /* XXX Should be a child of the PCI bus dma tag */ > error = bus_dma_tag_create(/*parent*/NULL, /*alignment*/1, > /*boundary*/0, > /*lowaddr*/ADV_PCI_MAX_DMA_ADDR, > /*highaddr*/BUS_SPACE_MAXADDR, > /*filter*/NULL, /*filterarg*/NULL, > /*maxsize*/BUS_SPACE_MAXSIZE_32BIT, > /*nsegments*/BUS_SPACE_UNRESTRICTED, > /*maxsegsz*/ADV_PCI_MAX_DMA_COUNT, > /*flags*/0, > 197 -----> &adv->parent_dmat); > > Yet in src/sys/alpha/include/bus.h: > typedef struct bus_dma_tag *bus_dma_tag_t; > ... > int bus_dma_tag_create(bus_dma_tag_t parent, bus_size_t alignemnt, > bus_size_t boundary, bus_addr_t lowaddr, > bus_addr_t highaddr, bus_dma_filter_t *filtfunc, > void *filtfuncarg, bus_size_t maxsize, int > nsegments, > bus_size_t maxsegsz, int flags, bus_dma_tag_t > *dmat); gcc is telling you the wrong line. The problem is here: int nsegments; vs: /*nsegments*/BUS_SPACE_UNRESTRICTED, note that: bus.h:#define BUS_SPACE_UNRESTRICTED (~0UL) 0xffffffffffffffff will not fit in an int. Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message