From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH v9 10/10] xen/arm: make accesses to desc->status flags atomic Date: Mon, 28 Jul 2014 18:14:46 +0100 Message-ID: <53D68506.5050206@linaro.org> References: <1406223192-26267-10-git-send-email-stefano.stabellini@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1406223192-26267-10-git-send-email-stefano.stabellini@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini , xen-devel@lists.xensource.com Cc: julien.grall@citrix.com, Ian.Campbell@citrix.com List-Id: xen-devel@lists.xenproject.org Hi Stefano, On 07/24/2014 06:33 PM, Stefano Stabellini wrote: > @@ -305,13 +306,13 @@ static int __setup_irq(struct irq_desc *desc, unsigned int irqflags, > * - if the IRQ is marked as shared > * - dev_id is not NULL when IRQF_SHARED is set > */ > - if ( desc->action != NULL && (!(desc->status & IRQF_SHARED) || !shared) ) > + if ( desc->action != NULL && (!test_bit(_IRQF_SHARED, &desc->status) || !shared) ) > return -EINVAL; > if ( shared && new->dev_id == NULL ) > return -EINVAL; > > if ( shared ) > - desc->status |= IRQF_SHARED; > + set_bit(IRQF_SHARED, &desc->status); Shouldn't it be _IRQF_SHARED? Regards, -- Julien Grall