From patchwork Thu Nov 25 13:00:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pali_Roh=C3=A1r?= X-Patchwork-Id: 12693666 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E1D15C433F5 for ; Thu, 25 Nov 2021 13:03:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=m90f3eEcsDkZjRx91AS0YbVApQlGx9wW1Sx0SP+Z0og=; b=IBBXyVI03Ai+YO 062ELauXNMqDPOw4GV2NRe1MEk/xDivYIetlZLqzM9/D30w7/HPNKGBJ7iIwSN95WBJhkOHS1l1RF AxfA8PURdTsUp5JqcW8s/yCPPy3CbQhHRFAX9UpXj57AdDZCKw4o5DTTL2VMMFmiXFVG9Hv3qeTD5 C/Ei7hKrpZd+1w/YEIWao3yNJVkB1Fa/dbxOqp4q5bTAy7G3Lgdj08TSqhb38HRzJXEnVXnyhGsA/ OpJsAx6bpb47kExibFHuPVoPXmbWd9z5jsDVZwkhmFSXLCjdEB7oxFh2oCk8RRA3yw/tdMChwWEUc yFwa1lGxu2TXhHY3C30g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqENf-007Zjf-3j; Thu, 25 Nov 2021 13:01:39 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqENO-007Zhy-T0 for linux-arm-kernel@lists.infradead.org; Thu, 25 Nov 2021 13:01:24 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id E2E4060C49; Thu, 25 Nov 2021 13:01:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1637845282; bh=6Rgn/uumnB+zIy7XvreND7vpK4sRvHa5kqbq/KxeWk8=; h=From:To:Cc:Subject:Date:From; b=PmB4haGaSRSgZYbi1N8+zk+GFRmD5aQ7wVyQiDZTm342n8LL6jSx+YNtOdBiBJNaO mQeX/z+CmpJ54UOp6bj2eEWQyS753AxGc1JAx6qzm2zyHhEvrncaRrHqPGrSVEss+V weTkns1UX5lv3a/VLcksBVXM+gYDw6+rFrBFk56oWzB5IPSEvQcPOeL4uGJgZLkUqa wo9pLHxOpqrfo5CgSQNkbfU7CeVpmuRw6maQpr3Jl+OyBV3aYXW20OXfokKKe07ZS9 ElPekFN1l7EfTYPjg6b3kgrSK85TJgPTqadNrAYUfi2oDu10RKkuq7WYNOhADcbW6V XpzhTjPVYuhfg== Received: by pali.im (Postfix) id 5D5BC67E; Thu, 25 Nov 2021 14:01:17 +0100 (CET) From: =?utf-8?q?Pali_Roh=C3=A1r?= To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Thomas Gleixner , Marc Zyngier , =?utf-8?q?Marek_Beh=C3=BAn?= Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] irqchip/armada-370-xp: Fix return value of armada_370_xp_msi_alloc() Date: Thu, 25 Nov 2021 14:00:56 +0100 Message-Id: <20211125130057.26705-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211125_050122_985579_354E81B2 X-CRM114-Status: GOOD ( 12.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org IRQ domain alloc function should return zero on success. Non-zero value indicates failure. Signed-off-by: Pali Rohár Fixes: fcc392d501bd ("irqchip/armada-370-xp: Use the generic MSI infrastructure") Cc: stable@vger.kernel.org --- drivers/irqchip/irq-armada-370-xp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-armada-370-xp.c b/drivers/irqchip/irq-armada-370-xp.c index 80906bfec845..41ad745cf343 100644 --- a/drivers/irqchip/irq-armada-370-xp.c +++ b/drivers/irqchip/irq-armada-370-xp.c @@ -250,7 +250,7 @@ static int armada_370_xp_msi_alloc(struct irq_domain *domain, unsigned int virq, NULL, NULL); } - return hwirq; + return 0; } static void armada_370_xp_msi_free(struct irq_domain *domain,