Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2591913lqb; Tue, 28 May 2024 05:03:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXddwHmm1hes5Gpl3QM83PWuUX6P0rRvHFJVCxNKMbpvb7UN99iiZn5cl0IGyefP7WNbbCqwZxzk4sFIT2vE0VV8PPeN5PI8Lvf1k+QlA== X-Google-Smtp-Source: AGHT+IGz7XwkUVkdt5CgsqWvRdAaKb0yAzZnhO8UuifIFXgeKpcznX2FpHiIT+/CN3HsXroZXT3d X-Received: by 2002:a05:6870:a693:b0:24f:bd2e:9c44 with SMTP id 586e51a60fabf-24fbd2ff639mr10910249fac.37.1716897782655; Tue, 28 May 2024 05:03:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716897782; cv=pass; d=google.com; s=arc-20160816; b=vZRXP6FcNkp6UVcWFYWumG0vX4pD6gt4THyMRLYDrkqQkz5b+Cbrj1cohzwyFo1j4W 9Pll2aqkBBu4ghCgTOGb7dWFStM2lRTWMZ8yQv+IWjEEXln8DM5lZdLhf5GnAty6T9EO srzuUOllmsWkQ1wzO9nE8CPc/h16L5mzK/I/iUU/mzBwTu8gane7kQv1QyaDVwEqFodJ V1zHv+BMQ8DSVAIw00Mcg7zeKojJ+eXqEUduJgUaS+QaxwLK2FYZImqujR9z19j9juvX 4LQHLQ0w1jyGnKhaCLn1bZWfruNjM1ZbsMEKwN2umLon8DoL3540D5GawgtMMuW03suu 5HXQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=2i6oO5tjcCiHDs2eS69Hqhb8ZpZyTRWg7+5nO5hkZ0U=; fh=XI0jG88DteVzdBQLoYdTx6VBhXVZxIqFLe1W4rqwGFw=; b=CWNTz5yDsqkcMqmuBA5ZJfxLAvVps5t8XOD5mBoknw4C0b1SPofYyNhBgpbSwlYf4x 7I1xPIQwvGqGLdp21TO0qQK73BPsndf2BG5miRrf8YaaqeawBKwsBCYRBmX3OlXEr8pO A5r1TXeeS+icHbNAER03ZbYaKy4S7L/kc4cADaR3gmYaxRUPjZhSHzy9MTguoJewtt9n DnOpO2glTYUsfBNNSTL9gANiLMUD3IP30lj1QBi0S0VYyBAWyoCSCljLgTCtE6zXAQAH 82crnEgH/0uAgTbTgxKUHRrptwPRanSRmTqOtd9XzouzkEWBEMLAUn2rY0t1/kOWbQAa bbQQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Pa6Gdsms; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192243-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192243-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id a1e0cc1a2514c-804e878b698si1261105241.192.2024.05.28.05.03.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 05:03:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192243-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Pa6Gdsms; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192243-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192243-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5B42D1C21152 for ; Tue, 28 May 2024 12:03:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6165816D31A; Tue, 28 May 2024 12:02:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Pa6Gdsms" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8DB1713A242 for ; Tue, 28 May 2024 12:02:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716897772; cv=none; b=nB+pCNe1PfptCoNfiUVOOCRw5BDXJAO1vWRwKHKS3AcrfEVILFsAXB8Si0CbV+uepmQ4MN4fx+hQUa3BFpfGPxROCZBmmyt9k0WACgGgQhI2wYE/5DE54jacBP223e/+yUvV+9eF8a7OlkVmDTf35ecp/VMljU97Dem/lQ5NKlE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716897772; c=relaxed/simple; bh=8Sj9m5H66IoU8ACiyDTo30Tfi2x2L8Km6KRH00ITSdY=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=gl65KojvZtBYKXVjEZEan0S4xx5QtAaItS66S2jpj9PIwy4/1HKVXiMNCTRoJGY1I/4pVFgihlycBRbAoeB5MVh0dnsSILQp4/KeBNcda3gsV1h0PAd8MhZIwI7ZtlJ99qFow5E0sYBGTU0aB2zCKX3g9RYaEahJ8mmHMyMJiYY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Pa6Gdsms; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3E3BC3277B; Tue, 28 May 2024 12:02:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716897772; bh=8Sj9m5H66IoU8ACiyDTo30Tfi2x2L8Km6KRH00ITSdY=; h=From:To:Cc:Subject:Date:From; b=Pa6Gdsmsd3gU/YG7bvsnP0IOUy9r6KCeSrp1EIQ8uNde0Mk8fqXE2/wR2FE23xJF+ h9iV7r8pgRLViN5RF0+fYynanOkWrleRQZd6sr4ReTx3kv7t6q+Y/77rAuZ2XZl+xZ lkUNyrzWZbJtH9RV15AI/0mab3moNfHP/e9XCDptDzIZDJ720XaYqPbnbGYU9n3knQ UZzpBxLtnu9pPCdUJ8QssZoWD+ifm672wPRi8bzvxjeFDdGb8b/GGQIQ1xnMyDjwKJ IZrgGMpb5bylM4OawPncoAny19/Cxnx5keeKF/2BcoNvGEvk3u3nHpAHURlLFQ14ju EHHqKEVkdgO9g== From: Arnd Bergmann To: Jassi Brar , Michal Simek , Tanmay Shah , Saeed Nowshadi Cc: Arnd Bergmann , Ben Levinsky , "Gustavo A. R. Silva" , Rob Herring , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] mailbox: zynqmp-ipi: drop irq_to_desc() call Date: Tue, 28 May 2024 14:02:35 +0200 Message-Id: <20240528120246.3313723-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann irq_to_desc() is not exported to loadable modules, so this driver now fails to link in some configurations: ERROR: modpost: "irq_to_desc" [drivers/mailbox/zynqmp-ipi-mailbox.ko] undefined! I can't see a purpose for this call, since the return value is unused and probably left over from some code refactoring. Address the link failure by just removing the line. Fixes: 6ffb1635341b ("mailbox: zynqmp: handle SGI for shared IPI") Signed-off-by: Arnd Bergmann --- drivers/mailbox/zynqmp-ipi-mailbox.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mailbox/zynqmp-ipi-mailbox.c b/drivers/mailbox/zynqmp-ipi-mailbox.c index 7c90bac3de21..4acf5612487c 100644 --- a/drivers/mailbox/zynqmp-ipi-mailbox.c +++ b/drivers/mailbox/zynqmp-ipi-mailbox.c @@ -850,7 +850,6 @@ static int xlnx_mbox_init_sgi(struct platform_device *pdev, return ret; } - irq_to_desc(pdata->virq_sgi); irq_set_status_flags(pdata->virq_sgi, IRQ_PER_CPU); /* Setup function for the CPU hot-plug cases */ -- 2.39.2