Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1091865pxb; Thu, 4 Mar 2021 03:05:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJyGjeySqdaaKEehW3kNEB+4pKsVTrnF4N/5Wvc50HAyb4db4M6Bb/o/hI5vtW8oyVy11m9S X-Received: by 2002:a05:6402:3550:: with SMTP id f16mr3659494edd.134.1614855940398; Thu, 04 Mar 2021 03:05:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614855940; cv=none; d=google.com; s=arc-20160816; b=duPTcmAQ0X/aP8CCvUK0tUCTYbXkowo3dHnHvh6AZjJhBqOHcyQzmqQ6ESteUvpX3J H+j2L8Ro35gU2UsF1ORuEYmWpO1rQwboK54eEa2Sz6xGfY8PBQ+h98etIuiA/203lp46 quqjY2bULr1Z8QkMO2BJBoJ2/RiR/NGmRTdz5AwIwxwqQIOQTYJskGu0n7OkcsiqeHND rjCtRDC3K+aADUIj0WA7zM2ZY+PnMm17WtB2cZsFx2pm38Qu19R1CpRUxAu9Km3/Fboo Fsy32jHOulPwIXDjPl1DgAjWEa9FvIljdAzM+dWZd04d4ItxLa+zr51YXwYMec+7+izJ LDRw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=cRAV7+aSD9wgBl70WR5ip1YlIHd4tyqqorfJvFsn15Y=; b=Mg/UBT4JLhxWv/FCkYumLB+v2JKWkyMr2gOG8r2ikq9E9CSkrqrigncZ2W5yYCtok5 6/6un/J2+Lt1ZgvKP9RHEcwR14BSKr2rVjiw8zkJ1kDdRUjBDdDYlHf+Zqo1/J2j9iaT JerRBIOHEhDA04q5sEEqW2rV8npysbBB1eOXAIqIQo6myZODbwuJSozwcAAxOfTaCV66 pf01uMJ/KhinIYPCcMc4ngT+v7Lwj0jOdQMLBU0x14B21hs7f16vgIcUbcH1wFJRvdmy j/GLtUReOaQ7NTCNv7CE9N4g8QlarCkmI3Ut1+ee/aJY4lDUd673XCUyeAp3SNltRRIV D23Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZTnsicA9; 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 h27si17236943ejd.660.2021.03.04.03.05.17; Thu, 04 Mar 2021 03:05:40 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZTnsicA9; 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 S1575865AbhCCRgN (ORCPT + 99 others); Wed, 3 Mar 2021 12:36:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:50070 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239392AbhCCOY5 (ORCPT ); Wed, 3 Mar 2021 09:24:57 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8F6D164E90; Wed, 3 Mar 2021 14:22:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614781343; bh=NlFuc7oHbBkdu0D8TrF+yX/W12F+rFKaRRXsIdZihKY=; h=From:To:Cc:Subject:Date:From; b=ZTnsicA9Lbr0SrBuoMOgVmAzMSMD5hmn+bAmMYuoEBo7+LH3jquEorakEdix7QI6X O6x+8MBGp40K2eI7bQmuj0SC0ZnzDSNXWX9TB/2SC1vggSVkO95PwKS+KDxat9Y7MY azfKUhkU88W2/r/hLDkYbJP/im8BQB7W8VQVIWiqJS6fUPZUmNpMMaS875xGfLeupf wWtEm4WTgeefeCS1JFNYKil044l1OIE3QAlKafybk18H18xO6XOLNUumCNM6oZrTkx 8nmoomNYFE8agqrUrc9UfGYF5ROsFTMgwtW1jRh51AvoryZjePhubvxM9SZwFa3F8z GO6IuvXHWyMIQ== Received: by pali.im (Postfix) id 21CF4B91; Wed, 3 Mar 2021 15:22:21 +0100 (CET) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Marc Zyngier , Lorenzo Pieralisi , Rob Herring , Sandor Bodo-Merle , Ray Jui , Bjorn Helgaas Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] PCI: iproc: Fix return value of iproc_msi_irq_domain_alloc() Date: Wed, 3 Mar 2021 15:22:02 +0100 Message-Id: <20210303142202.25780-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, -- 2.20.1