From: Horms Subject: Re: [RFC][PATCH] synchronize console on BUG() Date: Fri, 30 Jun 2006 11:35:53 +0900 Message-ID: <20060630023552.GA14719@verge.net.au> References: <20060629100103.6D54A3402E@koto.vergenet.net> <34A27D6A-0DEE-4757-A741-95289CEEBA54@watson.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <34A27D6A-0DEE-4757-A741-95289CEEBA54@watson.ibm.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jimi Xenidis Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Thu, Jun 29, 2006 at 07:22:52AM -0400, Jimi Xenidis wrote: > > On Jun 29, 2006, at 6:01 AM, Horms wrote: > > >In article you wrote: > >> > >>The following patch syncs (and unsync) the console while we are in > >>the > >>BUG() macro. > >> > >>The separate externs (which I dislike) for these console calls are > >>there because including breaks all sorts of files, > >>any > >>suggestions on how to solve this is welcome. > > > >Is this breakage because doesn't #include all the > >headers for the stuff it uses itself? If so could someone coment on > >if that is intentional, or if it is something that (generally) wants > >fixing. > > > > Methinks it includes to much, for some of the more finikier files. > My suggestion is that we should have a minimal header that contains > prototypes for console_sync(), panic(), ASSERT, BUG, and whatever > else there is (perhaps remove the redundant ones if there are any). That sounds reasonable, and may even speed up builds to some small extent. However, regardless of the size of an include, it really ought to be includable. -- Horms H: http://www.vergenet.net/~horms/ W: http://www.valinux.co.jp/en/