From owner-freebsd-current@FreeBSD.ORG Fri Mar 1 21:49:30 2013 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E1D20308; Fri, 1 Mar 2013 21:49:30 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from anubis.delphij.net (anubis.delphij.net [IPv6:2001:470:1:117::25]) by mx1.freebsd.org (Postfix) with ESMTP id A7D491940; Fri, 1 Mar 2013 21:49:30 +0000 (UTC) Received: from epsilon.delphij.net (drawbridge.ixsystems.com [206.40.55.65]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by anubis.delphij.net (Postfix) with ESMTPSA id 260F324ECC; Fri, 1 Mar 2013 13:49:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=delphij.net; s=anubis; t=1362174570; bh=l+jUj6YnsfuuPZLlTA3XKM0/4R0iZp23OZrIGWZBbBA=; h=Date:From:Reply-To:To:Subject; b=xi6LZ2+97m9RsYjGEDohGjgyTUFXdBeDYqtx3yKqTxrSENLfeFZDJ+5f3+Woja/34 JMK67iwj+Tp4BV99LluXVnEvjsuYPw9GUWqwofNPm2UDVGzIrPD/Ad9dRAOXAXQRwD t40u1LGPhf5js6E+2wVLeMO9moup1Q5aNxgHRYh4= Message-ID: <51312269.9050502@delphij.net> Date: Fri, 01 Mar 2013 13:49:29 -0800 From: Xin Li Organization: The FreeBSD Project MIME-Version: 1.0 To: marius@freebsd.org, current@freebsd.org Subject: [PATCH] Fix build after r247570 X-Enigmail-Version: 1.5.1 Content-Type: multipart/mixed; boundary="------------040401040606010803030302" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: d@delphij.net List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Mar 2013 21:49:30 -0000 This is a multi-part message in MIME format. --------------040401040606010803030302 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hi, Marius, The attached patch fixes two places where 'count' is not properly initialized. They should be merged together when 247570 is merged. Cheers, - -- Xin LI https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- iQEcBAEBCgAGBQJRMSJpAAoJEG80Jeu8UPuzsxsH/2cArvN1kjTXod8IlSVh3ImV 81pjIcBoNRDAOes6lptsdOOdOeNg4/MweG2PT1ZpxQ5yUQHdBld9eIsaruYnD2/y RcfGeMdSJCZ216yaFHLu54nxvlJJXK1lsO1R1cdeBDdSoQChXulVv38FnKiB9J1m ldFCC8oBdPX6yCRR5ZIuLXHXYXZjGw0Vyvta74NFTNwysrUcgtLT/1tpDpcVtDdd Kd+hJtBif4+3zk4py6IS9qiiiO5wC2YkCC5oNhKy2Dh48l/QIagj0Fx/dWRNW8Q4 VUnKJMn4wnnrEmXAFxKMECaFWXKMmI7pQ/dxLMCaMSl2WJgVxHt5skv4iLKcgxc= =Ah/7 -----END PGP SIGNATURE----- --------------040401040606010803030302 Content-Type: text/plain; charset=UTF-8; name="aac-bce-build-fix.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="aac-bce-build-fix.diff" Index: sys/dev/aac/aac_pci.c =================================================================== --- sys/dev/aac/aac_pci.c (revision 247583) +++ sys/dev/aac/aac_pci.c (working copy) @@ -340,7 +340,7 @@ aac_pci_attach(device_t dev) { struct aac_softc *sc; const struct aac_ident *id; - int count, error, reg, rid; + int count = 0, error, reg, rid; fwprintf(NULL, HBA_FLAGS_DBG_FUNCTION_ENTRY_B, ""); Index: sys/dev/bce/if_bce.c =================================================================== --- sys/dev/bce/if_bce.c (revision 247583) +++ sys/dev/bce/if_bce.c (working copy) @@ -1039,7 +1039,7 @@ bce_attach(device_t dev) struct bce_softc *sc; struct ifnet *ifp; u32 val; - int count, error, rc = 0, rid; + int count = 0, error, rc = 0, rid; sc = device_get_softc(dev); sc->bce_dev = dev; --------------040401040606010803030302--