From owner-freebsd-current@FreeBSD.ORG Mon Oct 28 23:33:32 2013 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 52CB44FD for ; Mon, 28 Oct 2013 23:33:32 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from sarah.protected-networks.net (sarah.protected-networks.net [202.12.127.65]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 24BEB286C for ; Mon, 28 Oct 2013 23:33:32 +0000 (UTC) Received: from toshi.auburn.protected-networks.net (toshi.auburn.protected-networks.net [202.12.127.84]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "Iain Michael Butler", Issuer "Protected Networks Certificate Authority" (verified OK)) (Authenticated sender: imb@protected-networks.net) by sarah.protected-networks.net (Postfix) with ESMTPSA id 226AF6113; Mon, 28 Oct 2013 19:33:30 -0400 (EDT) DomainKey-Signature: a=rsa-sha1; s=200509; d=protected-networks.net; c=nofws; q=dns; h=message-id:date:from:user-agent:mime-version:to:cc:subject: references:in-reply-to:x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=flNZ/VN+ZCIqglsQPoxIHV51HdsevhqO6F4ASlTIgeABiQyGEJIy5RF0YQ1L1mY/f 558RjryXbOLPE4prJcULatxdbBUISOUJcZvo0Mx5Ry3dpdcjBfZFfDl0/uaR5vk Message-ID: <526EF448.8010106@protected-networks.net> Date: Mon, 28 Oct 2013 19:33:28 -0400 From: Michael Butler User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: Konstantin Belousov Subject: Re: SVN r257228 breaks kernel build with gcc References: <526ECEB6.20009@protected-networks.net> <20131028211545.GR59496@kib.kiev.ua> In-Reply-To: <20131028211545.GR59496@kib.kiev.ua> X-Enigmail-Version: 1.6 OpenPGP: id=0442D492 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD Current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Oct 2013 23:33:32 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10/28/13 17:15, Konstantin Belousov wrote: > On Mon, Oct 28, 2013 at 04:53:10PM -0400, Michael Butler wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> That is .. >> >> - --- busdma_bounce.o --- >> cc1: warnings being treated as errors >> In file included from /usr/src/sys/x86/x86/busdma_bounce.c:54: >> /usr/src/sys/x86/include/busdma_impl.h:85: warning: redundant >> redeclaration of 'busdma_lock_mutex' [-Wredundant-decls] >> /usr/src/sys/sys/bus_dma.h:150: warning: previous declaration of >> 'busdma_lock_mutex' was here >> *** [busdma_bounce.o] Error code 1 > > Does the following patch allow you to successfully build the kernel with > gcc, or is there more issues left ? > > diff --git a/sys/x86/include/busdma_impl.h b/sys/x86/include/busdma_impl.h > index 70c9a6f..b851e7a 100644 > --- a/sys/x86/include/busdma_impl.h > +++ b/sys/x86/include/busdma_impl.h > @@ -82,7 +82,6 @@ struct bus_dma_impl { > bus_dmasync_op_t op); > }; > > -void busdma_lock_mutex(void *arg, bus_dma_lock_op_t op); > void bus_dma_dflt_lock(void *arg, bus_dma_lock_op_t op); > int bus_dma_run_filter(struct bus_dma_tag_common *dmat, bus_addr_t paddr); > int common_bus_dma_tag_create(struct bus_dma_tag_common *parent, > This fixes it - thanks! :-) imb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (FreeBSD) iEYEARECAAYFAlJu9EgACgkQQv9rrgRC1JIt3QCgi9bYP7VRxcJKh3BpxEFvu/r6 1igAoJ0fUja3x5F/I1XXGuxkdNi4mm62 =FEB0 -----END PGP SIGNATURE-----