From owner-freebsd-bugs@FreeBSD.ORG Fri Sep 7 21:50:15 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1F0831065672 for ; Fri, 7 Sep 2012 21:50:15 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0B0578FC12 for ; Fri, 7 Sep 2012 21:50:15 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q87LoEYo028029 for ; Fri, 7 Sep 2012 21:50:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q87LoEEn028021; Fri, 7 Sep 2012 21:50:14 GMT (envelope-from gnats) Date: Fri, 7 Sep 2012 21:50:14 GMT Message-Id: <201209072150.q87LoEEn028021@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: David Marker Cc: Subject: Re: kern/167671: [libkvm] [patch] libkvm doesn't initialize vnet X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: David Marker List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Sep 2012 21:50:15 -0000 The following reply was made to PR kern/167671; it has been noted by GNATS. From: David Marker To: bug-followup@FreeBSD.org, dmarker@gmail.com Cc: Subject: Re: kern/167671: [libkvm] [patch] libkvm doesn't initialize vnet Date: Fri, 7 Sep 2012 15:49:30 -0600 I can confirm that Andriy Gapon's suggestion to just removing static also fixes kernels built with `options VIMAGE` and clang(1). -Dave root@familiar:/usr/src # svn diff sys/kern/kern_shutdown.c Index: sys/kern/kern_shutdown.c =================================================================== --- sys/kern/kern_shutdown.c (revision 240204) +++ sys/kern/kern_shutdown.c (working copy) @@ -148,7 +148,7 @@ /* Context information for dump-debuggers. */ static struct pcb dumppcb; /* Registers. */ -static lwpid_t dumptid; /* Thread ID. */ +lwpid_t dumptid; /* Thread ID. */ static void poweroff_wait(void *, int); static void shutdown_halt(void *junk, int howto);