From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Andrzej Siewior Date: Sun, 09 Jun 2013 15:22:59 +0000 Subject: Re: [PATCH v3 06/27] ia64, irq: Add dummy create_irq_nr() Message-Id: <20130609152259.GC2245@breakpoint.cc> List-Id: References: <1370644273-10495-1-git-send-email-yinghai@kernel.org> <1370644273-10495-7-git-send-email-yinghai@kernel.org> In-Reply-To: <1370644273-10495-7-git-send-email-yinghai@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Yinghai Lu Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Bjorn Helgaas , "Rafael J. Wysocki" , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Tony Luck , Fenghua Yu , linux-ia64@vger.kernel.org On Fri, Jun 07, 2013 at 03:30:52PM -0700, Yinghai Lu wrote: > create_irq() will return -1 when fail to allocate. The ia64 code here will return -ENOSPC. > create_irq_nr() will return 0 when fail to allocate. > > Will use it to fix one return value checking for dmar_msi irq. What about to unify the interface? Using -1 is kinda bad. Sebastian