Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1106935pxb; Thu, 4 Mar 2021 03:33:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJz05Utvx292sHsI18zkboy6bPc4YZEnGvyvCBw9FE2IRf6hT02ONmJx32WrpdVnoOSaj5ZU X-Received: by 2002:a17:906:4e17:: with SMTP id z23mr3722705eju.439.1614857588662; Thu, 04 Mar 2021 03:33:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614857588; cv=none; d=google.com; s=arc-20160816; b=TOy1tPM9l0DL5fqeOiN4es4kfJa/9gKW8K9I9EXewaVNgwTgjEKlyJBQWOPhZTDAkW 02IHe4Rjpkm7zHGrxN5EsNP9vm0YU9l3Mp1kSpvzxkr5F2KP3ethJeub3lBrM7UFOLvR 3PEz0OPzg+L8p0nMZrYfB5xGB38MbL/3hnZ6p+y4Zv30Y2gOcZLSYOb9+oXFFletbWz1 bT7SHoscKx9IESE0Q1ZV9WTe4yUfisJwc4dwN0nQ+uk/NtE0gXD7qnfg5J8/8joo/08V Ig0M8Lid2RD8Ro1BVJQCl8H7yb30k/SeiZTg98v5eTodQ6/4NZOV+Uf1PCVlrsku+NH7 WF+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date; bh=+pth1vvhOeVd3Ybtm6bA/v49zU7blch8hME8+o8CtB8=; b=OBYQUPKGSyUSnEpxoz4nEn4Q52zo6q+/rTd4P03L0u/0TXgv1H+VwbwK24nQE4II8z T6f+nuZAdgBVbdYO+Po2XAvtxcyaXN0h/TiJ3SJ56VuNzBe+ICqJpfTiIjPkQjCRXTxy r3f13AGzsJhaACmp6ZOc4VJqYcqEeqpt7jFNK3/9ioTgm+KN/oHorEJYHcA1V8JaRsxF 7CZTejy+LJrNy57IkfDS3lMzKaZeV02vvU1Iulf2lnR4cIcjd3Ea+L0ln3KTqTeK2AhW jZiOdh1i7s88grMOAqcV8oAyLsPR2uAs7rouFR+5LXPFRd/j1FzHKc+Ldj0HpBHciJeE hW5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i2si17679423ejp.556.2021.03.04.03.32.45; Thu, 04 Mar 2021 03:33:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1835417AbhCCSDZ convert rfc822-to-8bit (ORCPT + 99 others); Wed, 3 Mar 2021 13:03:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:57842 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1447998AbhCCPRG (ORCPT ); Wed, 3 Mar 2021 10:17:06 -0500 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 14C1E64E90; Wed, 3 Mar 2021 15:07:11 +0000 (UTC) Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=why.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lHT5g-00Guhg-HK; Wed, 03 Mar 2021 15:07:08 +0000 Date: Wed, 03 Mar 2021 15:07:06 +0000 Message-ID: <87o8g0z36t.wl-maz@kernel.org> From: Marc Zyngier To: Pali =?UTF-8?B?Um9ow6Fy?= Cc: Lorenzo Pieralisi , Rob Herring , Sandor Bodo-Merle , Ray Jui , Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] PCI: iproc: Fix return value of iproc_msi_irq_domain_alloc() In-Reply-To: <20210303142202.25780-1-pali@kernel.org> References: <20210303142202.25780-1-pali@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: pali@kernel.org, lorenzo.pieralisi@arm.com, robh@kernel.org, sbodomerle@gmail.com, ray.jui@broadcom.com, bhelgaas@google.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 03 Mar 2021 14:22:02 +0000, Pali Rohár wrote: > > IRQ domain alloc function should return zero on success. Non-zero value > indicates failure. > > Signed-off-by: Pali Rohár > Fixes: fc54bae28818 ("PCI: iproc: Allow allocation of multiple MSIs") > --- > drivers/pci/controller/pcie-iproc-msi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/pci/controller/pcie-iproc-msi.c b/drivers/pci/controller/pcie-iproc-msi.c > index 908475d27e0e..eede4e8f3f75 100644 > --- a/drivers/pci/controller/pcie-iproc-msi.c > +++ b/drivers/pci/controller/pcie-iproc-msi.c > @@ -271,7 +271,7 @@ static int iproc_msi_irq_domain_alloc(struct irq_domain *domain, > NULL, NULL); > } > > - return hwirq; > + return 0; > } > > static void iproc_msi_irq_domain_free(struct irq_domain *domain, Acked-by: Marc Zyngier M. -- Without deviation from the norm, progress is not possible.