From owner-svn-src-head@FreeBSD.ORG Sat Aug 24 21:26:54 2013 Return-Path: Delivered-To: svn-src-head@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 4858FE3A for ; Sat, 24 Aug 2013 21:26:54 +0000 (UTC) (envelope-from andre@freebsd.org) Received: from c00l3r.networx.ch (c00l3r.networx.ch [62.48.2.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id ADAC2249A for ; Sat, 24 Aug 2013 21:26:53 +0000 (UTC) Received: (qmail 97161 invoked from network); 24 Aug 2013 22:09:22 -0000 Received: from c00l3r.networx.ch (HELO [127.0.0.1]) ([62.48.2.2]) (envelope-sender ) by c00l3r.networx.ch (qmail-ldap-1.03) with SMTP for ; 24 Aug 2013 22:09:22 -0000 Message-ID: <52192512.50206@freebsd.org> Date: Sat, 24 Aug 2013 23:26:42 +0200 From: Andre Oppermann User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Glen Barber Subject: Re: svn commit: r254779 - head/sys/kern References: <201308241224.r7OCOx9l069850@svn.freebsd.org> <20130824211325.GA33782@glenbarber.us> In-Reply-To: <20130824211325.GA33782@glenbarber.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Aug 2013 21:26:54 -0000 On 24.08.2013 23:13, Glen Barber wrote: > On Sat, Aug 24, 2013 at 12:24:59PM +0000, Andre Oppermann wrote: >> Author: andre >> Date: Sat Aug 24 12:24:58 2013 >> New Revision: 254779 >> URL: http://svnweb.freebsd.org/changeset/base/254779 >> >> Log: >> Avoid code duplication for mbuf initialization and use m_init() instead >> in mb_ctor_mbuf() and mb_ctor_pack(). >> >> Modified: >> head/sys/kern/kern_mbuf.c >> > >> [...] > >> -#ifdef MAC >> - /* If the label init fails, fail the alloc */ >> - error = mac_mbuf_init(m, how); >> - if (error) >> - return (error); >> -#endif >> - } else >> - m->m_data = m->m_dat; >> - return (0); >> + m = (struct mbuf *)mem; >> + flags = args->flags; >> + >> + error = m_init(m, NULL, size, how, type, flags); >> + >> + return (error); >> } >> > > > This breaks head/. > > cc -c -O -pipe -std=c99 -g -Wall -Wredundant-decls -Wnested-externs > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith > -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions > -Wmissing-include-dirs -fdiagnostics-show-option > -Wno-error-tautological-compare -Wno-error-empty-body > -Wno-error-parentheses-equality -nostdinc -I. -I/src/sys > -I/src/sys/contrib/altq -I/src/sys/contrib/libfdt -D_KERNEL > -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -funwind-tables -mllvm > -arm-enable-ehabi -ffreestanding -Werror /src/sys/kern/kern_mbuf.c > /src/sys/kern/kern_mbuf.c:637:2: error: use of undeclared identifier 'error' > error = m_init(m, NULL, size, how, type, flags); > ^ > /src/sys/kern/kern_mbuf.c:643:10: error: use of undeclared identifier 'error' > return (error); > ^ > > http://tinderbox.freebsd.org/tinderbox-head-build-HEAD-armv6-arm.full Sorry, and thanks for the report. Fixed in r254814. -- Andre