From: Ian Campbell Subject: Re: [PATCH] arm: replace list_del and INIT_LIST_HEAD with list_del_init Date: Fri, 17 Feb 2012 12:50:39 +0000 Message-ID: <1329483039.3131.74.camel@zakaz.uk.xensource.com> References: <1329314609-31761-1-git-send-email-stefano.stabellini@eu.citrix.com> <1329314609-31761-2-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: <1329314609-31761-2-git-send-email-stefano.stabellini@eu.citrix.com> 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: "xen-devel@lists.xensource.com" , David Vrabel List-Id: xen-devel@lists.xenproject.org On Wed, 2012-02-15 at 14:03 +0000, Stefano Stabellini wrote: > Signed-off-by: Stefano Stabellini Is this safe to take without the other vgic patch? > --- > xen/arch/arm/gic.c | 3 +-- > 1 files changed, 1 insertions(+), 2 deletions(-) > > diff --git a/xen/arch/arm/gic.c b/xen/arch/arm/gic.c > index 520a400..c34661b 100644 > --- a/xen/arch/arm/gic.c > +++ b/xen/arch/arm/gic.c > @@ -501,8 +501,7 @@ static void maintenance_interrupt(int irq, void *dev_id, struct cpu_user_regs *r > p->desc->status &= ~IRQ_INPROGRESS; > GICC[GICC_DIR] = virq; > } > - list_del(&p->link); > - INIT_LIST_HEAD(&p->link); > + list_del_init(&p->link); David said: I don't think you need the INIT_LIST_HEAD() here (and even if you did you should use list_del_init()). You only need to init nodes if you need to test if they are in a list or not. But I'm not seeing where we test if a node is in a list or not, have I missed it? > cpu_raise_softirq(current->processor, VGIC_SOFTIRQ); > spin_unlock(¤t->arch.vgic.lock); > }