From: Josip Rodin Subject: Re: xen: PV on HVM: support PV spinlocks Date: Sat, 2 Oct 2010 13:26:34 +0200 Message-ID: <20101002112634.GA19884@entuzijast.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi, I was just reading http://git.kernel.org/?p=linux/kernel/git/jeremy/xen.git;a=commitdiff;h=a16a1a93b92ef09c4d759fc711c7f17b658176ec And there's a chunk that says: +static void xen_hvm_spinlock_init(void) +{ + if (!xen_have_vector_callback) + return + xen_init_lock_cpu(0); + xen_init_spinlocks(); +} The return statement doesn't have a semicolon after it, so it will instead take xen_init_lock_cpu(0) as its argument, and the xen_init_spinlocks() call will never happen. -- 2. That which causes joy or happiness.