Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp5095025ybx; Sun, 10 Nov 2019 06:50:13 -0800 (PST) X-Google-Smtp-Source: APXvYqybIF6Ii7B7+Sd0R9o++V1oLsXp1WcoWJwE6t8yEux5Hw8NEiok+HoHHT9yHcjR29cFcM1k X-Received: by 2002:a50:9908:: with SMTP id k8mr21008595edb.75.1573397413288; Sun, 10 Nov 2019 06:50:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573397413; cv=none; d=google.com; s=arc-20160816; b=I/HEZHRXpYaQa4OABwksBxYVV9BEhxqTk0wS38rEerLs4NfDbDtx4itWKaq1nh2+vq ztmADREqbUuGvQ5yp8+TNnD3LsYngj1CRZNGkaBhCQR9ooyps/mbz4Qzd8TD8TZuxpPB uv9PHXf6yIZsTDXcCbE8yZAxG4gzf9zjEi5s1uGB6xdNSQe/C///lsW1jrwR8Hf/sV8i uC1SM+Bnt9k4RgFZGaqj+6/SjaPrUlaWKhDKj8uxeC8rzhvlS0ubIdk8aWj/YjeLwLjt /o9QbA/i8MnrdeHIFhb7iMqimNqeM/u+E3dLQXD8baH7vy/690zzlu2Of3O8gT3PHGbA UnXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=T5IltPQkPt5Ss1xxd9PLeq6glM0n6f1ugU+lVlcsqSg=; b=MZPhUi2H+r5Ku0LqMbZQhk+6x7orU3n4KL/TqWuPO1hu+icD7LnigzB0+qn/S2yhOY PAifZyIbLY9aX6O5pqW9lUzrJguH3G4H4ungRke7TSXv8Nwpu/7R8R8J9vWAfJQa4Jlm WyQbgf7uJ/RzdJPACt26CVib+iRw98P8pRIIPFYA1h58BE8CDSu4bUOvrTC06YFsjGX0 kg3v67iBP/z3uCpkTtXrEurjK6VJc9dzdmkzpzLMCqyiFhzPOyNabRYEU3awMWGhsPtg EeurJqXV2EYCn6WB8i+Rh+Jg3nO9zMBCA/951jiIRjAgxW18M1W+xRwPdJ8j0KKxsAMl qCvw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3si8209615edp.357.2019.11.10.06.49.49; Sun, 10 Nov 2019 06:50:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726809AbfKJOqM (ORCPT + 99 others); Sun, 10 Nov 2019 09:46:12 -0500 Received: from inca-roads.misterjones.org ([213.251.177.50]:37061 "EHLO inca-roads.misterjones.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726402AbfKJOqM (ORCPT ); Sun, 10 Nov 2019 09:46:12 -0500 Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=why) by cheepnis.misterjones.org with esmtpsa (TLSv1.2:AES256-GCM-SHA384:256) (Exim 4.80) (envelope-from ) id 1iToTf-0002oJ-JP; Sun, 10 Nov 2019 15:46:07 +0100 Date: Sun, 10 Nov 2019 14:46:06 +0000 From: Marc Zyngier To: linux-kernel@vger.kernel.org Cc: Thomas Gleixner , Jason Cooper , lorenzo.pieralisi@arm.com, Andrew.Murray@arm.com, yuzenghui@huawei.com, Heyi Guo Subject: Re: [PATCH v2 07/11] irqchip/gic-v3-its: Add its_vlpi_map helpers Message-ID: <20191110144606.61a1f537@why> In-Reply-To: <20191108165805.3071-8-maz@kernel.org> References: <20191108165805.3071-1-maz@kernel.org> <20191108165805.3071-8-maz@kernel.org> Organization: Metropolis X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: linux-kernel@vger.kernel.org, tglx@linutronix.de, jason@lakedaemon.net, lorenzo.pieralisi@arm.com, Andrew.Murray@arm.com, yuzenghui@huawei.com, guoheyi@huawei.com X-SA-Exim-Mail-From: maz@misterjones.org X-SA-Exim-Scanned: No (on cheepnis.misterjones.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 8 Nov 2019 16:58:01 +0000 Marc Zyngier wrote: > Obtaining the mapping information for a VLPI is something quite common, > and the GICv4.1 code is going to make even more use of it. Expose it as > a separate set of helpers. > > Signed-off-by: Marc Zyngier > Reviewed-by: Zenghui Yu > Link: https://lore.kernel.org/r/20191027144234.8395-8-maz@kernel.org > --- > drivers/irqchip/irq-gic-v3-its.c | 47 ++++++++++++++++++++++---------- > 1 file changed, 32 insertions(+), 15 deletions(-) > > diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c > index 94f13d6b8400..cad8fd18bab7 100644 > --- a/drivers/irqchip/irq-gic-v3-its.c > +++ b/drivers/irqchip/irq-gic-v3-its.c > @@ -207,6 +207,15 @@ static struct its_collection *dev_event_to_col(struct its_device *its_dev, > return its->collections + its_dev->event_map.col_map[event]; > } > > +static struct its_vlpi_map *dev_event_to_vlpi_map(struct its_device *its_dev, > + u32 event) > +{ > + if (WARN_ON_ONCE(event >= its_dev->event_map.nr_lpis)) > + return NULL; > + > + return its_dev->event_map.vlpi_maps[event]; As pointed out by our dear friend the 01 bot, the above line lacks a '&'. It happened to work because this was later reworked, but this patch on its own breaks the build. I've now fixed it, and verified that the whole series correctly bisects. Thanks, M. -- Without deviation from the norm, progress is not possible.