From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754408Ab0K2P3n (ORCPT ); Mon, 29 Nov 2010 10:29:43 -0500 Received: from rcsinet10.oracle.com ([148.87.113.121]:43012 "EHLO rcsinet10.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754449Ab0K2P3m (ORCPT >); Mon, 29 Nov 2010 10:29:42 -0500 Date: Mon, 29 Nov 2010 10:29:08 -0500 From: Konrad Rzeszutek Wilk To: Stefano Stabellini Cc: linux-kernel@vger.kernel.org, xen-devel@lists.xensource.com, Jeremy Fitzhardinge Subject: Re: [PATCH v3] Use PHYSDEVOP_get_free_pirq to implement find_unbound_pirq Message-ID: <20101129152908.GA19818@dumpdata.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > @@ -611,9 +615,9 @@ int xen_map_pirq_gsi(unsigned pirq, unsigned gsi, int shareable, char *name) > > spin_lock(&irq_mapping_update_lock); > > - if ((pirq > nr_pirqs) || (gsi > nr_irqs)) { > + if ((pirq > nr_irqs) || (gsi > nr_irqs)) { > printk(KERN_WARNING "xen_map_pirq_gsi: %s %s is incorrect!\n", > - pirq > nr_pirqs ? "nr_pirqs" :"", > + pirq > nr_irqs ? "nr_pirqs" :"", Seems odd to print "nr_pirqs" when that is out of the code. > gsi > nr_irqs ? "nr_irqs" : ""); From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: [PATCH v3] Use PHYSDEVOP_get_free_pirq to implement find_unbound_pirq Date: Mon, 29 Nov 2010 10:29:08 -0500 Message-ID: <20101129152908.GA19818@dumpdata.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stefano Stabellini Cc: Jeremy Fitzhardinge , xen-devel@lists.xensource.com, linux-kernel@vger.kernel.org List-Id: xen-devel@lists.xenproject.org > @@ -611,9 +615,9 @@ int xen_map_pirq_gsi(unsigned pirq, unsigned gsi, int shareable, char *name) > > spin_lock(&irq_mapping_update_lock); > > - if ((pirq > nr_pirqs) || (gsi > nr_irqs)) { > + if ((pirq > nr_irqs) || (gsi > nr_irqs)) { > printk(KERN_WARNING "xen_map_pirq_gsi: %s %s is incorrect!\n", > - pirq > nr_pirqs ? "nr_pirqs" :"", > + pirq > nr_irqs ? "nr_pirqs" :"", Seems odd to print "nr_pirqs" when that is out of the code. > gsi > nr_irqs ? "nr_irqs" : "");