From: Ian Campbell Subject: Re: [PATCH for-4.5 6/8] xen/arm: IRQ: Add lock contrainst for gic_irq_{startup, shutdown} Date: Wed, 19 Feb 2014 14:38:56 +0000 Message-ID: <1392820736.29739.86.camel@kazak.uk.xensource.com> References: <1390581822-32624-1-git-send-email-julien.grall@linaro.org> <1390581822-32624-7-git-send-email-julien.grall@linaro.org> <1392810675.29739.15.camel@kazak.uk.xensource.com> <5304C13C.5060505@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WG8Ii-0004yL-MZ for xen-devel@lists.xenproject.org; Wed, 19 Feb 2014 14:39:04 +0000 In-Reply-To: <5304C13C.5060505@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: xen-devel@lists.xenproject.org, tim@xen.org, stefano.stabellini@citrix.com, patches@linaro.org List-Id: xen-devel@lists.xenproject.org On Wed, 2014-02-19 at 14:35 +0000, Julien Grall wrote: > >> -static void gic_irq_enable(struct irq_desc *desc) > >> +static unsigned int gic_irq_startup(struct irq_desc *desc) > > > > unsigned? What are the error codes here going to be? > > This is the return type requested by hw_interrupt_type.startup. > > It seems that the return is never checked (even in x86 code). Maybe we > should change the prototype of hw_interrupt_type.startup. Worth investigating. I wonder if someone thought this might return the resulting interrupt number (those are normally unsigned int I think) or if it actually did used to etc. Ian.